BS83B08A-3/BS83B12A-3/BS83B16A-3
BS83B08A-4/BS83B12A-4/BS83B16A-4
8-Bit Touch Key Flash MCU
I/O Port Control Registers
EachꢀI/OꢀportꢀhasꢀitsꢀownꢀcontrolꢀregisterꢀknownꢀasꢀPAC~PCC,ꢀtoꢀcontrolꢀtheꢀinput/outputꢀ
configuration.ꢀWithꢀthisꢀcontrolꢀregister,ꢀeachꢀCMOSꢀoutputꢀorꢀinputꢀcanꢀbeꢀreconfiguredꢀ
dynamicallyꢀunderꢀsoftwareꢀcontrol.ꢀEachꢀpinꢀofꢀtheꢀI/Oꢀportsꢀisꢀdirectlyꢀmappedꢀtoꢀaꢀbitꢀinꢀitsꢀ
associatedꢀportꢀcontrolꢀregister.ꢀForꢀtheꢀI/Oꢀpinꢀtoꢀfunctionꢀasꢀanꢀinput,ꢀtheꢀcorrespondingꢀbitꢀofꢀtheꢀ
controlꢀregisterꢀmustꢀbeꢀwrittenꢀasꢀaꢀ“1”.ꢀThisꢀwillꢀthenꢀallowꢀtheꢀlogicꢀstateꢀofꢀtheꢀinputꢀpinꢀtoꢀbeꢀ
directlyꢀreadꢀbyꢀinstructions.ꢀWhenꢀtheꢀcorrespondingꢀbitꢀofꢀtheꢀcontrolꢀregisterꢀisꢀwrittenꢀasꢀaꢀ“0”,ꢀ
theꢀI/OꢀpinꢀwillꢀbeꢀsetupꢀasꢀaꢀCMOSꢀoutput.ꢀIfꢀtheꢀpinꢀisꢀcurrentlyꢀsetupꢀasꢀanꢀoutput,ꢀinstructionsꢀ
canꢀstillꢀbeꢀusedꢀtoꢀreadꢀtheꢀoutputꢀregister.ꢀHowever,ꢀitꢀshouldꢀbeꢀnotedꢀthatꢀtheꢀprogramꢀwillꢀinꢀfactꢀ
onlyꢀreadꢀtheꢀstatusꢀofꢀtheꢀoutputꢀdataꢀlatchꢀandꢀnotꢀtheꢀactualꢀlogicꢀstatusꢀofꢀtheꢀoutputꢀpin.
PAC Register
Bit
Name
R/W
7
D7
R/W
1
6
5
4
D4
R/W
1
3
Dꢃ
R/W
1
2
Dꢁ
R/W
1
1
D1
R/W
1
0
D0
R/W
1
—
—
—
—
—
—
POR
Bitꢀ7ꢀ
I/OꢀPortꢀAꢀbitꢀ7ꢀInput/OutputꢀControl
0:ꢀDisable
1:ꢀEnable
Bitꢀ6~5ꢀ
Bitꢀ4~0ꢀ
Unimplemented,ꢀreadꢀasꢀ“0”
I/OꢀPortꢀAꢀbitꢀ4~bitꢀ0ꢀInput/OutputꢀControl
0:ꢀDisable
1:ꢀEnable
PBC Register
Bit
Name
R/W
7
D7
R/W
1
6
D6
R/W
1
5
D5
R/W
1
4
D4
R/W
1
3
Dꢃ
R/W
1
2
Dꢁ
R/W
1
1
D1
R/W
1
0
D0
R/W
1
POR
Bitꢀ7~0ꢀ
I/OꢀPortꢀBꢀbitꢀ7~bitꢀ0ꢀInput/OutputꢀControl
0:ꢀOutput
1:ꢀInput
PCC Register – BS83B12A-3/BS83B12A-4
Bit
Name
R/W
7
6
5
4
3
Dꢃ
R/W
1
2
Dꢁ
R/W
1
1
D1
R/W
1
0
D0
R/W
1
—
—
—
—
—
—
—
—
—
—
—
—
POR
Bitꢀ7~4ꢀ
Bitꢀ3~0ꢀ
Unimplemented,ꢀreadꢀasꢀ“0”
I/OꢀPortꢀCꢀbitꢀ3~bitꢀ0ꢀInput/OutputꢀControl
0:ꢀDisable
1:ꢀEnable
Rev. 1.00
59
�aꢀ 0ꢁꢂ ꢁ01ꢃ