EasyManua.ls Logo

Holtek BS82B12A-3 - To�Ch Ke� Ope�Ation

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 104 January 23, 2015 Rev. 1.20 105 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 Operation
Whenangertouchesorisinproximitytoatouchpad,thecapacitanceofthepadwillincrease.
Byusingthiscapacitancevariationtochangeslightlythefrequencyoftheinternalsenseoscillator,
touchactionscanbesensedbymeasuringthesefrequencychanges.Usinganinternalprogrammable
dividerthereferenceclockisusedtogenerateafixedtimeperiod.Bycountinganumberof
generatedclockcyclesfromthesenseoscillatorduringthisxedtimeperiodtouchkeyactionscan
bedetermined.
EachtouchkeymodulecontainsfourtouchkeyinputswhicharesharedlogicalI/Opins,and
thedesiredfunctionisselectedusingregisterbits.Eachtouchkeyhasitsownindependentsense
oscillator.Therearethereforefoursenseoscillatorswithineachtouchkeymodule.
Duringthisreferenceclockfixedinterval,thenumberofclockcyclesgeneratedbythesense
oscillatorismeasured,anditisthisvaluethatisusedtodetermineifatouchactionhasbeenmade
ornot.AttheendofthexedreferenceclocktimeintervalaTouchKeyinterruptsignalwillbe
generated.
UsingtheTSCSbitintheTKC0registercanselectthemodule0timeslotcounterasthetimeslot
counterforallmodules.Allmodulesusethesamestartedsignal.The16-bitC/Fcounter,16-bit
counter,5-bittimeslotcounterinallmoduleswillbeautomaticallyclearedwhenthisbitiscleared
tozero,butthe8-bitprogrammabletimeslotcounterwillnotbecleared.Theoverowtimeissetup
byuser.Whenthisbitchangesfromlowtohigh,the16-bitC/Fcounter,16-bitcounter,5-bittime
slotcounterand8-bittimeslottimercounterwillbeautomaticallyswitchedon.
Thekeyoscillatorandreferenceoscillatorinallmoduleswillbeautomaticallystoppedandthe
16-bitC/Fcounter,16-bitcounter,5-bittimeslotcounterand8-bittimeslottimercounterwillbe
automaticallyswitchedoffwhenthe5-bittimeslotcounteroverows.Theclocksourceforthetime
slotcounterand8+5bitcounter,issourcedfromthereferenceoscillatororf
SYS
/4.Thereference
oscillatorandkeyoscillatorwillbeenabledbysettingtheMnROENbitandMnKOENbitsinthe
TKMnC1register.
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.
Eachtouchkeymoduleconsistsoffourtouchkeys,Key1~Key4arecontainedinmodule0,Key5
~Key8arecontainedinmodule1,Key9~Key12arecontainedinmodule2,Key13~Key16are
containedinthemodule3andKey17~Key20arecontainedinthemodule4.Eachtouchkey
modulehasanidenticalstructure.

Table of Contents

Related product manuals