EasyManua.ls Logo

Holtek BS82B12A-3 - P�Ll-High Resisto�S; Po�T a Wake-�P; I;O Po�T Cont�Ol Registe�S; I;O Pin St

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.20 66 January 23, 2015 Rev. 1.20 67 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
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
conguredasaninputhavethecapabilityofbeingconnectedtoaninternalpull-highresistor.These
pull-highresistorsareselectedusingregistersPAPU~PDPU,andareimplementedusingweak
PMOStransistors.
Port A Wake-up
TheHALTinstructionforcesthemicrocontrollerintotheSLEEPorIDLEModewhichpreserves
power,afeaturethatisimportantforbatteryandotherlow-powerapplications.Variousmethods
existtowake-upthemicrocontroller,oneofwhichistochangethelogicconditionononeofthePort
Apinsfromhightolow.Thisfunctionisespeciallysuitableforapplicationsthatcanbewokenup
viaexternalswitches.EachpinonPortAcanbeselectedindividuallytohavethiswake-upfeature
usingthePAWUregister.
I/O Port Control Registers
EachI/OporthasitsowncontrolregisterknownasPAC~PDC,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.
I/O Pin Structures
TheaccompanyingdiagramsillustratetheinternalstructuresofsomegenericI/Opintypes.As
theexactlogicalconstructionoftheI/Opinwilldifferfromthesedrawings,theyaresuppliedasa
guideonlytoassistwiththefunctionalunderstandingoftheI/Opins.Thewiderangeofpin-shared
structuresdoesnotpermitalltypestobeshown.

  
  
  


 
  
  
  
   
  
  
  
 

 
 

 
Generic Input/Output Structure

Table of Contents

Related product manuals