PK2100
iv s Contents
Virtual Driver..................................................................................... 4-3
Invoking the Virtual Driver .......................................................... 4-4
Virtual Driver Services ...................................................................... 4-4
Virtual Driver Variables .................................................................... 4-6
Digital Outputs .............................................................................. 4-6
Digital Inputs ................................................................................ 4-6
Universal Inputs ............................................................................ 4-6
Timers ........................................................................................... 4-7
Downloading Code ............................................................................ 4-8
Direct Programming of the Serial Ports ............................................ 4-8
Attainable Baud Rates .................................................................. 4-9
Z180 Serial Ports .......................................................................... 4-9
Software Reference 5-1
Driver Software ................................................................................. 5-2
Digital Input .................................................................................. 5-2
Direct Driver............................................................................... 5-2
Virtual Driver ............................................................................. 5-2
Digital Output ............................................................................... 5-2
Direct Driver............................................................................... 5-2
Indirect Driver ............................................................................ 5-2
Analog Input ................................................................................ 5-3
Low-Level Direct Driver ............................................................ 5-3
Calibrated Direct Driver ............................................................. 5-3
Virtual Driver for Universal Inputs ............................................ 5-4
Analog Output.............................................................................. 5-5
Direct Driver............................................................................... 5-5
Virtual Driver ............................................................................. 5-6
High-Speed DMA Counter ........................................................... 5-6
Battery-Backed Clock ................................................................... 5-7
Liquid Crystal Display and Keypad ............................................. 5-8
EEPROM Read/Write ................................................................. 5-10
Flash EPROM Write ................................................................... 5-10
Communication ............................................................................... 5-11
RS-232 Communication ............................................................. 5-11
Support Libraries and Sample Programs .................................... 5-12
Appendix A: Troubleshooting A-1
Out of the Box .................................................................................. A-2
Dynamic C Will Not Start ................................................................ A-3
Dynamic C Loses Serial Link ........................................................... A-3
PK2100 Resets Repeatedly ............................................................... A-3
Common Programming Errors ......................................................... A-4