42 / 99 page
HMS87C1X04B/08B/16B
38
SEP. 2004 Ver 1.03
PORT
RBFUNC.4~0
Description
RB7/
TMR2OV
0
RB7 (Normal I/O Port)
1
Timer2 Overflow Output
RB6/EC1
0
RB6 (Normal I/O Port)
1
Event Counter 1 Input
RB5/
PWM1/
COMP1
0
RB5 (Normal I/O Port)
1
PWM1 Output /
Timer3 Compare Output
RB4/
PWM0/
COMP0
0
RB4 (Normal I/O Port)
1
PWM0 Output /
Timer1 Compare Output
RB3/INT1
0
RB3 (Normal I/O Port)
1
External Interrupt Input 1
RB2/INT0
0
RB2 (Normal I/O Port)
1
External Interrupt Input 0
RB1/BUZ
0
RB1 (Normal I/O Port)
1
Buzzer Output
RB0/AN0/
AVref
01
1. When ANSEL0 = “0”, this port is defined for normal I/O port
(RB0).
When ANSEL0 = “1” and ADS2~0 = “000”, this port
can be used Analog Input Port (AN0).
RB0 (Normal I/O Port)/
AN0 (ANSEL0=1)
12
2. When this bit set to “1”, this port defined for AVref, so it can
not be used Analog Input Port AN0 and Normal I/O
Port RB0.
External Analog Reference
Voltage