|
P89V660 Datasheet, PDF (59/89 Pages) NXP Semiconductors – 8-bit 80C51 5 V low power 16 kB/32 kB/64 kB flash microcontroller with 512 B/1 kB/2 kB RAM, dual I2C-bus, SPI | |||
|
◁ |
NXP Semiconductors
P89V660/662/664
80C51 with 512 B/1 kB/2 kB RAM, dual I2C-bus, SPI
Table 46.
Bit
7
6
5 to 3
2 to 1
0
CMOD - PCA counter mode register (address C1H) bit description
Symbol
Description
CIDL
Counter Idle Control: CIDL = 0 programs the PCA Counter to continue
functioning during Idle mode. CIDL = 1 programs it to be gated off
during idle.
WDTE
WatchDog Timer Enable: WDTE = 0 disables watchdog timer function
on module 4. WDTE = 1 enables it.
-
Reserved for future use. Should be set to â0â by user programs.
CPS1,
CPS0
PCA Count Pulse Select (see Table 47 below).
ECF
PCA Enable Counter Overï¬ow Interrupt: ECF = 1 enables CF bit in
CCON to generate an interrupt. ECF = 0 disables that function.
Table 47.
CPS1
0
0
1
1
CMOD - PCA counter mode register (address C1H) count pulse select
CPS0
Select PCA input
0
0 Internal clock, fosc / 6
1
1 Internal clock, fosc / 6
0
2 Timer 0 overï¬ow
1
3 External clock at ECI/P1[2] pin (max rate = fosc / 4)
Table 48. CCON - PCA counter control register (address 0C0H) bit allocation
Bit addressable; Reset value: 00H
Bit
7
6
5
4
3
2
1
Symbol
CF
CR
-
CCF4 CCF3 CCF2 CCF1
0
CCF0
Table 49.
Bit
7
6
5
4
3
2
1
0
CCON - PCA counter control register (address 0C0H) bit description
Symbol
Description
CF
PCA Counter Overï¬ow Flag. Set by hardware when the counter rolls
over. CF ï¬ags an interrupt if bit ECF in CMOD is set. CF may be set by
either hardware or software but can only be cleared by software.
CR
PCA Counter Run Control Bit. Set by software to turn the PCA counter
on. Must be cleared by software to turn the PCA counter off.
-
Reserved for future use. Should be set to â0â by user programs.
CCF4
PCA Module 4 Interrupt Flag. Set by hardware when a match or
capture occurs. Must be cleared by software.
CCF3
PCA Module 3 Interrupt Flag. Set by hardware when a match or
capture occurs. Must be cleared by software.
CCF2
PCA Module 2 Interrupt Flag. Set by hardware when a match or
capture occurs. Must be cleared by software.
CCF1
PCA Module 1 Interrupt Flag. Set by hardware when a match or
capture occurs. Must be cleared by software.
CCF0
PCA Module 0 Interrupt Flag. Set by hardware when a match or
capture occurs. Must be cleared by software.
P89V660_662_664_1
Product data sheet
Rev. 01 â 2 May 2007
© NXP B.V. 2007. All rights reserved.
59 of 89
|
▷ |