Copyright 2015 Diamond Systems Corp. Page 2 www.diamondsystems.com
1.0 Table of Contents
1.0 Introduction ................................................................................................................................................. 4
2.0 Hardware Overview...................................................................................................................................... 4
2.1 Description .............................................................................................................................................. 4
2.2 Specifications .......................................................................................................................................... 4
3.0 General programming guidelines ................................................................................................................. 5
3.1 Initialization and exit function calls ......................................................................................................... 5
3.2 Error handling .......................................................................................................................................... 6
4.0 Universal Driver API Description ................................................................................................................... 7
4.1 GPIO96DIOConfig .................................................................................................................................... 7
4.2 GPIO96DIOConfigAll ................................................................................................................................ 8
4.3 GPIO96DIOOutputByte ........................................................................................................................... 9
4.4 GPIO96DIOInputByte ............................................................................................................................ 10
4.5 GPIO96DIOOutputBit ............................................................................................................................ 11
4.6 GPIO96DIOInputBit ............................................................................................................................... 12
4.7 GPIO96CounterSetRate ......................................................................................................................... 13
4.8 GPIO96CounterConfig ........................................................................................................................... 14
4.9 GPIO96CounterOutputEnable ............................................................................................................... 15
4.10 GPIO96CounterRead ............................................................................................................................. 16
4.11 GPIO96CounterFunction ....................................................................................................................... 17
4.12 GPIO96PWMConfig ............................................................................................................................... 18
4.13 GPIO96PWMStart .................................................................................................................................. 19
4.14 GPIO96PWMStop .................................................................................................................................. 20
4.15 GPIO96PWMCommand ......................................................................................................................... 21
4.16 GPIO96UserInterruptSet ....................................................................................................................... 22
4.17 GPIO96UserInterruptStop ..................................................................................................................... 23
4.18 GPIO96InitBoard ................................................................................................................................... 24
4.19 GPIO96FreeBoard .................................................................................................................................. 25
4.20 GPIO96LED ............................................................................................................................................ 26
5.0 Universal Driver Demo Application Description and Usage Instructions ..................................................... 27
5.1 DIO Application ..................................................................................................................................... 27
5.2 Counter Application .............................................................................................................................. 29
5.3 PWM Application .................................................................................................................................. 30
5.4 User Interrupt Function......................................................................................................................... 31