English
Language : 

HD404318 Datasheet, PDF (35/68 Pages) Hitachi Semiconductor – 4-bit HMCS400-series microcomputer
HD404318 Series
Timer B
Timer B is an 8-bit multifunction timer that includes free-running, reload, and input capture timer features.
These are described as follows.
• By setting timer mode register B1 (TMB1: $009), one of seven internal clocks supplied from prescaler
S can be selected, or timer B can be used as an external event counter
• By setting timer mode register B2 (TMB2: $026), detection edge type of EVNB can be selected
• By setting timer write register BL, BU (TWBL, BU: $00A, $00B), timer counter B (TCB) can be
written to during reload timer operation
• By setting timer read register BL, BU (TRBL, BU: $00A, $00B), the contents of timer counter B can
be read out
• Timer B can be used as an input capture timer to count the clock cycles between trigger edges input as
an external event
• An interrupt can be requested when timer counter B overflows or when a trigger input edge is received
during input capture operation
33