| Electronic Components Datasheet Search |
|
HT56R22 Datasheet(PDF) 82 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT56R22 Datasheet(HTML) 82 Page - Holtek Semiconductor Inc |
|
82 / 131 page ![]() HT56R22/HT56R23/HT56R24/HT56R25/HT56R26 Rev. 1.00 82 March 11, 2010 If configuration options have selected that only the PB4 pin is to function as a BZ buzzer pin, then the PB5 pin can be used as a normal I/O pin. For the PB4 pin to func- tion as a BZ buzzer pin, PB4 must be setup as an output by setting bit PBC4 of the PBC port control register to zero. The PB4 data bit in the PB data register must also be set high to enable the buzzer output, if set low pin PB4 will remain low. In this way the PB4 bit can be used as an on/off control for the BZ buzzer pin PB4. If the PBC4 bit of the PBC port control register is set high, then pin PB4 can still be used as an input even though the configuration option has configured it as a BZ buzzer output. Note that no matter what configuration option is chosen for the buzzer, if the port control register has setup the pin to function as an input, then this will override the con- figuration option selection and force the pin to always behave as an input pin. This arrangement enables the pin to be used as both a buzzer pin and as an input pin, so regardless of the configuration option chosen; the ac- tual function of the pin can be changed dynamically by the application program by programming the appropri- ate port control register bit. I n t e r n a l C l o c k S o u r c e P B 4 D a t a B Z O u t p u t a t P B 4 B Z O u t p u t a t P B 5 P B 5 D a t a Buzzer Output Pin Control Note: The above drawing shows the situation where both pins PB4 and PB5 are selected by configuration option to be BZ and BZ buzzer pin outputs. The Port Control Register of both pins must have already been setup as out- put. The data setup on pin PB5 has no effect on the buzzer outputs. |
|
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 |