EasyManua.ls Logo

Holtek BS82B12A-3 - To�Ch Ke� Inte; P�Og�Amming Conside�Ations

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 106 January 23, 2015 Rev. 1.20 107 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
Touch Key Interrupt
Thetouchkeyonlyhassingleinterrupt,whenthetimeslotcounterinallthetouchkeymodulesor
inthetouchkeymodule0overows,anactualtouchkeyinterruptwilltakeplace.Thetouchkeys
mentionedherearethekeyswhichareenabled.The16-bitC/Fcounter,16-bitcounter,5-bittime
slotcounterand8-bittimeslotcounterinallmoduleswillbeautomaticallycleared.
TheTKCFOVflag,whichisthe16-bitC/Fcounteroverflowflagwillgohighwhenanyofthe
TouchKeyModule16-bitC/Fcounteroverows.Asthisagwillnotbeautomaticallycleared,it
hastobeclearedbytheapplicationprogram.
Module0onlycontainsone16-bitcounter.TheTK16OVag,whichisthe16-bitcounteroverow
ag,willgohighwhenthe16-bitcounteroverows.Asthisagwillnotbeautomaticallycleared,
ithastobeclearedbytheapplicationprogram.Moredetailsregardingthetouchkeyinterruptis
locatedintheinterruptsectionofthedatasheet.
Programming Considerations
Aftertherelevantregistersaresetup,thetouchkeydetectionprocessisinitiatedthechangingthe
TKSTbitfromlowtohigh.Thiswillenableandsynchroniseallrelevantoscillators.TheTKRCOV
ag,whichisthetimeslotcounteragwillgohighandremainhighuntilthecounteroverows.
Whenthishappensaninterruptsignalwillbegenerated.
Whentheexternaltouchkeysizeandlayoutaredefined,theirrelatedcapacitanceswillthen
determinethesensoroscillatorfrequency.

Table of Contents

Related product manuals