BS83B08A-3/BS83B12A-3/BS83B16A-3
BS83B08A-4/BS83B12A-4/BS83B16A-4
8-Bit Touch Key Flash MCU
Input/Output Ports
HoltekꢀmicrocontrollersꢀofferꢀconsiderableꢀflexibilityꢀonꢀtheirꢀI/Oꢀports.ꢀWithꢀtheꢀinputꢀorꢀoutputꢀ
designationꢀofꢀeveryꢀpinꢀfullyꢀunderꢀuserꢀprogramꢀcontrol,ꢀpull-highꢀselectionsꢀforꢀallꢀportsꢀandꢀ
wake-upꢀselectionsꢀonꢀcertainꢀpins,ꢀ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~PC.ꢀ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
BS83B08A-3/BS83B08A-4
Register
Bit
Name
7
6
5
4
3
2
1
0
PAWU
PAPU
PA
D7
D7
D7
D7
D7
D7
D7
—
—
—
—
D6
D6
D6
—
—
—
—
D5
D5
D5
D4
D4
D4
D4
D4
D4
D4
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
D1
D1
D1
D1
D1
D1
D1
D0
D0
D0
D0
D0
D0
D0
PAC
PBPU
PB
PBC
BS83B12A-3/BS83B12A-4
Register
Bit
Name
7
6
5
4
3
2
1
0
PAWU
PAPU
PA
D7
D7
D7
D7
D7
D7
D7
—
—
—
—
—
D6
D6
D6
—
—
—
—
—
—
—
D5
D5
D5
—
—
—
D4
D4
D4
D4
D4
D4
D4
—
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢃ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
Dꢁ
D1
D1
D1
D1
D1
D1
D1
D1
D1
D1
D0
D0
D0
D0
D0
D0
D0
D0
D0
D0
PAC
PBPU
PB
PBC
PCPU
PC
—
—
PCC
—
—
Rev. 1.00
56
�aꢀ 0ꢁꢂ ꢁ01ꢃ