Table of Contents
1 Introduction............................................................................................... 3
1.1 Specification................................................................................................ 3
1.2 Suggested system....................................................................................... 3
2 Hardware.................................................................................................. 4
2.1 Component Layout..................................................................................... 4
2.2 Connector and Jumper Settings............................................................... 4
3 Interface.................................................................................................... 7
3.1 UART Interface............................................................................................ 7
3.2 Command Set.............................................................................................. 8
3.2.1. Ping............................................................................................................... 8
3.2.2. Reset............................................................................................................. 8
3.2.3. Set Function................................................................................................. 9
3.2.4. Get Function................................................................................................ 9
3.2.5. Get Port....................................................................................................... 10
3.2.6. Set Bit........................................................................................................... 10
3.2.7. Get Bit.......................................................................................................... 11
3.2.8. Set Byte........................................................................................................ 11
3.2.9. Get Byte...................................................................................................... 12
3.2.10. Get ADC...................................................................................................... 12
3.2.11. Set Bit Rate.................................................................................................. 12
3.2.12. Get Bit Rate................................................................................................ 13
3.2.13. I2C Start....................................................................................................... 13
3.2.14. I2C Write..................................................................................................... 13
3.2.15. I2C Read...................................................................................................... 14
3.2.16. I2C Stop....................................................................................................... 14
3.2.17. I2C Send Packet......................................................................................... 14
3.2.18. I2C Get Packet........................................................................................... 15
3.2.19. Set Baud Rate............................................................................................. 15
3.2.20. Get Baud Rate............................................................................................ 16
3.2.21. Send UART................................................................................................... 16
3.2.22. Get UART..................................................................................................... 16
3.2.23. Send DAC.................................................................................................... 17
3.2.24. Stop Counter............................................................................................... 17
3.2.25. Start Counter............................................................................................... 18
3.2.26. Get Counter................................................................................................ 18
3.2.27. Get Version................................................................................................. 18
4 Testing Procedure..................................................................................... 19
5 Program Example..................................................................................... 20
Attachment
A. PC-LINK USB SMART I/O Schematics.................................................... 23