Pamux User’s Guide 5
Chapter 4: Programming without the Pamux Driver ............................ 107
Overview ................................................................................................................................................107
Bus Pin Definitions - Not using AC28 ............................................................................................107
Bus Timing .............................................................................................................................................108
Write Timing ................................................................................................................................. 108
Read Timing .................................................................................................................................. 108
Direct Programming of Pamux Stations with ac28 ....................................................................109
Variables Used in Examples ....................................................................................................... 109
Utility Subroutines Used in Examples .................................................................................... 110
TURN off reset ......................................................................................................................................111
Resetting the System ................................................................................................................. 111
Reading from and Writing to Digital Pamux Stations ...............................................................112
Reading Digital Inputs ............................................................................................................... 112
Writing Digital Outputs ............................................................................................................. 112
Reading from and Writing to Analog Pamux Stations ..............................................................113
Pamux Internal Registers ........................................................................................................... 113
Gaining and Releasing Access .................................................................................................. 115
Reading an Analog Channel ..................................................................................................... 116
Configuring and Writing to Analog Channels ..................................................................... 117
Watchdog Registers .................................................................................................................... 120
Status Register ............................................................................................................................. 121
Performing Diagnostics .............................................................................................................. 122
Common Subroutines ................................................................................................................ 124
Appendix A: Troubleshooting and Tips ................................................... 125
Overview ................................................................................................................................................125
Preliminary Procedures ......................................................................................................................125
General Troubleshooting ...................................................................................................................126
Notes on LEDs ......................................................................................................................................126
Useful Tips .............................................................................................................................................127
Appendix B: Specifications ..................................................................... 129
Pamux Product Specifications .........................................................................................................129
AC28 Adapter Card ..................................................................................................................... 129
AC36 Adapter Card ..................................................................................................................... 129
B4 Brain Board ............................................................................................................................. 130
B5 Brain Board ............................................................................................................................. 130
B6 Brain Board ............................................................................................................................. 130
SNAP-B6 Brain Board ................................................................................................................. 131
TERM1 Terminator Board .......................................................................................................... 132
TERM2 Terminator Board .......................................................................................................... 132
UCA4 Universal Communication Adapter ............................................................................. 132
TABLE OF CONTENTS