Rev. 1.50 66 August 28, 2017 Rev. 1.50 67 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
I/O Port Control Registers
EachPorthasitsowncontrolregister,knownasPAC~PDC,whichcontrolstheinput/output
configuration.Withthiscontrolregister,eachI/Opinwithorwithoutpull-highresistorscanbe
reconfigureddynamicallyundersoftwarecontrol.FortheI/Opintofunctionasaninput,the
correspondingbitofthecontrolregistermustbewrittenasa“1”.Thiswillthenallowthelogicstate
oftheinputpintobedirectlyreadbyinstructions.Whenthecorrespondingbitofthecontrolregister
iswrittenasa“0”,theI/OpinwillbesetupasaCMOSoutput.Ifthepiniscurrentlysetupasan
output,instructionscanstillbeusedtoreadtheoutputregister.
However,itshouldbenotedthattheprogramwillinfactonlyreadthestatusoftheoutputdatalatch
andnottheactuallogicstatusoftheoutputpin.
I/O Port Source Current Control
ThesedevicessupportdifferentsourcecurrentdrivingcapabilityforeachI/Oport.Withthe
correspondingselectionregister,SLEDC0andSLEDC1,eachI/Oportcansupportfourlevelsofthe
sourcecurrentdrivingcapability.UsersshouldrefertotheD.C.characteristicssectiontoselectthe
desiredsourcecurrentfordifferentapplications.
Register
Name
Bit
7 6 5 4 3 2 1 0
SLEDC0 PBPS3 PBPS2 PBPS1 PBPS0 PAPS3 PAPS2 PAPS1 PAPS0
SLEDC1
(HT66F0175)
— — — — PCPS3 PCPS2 PCPS1 PCPS0
SLEDC1
(HT66F0185)
— — PDPS1 PDPS0 PCPS3 PCPS2 PCPS1 PCPS0
I/O Port Source Current Control Registers List
SLEDC0 Register
Bit 7 6 5 4 3 2 1 0
Name PBPS3 PBPS2 PBPS1 PBPS0 PAPS3 PAPS2 PAPS1 PAPS0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 1 0 1 0 1 0 1
Bit7~6 PBPS3~PBPS2:PB6~PB4sourcecurrentselection
00:sourcecurrent=Level0(min.)
01:sourcecurrent=Level1
10:sourcecurrent=Level2
11:sourcecurrent=Level3(max.)
Bit5~4 PBPS1~PBPS0:PB3~PB0sourcecurrentselection
00:sourcecurrent=Level0(min.)
01:sourcecurrent=Level1
10:sourcecurrent=Level2
11:sourcecurrent=Level3(max.)
Bit3~2 PAPS3~PAPS2:PA7~PA4sourcecurrentselection
00:sourcecurrent=Level0(min.)
01:sourcecurrent=Level1
10:sourcecurrent=Level2
11:sourcecurrent=Level3(max.)
Bit1~0 PAPS1~PAPS0:PA3~PA0sourcecurrentselection
00:sourcecurrent=Level0(min.)
01:sourcecurrent=Level1
10:sourcecurrent=Level2
11:sourcecurrent=Level3(max.)