| Electronic Components Datasheet Search |
|
HT83010 Datasheet(PDF) 19 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT83010 Datasheet(HTML) 19 Page - Holtek Semiconductor Inc |
|
19 / 40 page ![]() HT83XXX Rev. 1.60 19 November 19, 2008 Pulse Width Modulation Output - PWML/PWMH (27H/28H) The HT83XXX provide one 12-bit PWM interface for driving an external 8 W speaker. The programmer must write the voice data to register PWML/PWMH (27H/28H) Pulse Width Modulation Control Register - PWMCR (26H) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 (R/W) Bit 2 (R/W) Bit 1 Bit 0 (R/W) MSB_SIGN ¾¾¾ Single_PWM VROMC ¾ PWMC S y s t e m C l o c k P r e s c a l e r P W M D a t a B u f f e r ( 2 8 H ) 7 B i t s C o u n t e r ( B i t 6 ~ B i t 0 ) O v e r f l o w P W M 1 f o r S p e a k e r F 0 S t a r t b i t 2 6 H . 0 D i v . P W M I F 2 C K P E D C K R V D D F 1 Q Q P W M 2 f o r S p e a k e r B i t 7 ( s i g n b i t ) D a t a B u s PWM PWMC: Start bit of PWM output · PWM start counter: 0 to 1 · PWM stop counter: 1 to 0 After waiting one cycle end , stop the PWM counter and keep in low signal VROMC: Enable voice ROM power circuit (1=enable; 0=disable) Single_PWM: Driving PWM signal by PWM1 output. (1=PWM1 output; 0=PWM1/PWM2 output) The HT83XXX provide an 12-bit (bit 7 is a sign bit, if Sin- gle_PWM = 0) PWM interface. The PWM provides two pad outputs: PWM1, PWM2 which can directly drive a piezo or an 8 W speaker without adding any external ele- ment (green mode), or using only port PWM1 (Set Sin- gle_PWM = 1) to drive piezo or an 8 W speaker with external element. When Setting Single_PWM= 1, choose voice data7~ data1 as the output data (no sign bit on it). If the sign bit is 0, then the signal is output to PWM1and the PWM2 will get a GND level voltage after setting start bit to 1. If the sign bit is 1, then the signal is output to PWM2 and the PWM1 will get a GND level voltage after setting start bit to 1. PWM output Initial low level , and stop in low level If PWMC from low to high then start PWM output latch new data , if no update then keep the old value. If PWMC from high to low, in duty end, stop PWM output and stop the counter. Voice ROM Data Address Latch Counter The voice ROM data address latch counter is the hand- shaking between the microcontroller and voice ROM, where the voice codes are stored. One 8-bit of voice ROM data will be addressed by setting 18-bit address latch counter LATCH0H/LATCH0M/LATCH0L. After the 8-bit voice ROM data is addressed, a few instruction cy- cles (4 ms at least) will be generated to latch the voice ROM data, then the microcontroller can read the voice data from LATCHD (2AH). Example: Read an 8-bit voice ROM data which is lo- cated at address 000007H by address latch 0 set [26H].2 ; Enable voice ROM circuit mov A, 07H ; mov LATCH0L, A ; Set LATCH0L to 07H mov A, 00H ; mov LATCH0M, A ; Set LATCH0M to 00H mov A, 00H ; mov LATCH0H, A ; Set LATCH0H to 00H call Delay Time ; Delay a short period of time mov A, LATCHD ; Get voice data at 000007H |
|
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 |