| Electronic Components Datasheet Search |
|
HT66F019 Datasheet(PDF) 138 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F019 Datasheet(HTML) 138 Page - Holtek Semiconductor Inc |
|
138 / 175 page ![]() Rev. 1.00 138 De�e��e� 01� �01� Rev. 1.00 139 De�e��e� 01� �01� HT66F019 A/D Flash MCU with EEPROM HT66F019 A/D Flash MCU with EEPROM • BRG Register Bit 7 6 5 4 3 2 1 0 Na�e BRG� BRG6 BRG5 BRG4 BRG3 BRG� BRG1 BRG0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR x x x x x x x x "x": unknown Bit7~0 BRG7~BRG0:BaudRatevalues ByprogrammingtheBRGHbitinUCR2Registerwhichallowsselectionofthe relatedformuladescribedaboveandprogrammingtherequiredvalueintheBRG register,therequiredbaudratecanbesetup. Note:Baudrate=fH/[64×(N+1)]ifBRGH=0; Baudrate=fH/[16×(N+1)]ifBRGH=1. Baud Rate Generator Tosetupthespeedoftheserialdatacommunication,theUARTfunctioncontainsitsowndedicated baudrategenerator.Thebaudrateiscontrolledbyitsowninternalfreerunning8-bittimer,the periodofwhichisdeterminedbytwofactors.Thefirstoftheseisthevalueplacedinthebaudrate registerBRGandthesecondisthevalueoftheBRGHbitwiththecontrolregisterUCR2.The BRGHbitdecidesifthebaudrategeneratoristobeusedinahighspeedmodeorlowspeedmode, whichinturndeterminestheformulathatisusedtocalculatethebaudrate.ThevalueNintheBRG registerwhichisusedinthefollowingbaudratecalculationformuladeterminesthedivisionfactor. NotethatNisthedecimalvalueplacedintheBRGregisterandhasarangeofbetween0and255. UCR2 BRGH Bit 0 1 Baud Rate (BR) fH / [64 (N+1)] fH / [16 (N+1)] ByprogrammingtheBRGHbitwhichallowsselectionoftherelatedformulaandprogrammingthe requiredvalueintheBRGregister,therequiredbaudratecanbesetup.Notethatbecausetheactual baudrateisdeterminedusingadiscretevalue,N,placedintheBRGregister,therewillbeanerror associatedbetweentheactualandrequestedvalue.ThefollowingexampleshowshowtheBRG registervalueNandtheerrorvaluecanbecalculated. Calculating the Baud Rate and Error Values Foraclockfrequencyof4MHz,andwithBRGHclearedtozerodeterminetheBRGregistervalueN, theactualbaudrateandtheerrorvalueforadesiredbaudrateof4800. FromtheabovetablethedesiredbaudrateBR=fH/[64(N+1)] Re-arrangingthisequationgivesN=[fH/(BR×64)]-1 GivingavalueforN=[4000000/(4800×64)]-1=12.0208 Toobtaintheclosestvalue,adecimalvalueof12shouldbeplacedintotheBRGregister.Thisgives anactualorcalculatedbaudratevalueofBR=4000000/[64×(12+1)]=4808 Thereforetheerrorisequalto(4808-4800)/4800=0.16% |
|
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 |
| 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 |