MTV230M64
Page 7 of 31
P41oe = 1
→ P4.1 is output pin
= 0
→ P4.1 is input pin
P40oe = 1
→ P4.0 is output pin
= 0
→ P4.0 is input pin
P57oe = 1
→ P5.7 is output pin
= 0
→ P5.7 is input pin
P56oe = 1
→ P5.6 is output pin
= 0
→ P5.6 is input pin
P55oe = 1
→ P5.5 is output pin
= 0
→ P5.5 is input pin
P54oe = 1
→ P5.4 is output pin
= 0
→ P5.4 is input pin
P53oe = 1
→ P5.3 is output pin
= 0
→ P5.3 is input pin
P52oe = 1
→ P5.2 is output pin
= 0
→ P5.2 is input pin
P51oe = 1
→ P5.1 is output pin
= 0
→ P5.1 is input pin
P50oe = 1
→ P5.0 is output pin
= 0
→ P5.0 is input pin
OPTION (w) :
Chip option configuration (All are "0" in Chip Reset).
PWMF = 1
→ select 94KHz PWM frequency.
= 0
→ select 47KHz PWM frequency.
DIV253 = 1
→ PWM pulse width is 253 step resolution.
= 0
→ PWM pulse width is 256 step resolution.
SlvAbs1,SlvAbs0 : Slave IIC block A's slave address length.
= 1,0
→ 5-bits slave address.
= 0,1
→ 6-bits slave address.
= 0,0
→ 7-bits slave address.
ENSCL = 1
→ Enable slave IIC block to hold HSCL pin low while MTV230M64 can't
catch-up the external master's speed.
Msel
= 1
→ Master IIC block connect to HSCL/HSDA pins.
= 0
→ Master IIC block connect to ISCL/ISDA pins.
MIICF1,MIICF0 = 1,1
→ select 400KHz Master IIC frequency.
= 1,0
→ select 200KHz Master IIC frequency.
= 0,1
→ select 50KHz Master IIC frequency.
= 0,0
→ select 100KHz Master IIC frequency.
4. I/O Ports
4.1 Port1
Port1 is a group of pseudo open drain pins. It can be use as general purpose I/O. Port1’s behavior is the same
as standard 8051.
4.2 P3.0-2, P3.4-5
If these pins are not set as IIC pins, Port3 can be used as general purpose I/O, interrupt, UART and Timer pins.
Port3’s behavior is the same as standard 8051.
4.3 Port4, Port5 and Port6
Port4 and Port5 are used as general purpose I/O. S/W needs to set the corresponding P4(n)oe and P5(n)oe to
define these pins are input or output. Port6 is pure output.