06.11.2014 Views

RAiO RA8806 - Display Future

RAiO RA8806 - Display Future

RAiO RA8806 - Display Future

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Version 1.3<br />

<strong>RA8806</strong><br />

Two Layers Character/Graphic LCD Controller<br />

6-4-2 Manual Mode<br />

The “ Manual Mode” means that the operation process from “Touch event checking function” to<br />

“input Latch X data Y data”, the whole operation and setting process ( includes TPCR2[1:0]) and<br />

receiving data from XY coordinates are manual operated by programmer. The advantage of using<br />

Manual Mode is it allows programmer more flexible applications. In the condition that is over the<br />

range of <strong>RA8806</strong> register setting, the user can still use the software method to control the TP<br />

function in a correct way.<br />

Touch Event can be detected from “Interrupt Mode” or “Polling Mode” that depend on the system<br />

configuration. The difference between the “Interrupt Mode” and “Polling Mode” are explained as<br />

following.<br />

6-4-2-1 External Interrupt Mode<br />

Under the “Interrupt Mode” the touch event detecting way is almost the same as “ Auto Mode”. The<br />

major processes are list as follows:<br />

1. Enable Touch Panel function.<br />

2. Change mode to “Manual mode”.<br />

3. Set the switch to 「Wait for touch event 」, Set TPCR2[1:0] to 01b.<br />

4. When interrupt asserts, check if TP interrupt.<br />

5. If yes, change the switch to 「Latch X data」, Set TPCR2[1:0] to 10b, wait for enough time<br />

to make the latch data stable and latched to TPXR and TPZR.<br />

6. Change the switch to「Latch Y data」, Set TPCR2[1:0] to 11b, wait for enough time to<br />

make the latch data stable and latched to TPYR and TPZR.<br />

7. Read X, Y data from TPXR, TPYR and TPZR, and clear the interrupt status.<br />

The registers for Interrupt Mode are explained as below:<br />

Table 6-12<br />

Reg. Bit_Num Description Reference<br />

TPCR1 Bit 7 Enable Touch Panel function REG[C0h]<br />

TPCR2<br />

Bit 7<br />

Bit [1:0]<br />

TP Manual mode enable<br />

Mode selection for TP manual mode<br />

REG[C4h]<br />

INTR<br />

Bit 4<br />

Bit 0<br />

Touch Panel Interrupt Mask<br />

Touch Panel Detect Status bit<br />

REG[0Fh]<br />

TPXR Bit [7:0] Touch Panel X Data Bit[9:2](Segment) REG[C1h]<br />

TPYR Bit [7:0] Touch Panel Y Data Bit[9:2](Common) REG[C2h]<br />

TPZR<br />

Bit [3:2]<br />

Bit [1:0]<br />

Touch Panel Y Data Bit[1:0] (Common)<br />

Touch Panel X Data Bit[1:0] (Segment)<br />

REG[C3h]<br />

<strong>RAiO</strong> TECHNOLOGY INC. 45/193 www.raio.com.tw

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!