tmp88f846ug TOSHIBA Semiconductor CORPORATION, tmp88f846ug Datasheet - Page 111

no-image

tmp88f846ug

Manufacturer Part Number
tmp88f846ug
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP88F846UG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(CZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(ZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Example :Inputting 50 Hz pulse to TC3, and generating interrupts every 0.5 s
12.3.2 Event Counter Mode
TC3 pin input
Counter
TC3DRA
INTTC3 interrupt
up-counter is cleared. After being cleared, the up-counter restarts counting at each rising edge of the input
pulse to the TC3 pin. Since a match is detected at the falling edge of the input pulse to TC3 pin, an INTTC3
interrupt request is generated at the falling edge immediately after the up-counter reaches the value set in
TC3DRA.
is required for high-going and low-going pulses.
The count value during a timer operation can be checked by the read instruction to TC3DRB.
In the event counter mode, the up-counter counts up at the rising edge of the input pulse to the TC3 pin.
When a match between the up-counter and TC3DRA value is detected, an INTTC3 interrupt is generated and
The maximum applied frequencies are shown in Table 12-2. The pulse width larger than one machine cycle
Setting TC3CR<ACAP> to 1 captures the up-counter value into TC3DRB with the auto-capture function.
Note:00H which is stored in the up-counter immediately after detection of a match is not captured into TC3DRB.
(Figure 12-2)
Table 12-2 Maximum Frequencies Applied to TC3
High-going
Low-going
Timer start
Figure 12-4 Event Counter Mode Timing Chart
LD
LD
LD
0
1
(TC3CR), 00001110B
(TC3DRA), 19H
(TC3CR), 00011110B
2
n
Page 101
3
NORMAL, IDLE mode
Minimum Pulse Width
: 0.5 s ÷ 1/50 = 25 = 19H
: Starts TC3.
: Sets the clock mode
2
2
2
2
/fc
/fc
Match detect
n
0
Counter clear
1
2
TMP88F846UG
3

Related parts for tmp88f846ug