Electronic Components Datasheet Search
  English  ▼

X  

HT82B42RE Datasheet(PDF) 28 Page - Holtek Semiconductor Inc

Part # HT82B42RE
Description  I/O MCU with USB Interface
PDF  84 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT82B42RE Datasheet(HTML) 28 Page - Holtek Semiconductor Inc

Back Button HT82B42RE Datasheet HTML 24Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 25Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 26Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 27Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 28Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 29Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 30Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 31Page - Holtek Semiconductor Inc HT82B42RE Datasheet HTML 32Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 84 page
background image
Rev. 1.10
�8
�ove��e� 0�� �01�
Rev. 1.10
�9
�ove��e� 0�� �01�
HT82B42R/HT82B42RE
I/O MCU with USB Interface
Programming Considerations
Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof
thedataandportcontrolregisterwillbesethigh.ThismeansthatallI/Opinswilldefaulttoaninput
state,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-highoptions
havebeenselected.IfthePAC,PBCandPECportcontrolregister,arethenprogrammedtosetup
somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated
PA,PBandPEportdataregistersarefirstprogrammed.Selectingwhichpinsareinputsandwhich
areoutputscanbeachievedbyte-widebyloadingthecorrectvalueintotheportcontrolregisteror
byprogrammingindividualbitsintheportcontrolregisterusingthe"SET[m].i"and"CLR[m].i"
instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-writeoperationtakes
place.Themicrocontrollermustfirstreadinthedataontheentireport,modifyittotherequirednew
bitvaluesandthenrewritethisdatabacktotheoutputports.
T1
T2
T3
T4
T1
T2
T3
T4
Wr it e to P or tR ead fr om P or t
S yst em C lo ck
Po r t D at a
Read/Write Timing
Allpinshavetheadditionalcapabilityofprovidingwake-upfunctions.Whenthedeviceisinthe
PowerDownMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahighto
lowtransitionofanyofthePortpins.Singleormultiplepinscanbesetuptohavethisfunction.
Timer/Event Counters
Theprovisionoftimersformanimportantpartofanymicrocontroller,givingthedesignerameans
ofcarryingouttimerelatedfunctions.Thisdevicecontainstwocount-uptimersof8-bitand16-bit
capacitiesrespectively.Aseachtimerhasthreedifferentoperatingmodes,theycanbeconfiguredto
operateasageneraltimer,anexternaleventcounterorasapulsewidthmeasurementdevice.
TherearetwotypesofregistersrelatedtotheTimer/EventCounters.Thefirstistheregister
thatcontainstheactualvalueoftheTimer/EventCounterandintowhichaninitialvaluecanbe
preloaded,andisknownasTMR0,TMR1HorTMR1L.Readingfromthisregisterretrievesthe
contentsoftheTimer/EventCounter.ThesecondtypeofassociatedregisteristheTimerControl
Register,whichdefinesthetimeroptionsanddetermineshowtheTimer/EventCounteristobeused,
andhasthenameTMR0CorTMR1C.Thisdevicecanhavethetimerclocksconfiguredtocome
fromtheinternalclocksources.Inaddition,thetimerclocksourcecanalsobeconfiguredtocome
fromtheexternaltimerpins.
TheexternalclocksourceisusedwhentheTimer/EventCounterisintheeventcountingmode,the
clocksourcebeingprovidedontheexternaltimerpin.ThepinhasthenameTMR0orTMR1and
ispin-sharedwithanI/Opin.DependingupontheconditionoftheT0EorT1EbitintheTimer
ControlRegister,eachhightolow,orlowtohightransitionontheexternaltimerinputpinwill
incrementtheTimer/EventCounterbyone.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com