English
Language : 

MC81F4204 Datasheet, PDF (64/150 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC81F4204
R0CONM – R03~05
R0 PORT CONTROL MIDDLE REGISTER
00C7H
A reset clears the R0CONM register to „00H‟, makes R04-R03 pins input mode. You can use
R0CONM register setting to select input or output mode (open-drain or push-pull) and enable
alternative functions.
When programming the port, please remember that any alternative peripheral I/O function that
defined by the R0CONM register must also be enabled in the associated peripheral module.
R0CONM
7
6
5
4
3
2
1
0
R05
R04
R03
Reset value: 00H
R/W R/W R/W R/W R/W R/W R/W R/W
R05
R05/AN3/EXT3/SI/T1O/PWM1O
R04
R04/AN2/EXT2/SCK/EC1
R03
R03/AN1/EXT1/T0O/PWM0O
00: Schmitt trigger input mode (SI/EXT3)
01: Output mode, open-drain
10: Alternative function (AN3)
11: Alternative function (T1O/PWM1O)
000: Schmitt trigger input mode
( *SCK in / EC1 / EXT2)
001: Output mode, open-drain
010: Alternative function (AN2)
011: Alternative function (SCK out)
1xx: Output mode, push-pull
000: Schmitt trigger input mode (EXT1)
001: Output mode, open-drain
010: Alternative function (AN1)
011: Alternative function (T0O/PWM0O)
1xx: Output mode, push-pull
Note:
If you want to use SIO module in slave mode, you must set SCK port as an input mode.
64
October 19, 2009 Ver.1.35