Download Print this page

Toshiba TLCS-900/H1 Series Manual page 376

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

3.14.6.5 Program Example
Setting example: when using 80 segments × 65 commons LCD driver.
Assign external column driver to LCDC1 and row driver to LCDC4.
This example uses LD instruction in setting of instruction and micro DMA burst
function for soft start in setting of display data.
When storing 650-byte transfer data to LCD driver.
; ********Setting for LCDC*********
ld
ld
; ********Setting for mode of LCDC0/LCDR0*********
ld
ld
; ********Setting for micro DMA and INTTC (ch0)*********
ld
ldc
ld
ldc
ld
ldc
ld
ldc
ld
ei
ld
ld
(lcdmode0), 00h
; Select RAM mode
; MMULCD = 0 (Sequential access mode)
(lcdctl0), 00h
(lcdc1l), xx
; Setting instruction for LCDC1
(lcdc4l), xx
; Setting instruction for LCDC4
a, 08h
; Source address INC mode
dmam0, a
;
; Count = 650
wa, 650
dmac0, wa
;
; Source address = 002000H
xwa, 002000h
dmas0, xwa
;
; Destination address = 1FE1H (LCDC0H)
xwa, 1fe1h
dmad0, xwa
;
; INTTC0 level = 6
(intetc01), 06H
6
;
(dmab), 01h
; Burst mode
(dmar), 01h
; Soft start
92CH21-374
TMP92CH21
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21