BS83A04A-3/BS83A04A-4
8-bit Touch Key Flash MCU
Input/Output Ports
HoltekꢀmicrocontrollersꢀofferꢀconsiderableꢀflexibilityꢀonꢀtheirꢀI/Oꢀports.ꢀMostꢀpinsꢀcanꢀhaveꢀeitherꢀanꢀ
inputꢀorꢀoutputꢀdesignationꢀunderꢀuserꢀprogramꢀcontrol.ꢀAdditionally,ꢀasꢀthereꢀareꢀpull-highꢀresistorsꢀ
andꢀwake-upꢀsoftwareꢀconfigurations,ꢀtheꢀuserꢀisꢀprovidedꢀwithꢀanꢀI/Oꢀstructureꢀtoꢀmeetꢀtheꢀneedsꢀofꢀ
aꢀwideꢀrangeꢀofꢀapplicationꢀpossibilities.
Theꢀdeviceꢀprovidesꢀbidirectionalꢀinput/outputꢀlinesꢀlabeledꢀwithꢀportꢀnamesꢀPA.ꢀTheseꢀI/Oꢀportsꢀ
areꢀmappedꢀtoꢀtheꢀRAMꢀDataꢀMemoryꢀwithꢀspecificꢀaddressesꢀasꢀshownꢀinꢀtheꢀSpecialꢀPurposeꢀ
DataꢀMemoryꢀtable.ꢀAllꢀofꢀtheseꢀI/Oꢀportsꢀcanꢀbeꢀusedꢀforꢀinputꢀandꢀoutputꢀoperations.ꢀForꢀinputꢀ
operation,ꢀtheseꢀportsꢀareꢀnon-latching,ꢀwhichꢀmeansꢀtheꢀinputsꢀmustꢀbeꢀreadyꢀatꢀtheꢀT2ꢀrisingꢀedgeꢀ
ofꢀinstructionꢀ"MOVꢀA,ꢀ[m]",ꢀwhereꢀmꢀdenotesꢀtheꢀportꢀaddress.ꢀForꢀoutputꢀoperation,ꢀallꢀtheꢀdataꢀisꢀ
latchedꢀandꢀremainsꢀunchangedꢀuntilꢀtheꢀoutputꢀlatchꢀisꢀrewritten.
I/O Register List
Bit
Register
Name
7
6
5
4
3
2
1
0
PAWU
PAPU
PA
D7
D7
D7
D7
D6
D6
D6
D6
D5
D5
D5
D5
D4
D4
D4
D4
Dꢇ
Dꢇ
Dꢇ
Dꢇ
Dꢄ
Dꢄ
Dꢄ
Dꢄ
D1
D1
D1
D1
D0
D0
D0
D0
PAC
Pull-high Resistors
Manyꢀproductꢀapplicationsꢀrequireꢀpull-highꢀresistorsꢀforꢀtheirꢀswitchꢀinputsꢀusuallyꢀrequiringꢀtheꢀ
useꢀofꢀanꢀexternalꢀresistor.ꢀToꢀeliminateꢀtheꢀneedꢀforꢀtheseꢀexternalꢀresistors,ꢀallꢀI/Oꢀpins,ꢀwhenꢀ
configuredꢀasꢀanꢀinputꢀhaveꢀtheꢀcapabilityꢀofꢀbeingꢀconnectedꢀtoꢀanꢀinternalꢀpull-highꢀresistor.ꢀTheseꢀ
pull-highꢀresistorsꢀareꢀselectedꢀusingꢀregisterꢀPAPUꢀetc.andꢀareꢀimplementedꢀusingꢀweakꢀPMOSꢀ
transistors.
PAPU Register
Bit
7
D7
R/W
0
6
5
D5
R/W
0
4
D4
R/W
0
3
Dꢇ
R/W
0
2
Dꢄ
R/W
0
1
D1
R/W
0
0
D0
R/W
0
Name
R/W
D6
R/W
0
POR
Bitꢀ7~0ꢀ
PAPU:ꢀPAꢀportꢀpull-highꢀresistorꢀcontrol
ꢀ 0:ꢀdisable
ꢀ 1:ꢀenable
Rev. 1.00
ꢇ7
�eꢀꢁꢂaꢁꢃ ꢄꢅꢆ ꢄ01ꢇ