Smartcat (BL2100)
Chapter 4. Software 35
4.1 Running Dynamic C...........................................................................................................................35
4.1.1 Upgrading Dynamic C................................................................................................................ 37
4.1.2 Extras..........................................................................................................................................37
4.2 Sample Programs................................................................................................................................38
4.2.1 Digital I/O...................................................................................................................................38
4.2.2 Serial Communication................................................................................................................ 38
4.2.3 A/D Converter Inputs .................................................................................................................39
4.2.4 D/A Converter Outputs...............................................................................................................39
4.2.5 Using Calibration Constants.......................................................................................................40
4.2.6 Real-Time Clock ........................................................................................................................40
4.2.7 TCP/IP Sample Programs...........................................................................................................40
4.2.8 LCD/Keypad Module Sample Programs.................................................................................... 40
4.3 BL2100 Libraries ...............................................................................................................................41
4.4 BL2100 Function APIs....................................................................................................................... 42
4.4.1 Board Initialization..................................................................................................................... 42
4.4.2 Digital I/O...................................................................................................................................43
4.4.3 Serial Communication................................................................................................................ 45
4.4.4 A/D Converter Inputs .................................................................................................................46
4.4.5 D/A Converter Outputs...............................................................................................................50
Chapter 5. Using the TCP/IP Features 55
5.1 TCP/IP Connections........................................................................................................................... 55
5.2 TCP/IP Sample Programs................................................................................................................... 57
5.2.1 How to Set IP Addresses in the Sample Programs..................................................................... 57
5.2.2 How to Set Up Your Computer for Direct Connect................................................................... 58
5.2.3 Run the
PINGME.C Demo......................................................................................................59
5.2.4 Running More Demo Programs With a Direct Connection .......................................................60
5.3 Where Do I Go From Here?...............................................................................................................60
Appendix A. Specifications 61
A.1 Electrical and Mechanical Specifications.......................................................................................... 62
A.1.1 Exclusion Zone..........................................................................................................................64
A.1.2 Headers......................................................................................................................................65
A.2 Conformal Coating............................................................................................................................ 66
A.3 Jumper Configurations ...................................................................................................................... 67
A.4 Use of Rabbit 2000 Parallel Ports ..................................................................................................... 69
A.5 I/O Address Assignments..................................................................................................................71
Appendix B. Power Supply 73
B.1 Power Supplies ..................................................................................................................................73
B.1.1 Power for Analog Circuits.........................................................................................................73
B.2 Batteries and External Battery Connections......................................................................................74
B.2.1 Replacing the Backup Battery ................................................................................................... 75
B.2.2 Battery-Backup Circuit..............................................................................................................75
B.2.3 Power to VRAM Switch............................................................................................................76
B.2.4 Reset Generator.......................................................................................................................... 76
B.3 Chip Select Circuit.............................................................................................................................77
Appendix C. LCD/Keypad Module 79
C.1 Specifications.....................................................................................................................................79
C.2 Contrast Adjustments for All Boards ................................................................................................ 81
C.3 Keypad Labeling................................................................................................................................82
C.4 Header Pinouts................................................................................................................................... 83
C.4.1 I/O Address Assignments ..........................................................................................................83
C.5 Mounting LCD/Keypad Module on the BL2100 .............................................................................. 84
C.5.1 Programming Cable Tips........................................................................................................... 85
C.6 Bezel-Mount Installation................................................................................................................... 87
C.6.1 Connect the LCD/Keypad Module to Your BL2100................................................................. 89