| Electronic Components Datasheet Search |
|
HT48CU80 Datasheet(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48CU80 Datasheet(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 54 page ![]() PBC Register PBC0 PBC Register PBC1 PB Data Register PB0 PB Data Register PB1 Output Function 000 X PB0= ²0² PB1= ²0² 001 X PB0=BZ PB1=BZ 010 X PB0= ²0² PB1=input line 011 X PB0=BZ PB1=input line 101 X PB0=input line PB1=BZ 100 X PB0=input line PB1=0 11 X X PB0=input line PB1=input line PB0/PB1 Pin Function Control Note: ²X² stand for don¢t care HT48RU80/HT48CU80 Rev. 1.00 32 April 12, 2006 then a falling edge on the RX pin will wake-up the MCU from the Power Down Mode. Note that as it takes 1024 system clock cycles after a wake-up, be- fore normal microcontroller operation resumes, any data received during this time on the RX pin will be ig- nored. For a UART wake-up interrupt to occur, in addition to the bits for the wake-up being set, the global interrupt enable bit, EMI, and the UART interrupt enable bit, EURI must also be set. If these two bits are not set then only a wake up event will occur and no interrupt will be generated. Note also that as it takes 1024 sys- tem clock cycles after a wake-up before normal microcontroller resumes, the UART interrupt will not be generated until after this time has elapsed. Buzzer The Buzzer function provides a means of producing a variable frequency output, suitable for applications such as Piezo-buzzer driving or other external circuits that re- quire a precise frequency generator. The BZ and BZ pins form a complimentary pair, and are pin-shared with I/O pins, PB0 and PB1. A configuration option is used to select from one of three buzzer options. The first option is for both pins PB0 and PB1 to be used as normal I/Os, the second option is for both pins to be configured as BZ and BZ buzzer pins, the third option selects only the PB0 pin to be used as a BZ buzzer pin with the PB1 pin retaining its normal I/O pin function. Note that the BZ pin is the inverse of the BZ pin which together generate a differential output which can supply more power to con- nected interfaces such as buzzers. The clock source of the BZ/BZ, can originate from the timer/event counter 0/1 overflow signal selected by con- figuration options. For using the BZ/BZ functions, the timer/event counter 0/1 should be set properly to gener- ate the buzzer signal. If the configuration options have selected both pins PB0 and PB1 to function as a BZ and BZ complementary pair of buzzer outputs, then for correct buzzer operation it is essential that both pins must be setup as outputs by set- ting bits PBC0 and PBC1 of the PBC port control regis- ter to zero. The PB0 data bit in the PB data register must also be set high to enable the buzzer outputs, if set low, both pins PB0 and PB1 will remain low. In this way the single bit PB0 of the PB register can be used as an on/off control for both the BZ and BZ buzzer pin outputs. Note that the PB1 data bit in the PB register has no con- trol over the BZ buzzer pin PB1. If configuration options have selected that only the PB0 pin is to function as a BZ buzzer pin, then the PB1 pin can be used as a normal I/O pin. For the PB0 pin to func- tion as a BZ buzzer pin, PB0 must be setup as an output by setting bit PBC0 of the PBC port control register to zero. The PB0 data bit in the PB data register must also be set high to enable the buzzer output, if set low pin PB0 will remain low. In this way the PB0 bit can be used as an on/off control for the BZ buzzer pin PB0. If the PBC0 bit of the PBC port control register is set high, then pin PB0 can still be used as an input even though the configuration option has configured it as a BZ buzzer output. |
|
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 |