upd78f9211grt2-jjg-a ETC-unknow, upd78f9211grt2-jjg-a Datasheet - Page 91

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
(5) Port mode register 2 (PM2) and port mode control register 2 (PMC2)
Cautions 3. In the following cases, note with caution that the valid edge of the TI0n0 pin is detected.
Remark n = 0, 1
When using the P21/TO00/TI010/ANI1/INTP0 pin for timer output, clear PM21, the output latch of P21, and
PMC21 to 0.
When using the P20/TI000/TOH1/ANI0 and P21/TO00/TI010/ANI1/INTP0 pins as a timer input, set PM20 and
PM21 to 1, and clear PMC20 and PMC21 to 0.
At this time, the output latches of P20 and P21 can be either 0 or 1.
PM2 and PMC2 are set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets the value of PM2 to FFH, and clears the value of PMC2 to 00H.
Address: FF22H After reset: FFH R/W
Symbol
PM2
4. The sampling clock used to eliminate noise differs when a TI000 valid edge is used as the
5. When using P21 as the input pin (TI010) of the valid edge, it cannot be used as a timer
count clock and when it is used as a capture trigger. In the former case, the count clock
is f
(PRM00). The capture operation is not performed until the valid edge is sampled and the
valid level is detected twice, thus eliminating noise with a short pulse width.
output (TO00). When using P21 as the timer output pin (TO00), it cannot be used as the
input pin (TI010) of the valid edge.
<1> Immediately after a system reset, if a high level is input to the TI0n0 pin, the
<2> If the TM00 operation is stopped while the TI0n0 pin is high level, TM00 operation is
<3> If the TM00 operation is stopped while the TI0n0 pin is low level, TM00 operation is
PM2n
7
1
0
1
XP
operation of the 16-bit timer counter 00 (TM00) is enabled
→ If the rising edge or both rising and falling edges are specified as the valid edge
then enabled after a low level is input to the TI0n0 pin
→ If the falling edge or both rising and falling edges are specified as the valid edge
then enabled after a high level is input to the TI0n0 pin
→ If the rising edge or both rising and falling edges are specified as the valid edge
, and in the latter case the count clock is selected by prescaler mode register 00
of the TI0n0 pin, a rising edge is detected immediately after the TM00 operation is
enabled.
of the TI0n0 pin, a falling edge is detected immediately after the TM00 operation is
enabled.
of the TI0n0 pin, a rising edge is detected immediately after the TM00 operation is
enabled.
Figure 6-9. Format of Port Mode Register 2 (PM2)
Output mode (output buffer on)
Input mode (output buffer off)
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
6
1
User’s Manual U16994EJ3V0UD
5
1
P2n pin I/O mode selection (n = 0 to 3)
4
1
PM23
3
PM22
2
PM21
1
PM20
0
91

Related parts for upd78f9211grt2-jjg-a