upd78f0148m1gka1-9eu Renesas Electronics Corporation., upd78f0148m1gka1-9eu Datasheet - Page 188

no-image

upd78f0148m1gka1-9eu

Manufacturer Part Number
upd78f0148m1gka1-9eu
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
7.4.4
counter 0n (TM0n).
cleared to 0 and the interrupt request signal (INTTM00n) is generated.
prescaler mode register 0n (PRM0n).
TI00n pin is detected twice, thus eliminating noise with a short pulse width.
188
The basic operation setting procedure is as follows.
<1> Set the CRC0n register (see Figure 7-31 for the set value).
<2> Set the count clock by using the PRM0n register.
<3> Set any value to the CR00n register (0000H cannot be set).
<4> Set the TMC0n register to start the operation (see Figure 7-31 for the set value).
Remarks 1. For the setting of the TI00n pin, see 7.3 (5) Port mode register 0 (PM0).
The external event counter counts the number of external clock pulses input to the TI00n pin using 16-bit timer
TM0n is incremented each time the valid edge specified by prescaler mode register 0n (PRM0n) is input.
When the TM0n count value matches the 16-bit timer capture/compare register 00n (CR00n) value, TM0n is
Input a value other than 0000H to CR00n (a count operation with 1-bit pulse cannot be carried out).
Any of three edgesrising, falling, or both edgescan be selected using bits 4 and 5 (ES0n0 and ES0n1) of
Sampling is performed using the internal clock (f
Setting
External event counter operation
2. For how to enable the INTTM00n interrupt, see CHAPTER 19 INTERRUPT FUNCTIONS.
CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U15947EJ3V1UD
X
) and an operation is only performed when a valid level of the

Related parts for upd78f0148m1gka1-9eu