iv s Table of Contents PK2200
Digital Inputs ....................................................................................... 36
Using the Digital Inputs .................................................................. 36
Interrupt Inputs ................................................................................ 36
High Speed DMA Counter .............................................................. 36
Digital Outputs ..................................................................................... 37
Using the Digital Outputs ................................................................ 37
Serial Communication..........................................................................38
Receive and Transmit Buffers ......................................................... 38
Echo Option ....................................................................................39
CTS/RTS Control ............................................................................ 39
XMODEM File Transfer ................................................................. 39
Modem Communication .................................................................. 39
Interrupt Handling for Z180 Port 0 ................................................. 41
Remote Downloading ...................................................................... 41
Developing an RS-485 Network ..................................................... 42
Keypad and LCD ................................................................................. 43
Using the Keypad and Display ........................................................ 43
PK2200 Keypads ............................................................................ 43
Keypad Insert Templates ............................................................ 44
Keypad Codes ............................................................................ 45
PK2200 LCDs ................................................................................. 46
Graphic LCD Status ...................................................................46
Bitmapped Graphics ................................................................... 47
Chapter 5: Software Reference 49
Software Drivers .................................................................................. 50
Real Time Clock (RTC) .................................................................. 50
EEPROM ........................................................................................ 51
Digital Inputs and Outputs ................................................................... 52
Digital Input Drivers ....................................................................... 52
Digital Output Drivers..................................................................... 54
LCD and Keypad ................................................................................. 55
Sample Programs ................................................................................. 62
Communication Sample Programs .................................................. 63
PK2240 Sample Programs .............................................................. 64
Appendix A: Troubleshooting 65
Out of the Box...................................................................................... 66
Dynamic C Will Not Start .................................................................... 67
Dynamic C Loses Serial Link .............................................................. 67
PK2200 Repeatedly Resets .................................................................. 67
Common Programming Errors ............................................................. 68