Knowledge Base

Xwire maintains an 8-bit activity counter called the poll counter. This counter will count up to 255 then stop counting. It is reset whenever it is read out.

The XwireGetPollCntr instruction pushes the poll counter into X then resets the counter.

In an Xwire master

In an Xwire master the poll counter counts the number of times the program reaches the end of the master Xwire configuration table. Thus in the master it is an indicator of overall Xwire activity.

In an Xwire Slave

In an Xwire Slave the poll counter counts how many times the slave has been successfully polled by the master. Thus in a slave it can be used to establish that the slave is actually in communication with the master.

See also XwireGetErrCount