Chapter 3 - General Programming Issues
CARROLL TOUCH
3-10
Touch System Programmer’s Guide
receive a command or whether it is busy. Table 3-2 shows the values of
Bit 0 of the Status Register.
If Bit 0 of the Status Register is 0, you may send a command to the touch
controller by performing an I/O write to the Data Register (Base
Address). If Bit 0 of the Status Register is 1, do not send a touch
command to the touch controller.
Receiving Touch Data from the HBC
The procedure used to receive data from the HBC differs depending on
which communication mode you are using.
Polling Mode
When using polling mode, the application software polls the Status
Register (Base A 1) to check if touch data is available in the
Data Register (Base Address).
Before reading the Data Register, you must first perform an I/O read of
the Status Register. Bit 1 of the Status Register indicates whether there
is touch data available in the Data Register. Table 3-3 shows the values
of Bit 1 of the Status Register.
If Bit 1 of the Status Register is 0, you may receive a byte of touch data
by performing an I/O read of the Data Register. If Bit 1 of the Status
Register is 1, there is no data available in the Data Register.
Table 3-2. Status Register Bit 0 Values
Bit 0
Description
0
Touch controller ready to receive command.
1
Touch controller busy.
Table 3-3. Status Register Bit 1 Values
Bit 1
Description
0
Touch data available.
1
No touch data available.
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...