English
Language : 

HD404818 Datasheet, PDF (54/100 Pages) Hitachi Semiconductor – 16-digit LCD driver
HD404818 Series
Registers for Timers
Timer Mode Register A (TMA: $008): Timer mode register A is a 4-bit write-only register which
controls the timer A operation as table 21 shows. Timer mode register A is initialized to $0 at MCU reset.
Timer Mode Register B (TMB: $009): Timer mode register B (TMB) is a 4-bit write-only register which
selects the auto-reload function, the prescaler divide ratio, and the source of the clock input signal, as
shown in table 22. Timer mode register B is initialized to $0 by MCU reset.
The data of timer B changes at the second instruction cycle of a write instruction. Initialization of timer B
by writing data into timer load register B should be performed after the contents of TMB are changed.
Table 21 Timer Mode Register A
TMA
Bit 3
Bit 2
Bit 1 Bit 0
Source Prescaler, Input Clock Period,
Operating Mode
0
0
0
0
PSS, 2048 tcyc
1
PSS, 1024 tcyc
1
0
PSS, 512 tcyc
1
PSS, 128 tcyc
1
0
0
PSS, 32 tcyc
1
PSS, 8 tcyc
1
0
PSS, 4 tcyc
1
PSS, 2 tcyc
1
0
0
0
PSW, 32 tsubcyc
1
PSW, 16 tsubcyc
1
0
PSW, 8 tsubcyc
1
PSW, 2 tsubcyc
1
0
0
PSW, 1/2 tsubcyc
1
Do not use
Timer A mode
Time-base mode
1
0
PSW, TCA reset
1
Notes: 1. tsubcyc = 244.14 µs (when a 32.768-kHz crystal oscillator is used)
2. Timer counter overflow output period (s) = input clock period (s) × 256
3. If PSW or TCA reset is selected while the LCD is operating, LCD operation halts (power switch
goes off).
When the LCD is connected for display, the PSW and TCA reset periods must be set in the
program to the minimum.
4. In time base mode, the timer counter overflow output cycle must be greater than half of the
interrupt frame period (T/2 = tRC).
If 1/2 tsubcyc is selected, tRC must be 7.8125 ms ((MIS1, MIS0) = (0, 1), see figure 13).
52