eorex
EU1010
Set T1C.4=1(PWM=1), Timer-1 will work in PWM mode. User can preset T1BF0 and T1BF1. Timer1
interrupt will have two kinds of time duties based on T1BF0 and T1BF1 data.
I/O ports
PA ports (PA0, PA1, PA4 and PA5) are 4-bits I/O ports. System can either output data by writing data
into PA(10H) ports or read data from input mode by reading PA(10H) ports.
When PA ports are set in output mode, it can be optioned by software as CMOS or NMOS output. Set in
input mode, PA ports can be optioned as internal pull up or input with floating status. Also, PA6~0 could
be optioned as A/D converter analog signal input pins. Please refer to A/D Converter section.
Address
Name
10H
PA
bit7
#
bit6
#
bit5
1/0
#
bit4
1/0
#
bit3
#
bit2
#
bit1
1/0
#
bit0
1/0
#
Default Value
#
#
#
#
PAIO register: control PA port either as input mode or output mode. PAIO register can be set partially bits
in input mode and partial bits in output mode.
Address
Name
11H
bit7
#
bit6
#
bit5
1/0
1
bit4
1/0
1
bit3
#
bit2
#
bit1
1/0
1
bit0
1/0
1
PAIO
Default Value
#
#
#
#
Note:
*PAIO.n = 1, set as input mode.
PAIO.n = 0, set as output mode.
(Please be noted that PAIO.0 default data is “0”.)
That n = 0, 1, 4 and 5.
PACN register: control output mode as CMOS or NMOS output.
Feb.2009
www.eorex.com
13/21