EasyManua.ls Logo

Holtek BS82B12A-3 - TM Inte; TM Exte�Nal Pins; TM Inp�T;O�Tp�T Pin Cont�Ol Registe

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 70 January 23, 2015 Rev. 1.20 71 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
TM Interrupts
TheCompactandPeriodictypeTMseachhastwointernalinterrupts,theinternalcomparatorA
orcomparatorP,whichgenerateaTMinterruptwhenacomparematchconditionoccurs.Whena
TMinterruptisgenerated,itcanbeusedtoclearthecounterandalsotochangethestateoftheTM
outputpin.
TM External Pins
EachoftheTMs,irrespectiveofwhattype,hasoneTMinputpins,withthelabelTCKn.TheTM
inputpin,TCKn,isessentiallyaclocksourcefortheTMandisselectedusingthexTnCK2~xTnCK0
bitsinthexTMnC0register.ThisexternalTMinputpinallowsanexternalclocksourcetodrive
theinternalTM.TheTMinputpincanbechosentohaveeitherarisingorfallingactiveedge.The
TCK1pinisalsousedastheexternaltriggerinputpininsinglepulseoutputmodeforthePTM0.
TheTMseachhastwooutputpins.WhentheTMisintheCompareMatchOutputMode,these
pinscanbecontrolledbytheTMtoswitchtoahighorlowlevelortotogglewhenacompare
matchsituationoccurs.AstheTMoutputpinsarepin-sharedwithotherfunction,theTMoutput
functionmustrstbesetupusingtheassociatedregister.Asinglebitintheregisterdeterminesifits
associatedpinistobeusedasanexternalTMoutputpinorifitistohaveanotherfunction.
Device CTM0 PTM0
BS82B12A-3
BS82C16A-3
BS82D20A-3
TCK0
TP0_0, TP0_1
TCK1
TP1_0, TP1_1
TM Input/Output Pins
TM Input/Output Pin Control Register
SelectingtohaveaTMinput/outputorwhethertoretainitsothersharedfunctionisimplemented
usingoneregister,withasinglebitineachregistercorrespondingtoaTMinput/outputpin.Setting
thebithighwillsetupthecorrespondingpinasaTMinput/output,ifresettozerothepinwillretain
itsoriginalotherfunction.
 

 
  

 

 
  


 
BS82B12A-3 CTM Function Pin Control Block Diagram

Table of Contents

Related product manuals