
W79E804A/803A/802A
Publication Release Date: July 16, 2007
- 23 -
Revision A2
CLOCK CONTROL
Bit:
7
6
5
4
3
2
1
0
-
-
-
T1M
T0M
-
-
-
Mnemonic: CKCON
Address: 8Eh
BIT NAME
7-5
FUNCTION
-
Reserved.
Timer 1 clock select:
0: Timer 1 uses a divide by 12 clocks.
1: Timer 1 uses a divide by 4 clocks.
Timer 0 clock select:
0: Timer 0 uses a divide by 12 clocks.
1: Timer 0 uses a divide by 4 clocks.
Reserved.
4
T1M
3
T0M
2-0
-
PORT 1
Bit:
7
6
5
4
3
2
1
0
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
Mnemonic: P1
P1.7-0: General purpose Input/Output port. Most instructions will read the port pins in case of a port
read access, however in case of read-modify-write instructions, the port latch is read. These alternate
functions are described below:
Address: 90h
BIT
7
6
5
4
3
2
1
0
NAME
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
FUNCTION
PWM 2 Pin.
PWM 1 Pin.
/RST Pin or Input Pin by alternative.
/INT1 interrupt.
/INT0 interrupt or SDA of I2C.
Timer 0 or SCL of I2C.
RXD of Serial port.
TXD of Serial port.
Note:
The initial value of the port is set by CONFIG1.PRHI bit. The default setting for CONFIG1.PRHI =1 which the alternative
function output is turned on upon reset. If CONFIG1.PRHI is set to 0, the user has to write a 1 to port SFR to turn on the
alternative function output.
DIVIDER CLOCK
Bit:
7
6
5
4
3
2
1
0
DIVM.7
DIVM.6
DIVM.5
DIVM.4
DIVM.3
DIVM.2
DIVM.1
DIVM.0
Mnemonic: DIVM
Address: 95h
BIT
NAME
FUNCTION
7-0
DIVM.[7:0] The DIVM register is clock divider of uC. Refer OSCILLATOR chapter.