LCD_C Operation
942
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
LCD_C Controller
36.2.7.1 LCDCIV Software Example
The following software example shows the recommended use of LCDCIV and the handling overhead. The
LCDCIV value is added to the PC to automatically jump to the appropriate routine.
The numbers at the right margin show the necessary CPU cycles for each instruction. The software
overhead for different interrupt sources includes interrupt latency and return-from-interrupt cycles, but not
the task handling itself.
; Interrupt handler for LCD_B interrupt flags.
LCDB_HND
; Interrupt latency
6
ADD &LCDBIV,PC
; Add offset to Jump table
3
RETI
; Vector 0: No interrupt
5
JMP LCDNOCAP_HND
; Vector 2: LCDNOCAPIFG
2
JMP LCDBLKON_HND
; Vector 4: LCDBLKONIFG
2
JMP LCDBLKOFF_HND ; Vector 6: LCDBLKOFFIFG
2
LCDFRM_HND
; Vector 8: LCDFRMIFG
...
; Task starts here
RETI
5
LCDNOCAP_HND ; Vector 2: LCDNOCAPIFG
... ; Task starts here
RETI
5
LCDBLKON_HND ; Vector 4: LCDBLKONIFG
... ; Task starts here
RETI ; Back to main program
5
LCDBLKOFF_HND ; Vector 6: LCDBLKOFFIFG
... ; Task starts here
RETI ; Back to main program
5