UPD78F9418A NEC, UPD78F9418A Datasheet - Page 169

no-image

UPD78F9418A

Manufacturer Part Number
UPD78F9418A
Description
(UPD7894xxA) 8-Bit Single Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F9418A
Manufacturer:
NEC
Quantity:
1 831
Part Number:
UPD78F9418AGC
Manufacturer:
NEC
Quantity:
20 000
Part Number:
UPD78F9418AGC-8BT-A
Manufacturer:
RENESAS
Quantity:
800
Part Number:
UPD78F9418AGC-8BT-A
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
UPD78F9418AGK-9EU
Manufacturer:
NEC
Quantity:
1 000
Part Number:
UPD78F9418AGK-9EU
Manufacturer:
NEC
Quantity:
20 000
Part Number:
UPD78F9418AGK-9EU-A
Manufacturer:
Renesas Electronics America
Quantity:
10 000
www.DataSheet4U.com
12.4 Operation of Comparator
comparator.
INTM1
The output of 8-bit timer 02 (TM02) can be controlled and directed to the CMPTOUT0/P23/TO2 pin via the
To run the comparator, set as follows:
• Set P23 to output mode (PM23 = 0).
• Set comparator mode register 0 (CMPRM0) as shown in Figure 12-3.
• Set external interrupt mode register 1 (INTM1) as shown in Figure 12-4 and select the valid edge of INTCMP0.
Table 12-1 lists the selection of INTCMP0 valid edges, and Figure 12-5 shows the timing chart of the comparator.
CMPRM0
ES61
0
0
1
1
ES61
0/1
Figure 12-4. Settings of External Interrupt Mode Register 1 at INTCMP0 Occurrence
Figure 12-3. Settings of Comparator Mode Register 0 for Comparator Operation
0
ES60
0/1
ES60
0
0
1
0
1
0
Table 12-1. INTCMP0 Valid Edges
0
CHAPTER 12 COMPARATOR
Falling edge
Rising edge
Setting prohibited
Both rising and falling edges
0
User’s Manual U13952EJ3V0UD
0
1
CMPON0 SELCMP0
1
INTCMP0 Valid Edge Selection
1
1
ES31
0/1
OPDR0
0/1
ES30
0/1
CMPOUT0
Selects the valid edge
(see Table 12-1).
Outputs TM02.
Switches on the
comparator power.
169

Related parts for UPD78F9418A