| Electronic Components Datasheet Search |
|
HT83F02 Datasheet(PDF) 19 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT83F02 Datasheet(HTML) 19 Page - Holtek Semiconductor Inc |
|
19 / 64 page ![]() HT83F02 Rev. 1.20 19 November 19, 2010 Voice Control and Audio output Registers - DAL, DAH, VOL The devices include a single 12-bit current type DAC function for driving an external 8 W speaker through an external NPN transistor or Power Amplifier. The pro- grammer must writer the voice data to these DAL/DAH registers. The programmer can control the DAC volume with 8-levels via the VOL register. Pulse Width Modulator Registers - PWMC, PWML, PWMH Each device contains a single 12-bit PWM function for driving an external 8 W speaker. The programmer must writer the voice data to PWML/PWMH register. The pro- grammer can control the PWM volume with 9-levels via the VOL register. Serial Interface Module(SIM) Registers - SIMC0A/B, SIMC1A/B, SIMC2A/B, SIMARA/B, SIMDRA/B Each SIM contains SPI and I 2C function for communicat- ing with other microcontroller or SPI Flash Memory. All devices contain an integrated I 2C and SPI bus which in- terfaces to the external shared pins SDA, SCL and SCSB, SCK, SDI, SDO with PB on the microcontroller. The I 2C correct setup and data transfer operation of this 2-line bidirectional bus utilizes 4 special function regis- ters. The SIMARA/B register sets the slave address of the device while the SIMC0A/B is the control register that enables or disables the device as well as select whether it is in I 2C or SPI mode. The SIMC1A/B register is the I 2C status register while the SIMDRA/B register is the input/output data register. The SPI correct setup and data transfer operation of this 3-line bidirectional bus uti- lizes 3 special function registers. The SIMC0A/B is the control register that enables or disables the device as well as select whether it is in I 2C or SPI mode. The SIMC2A/B register is the SPI status register while the SIMDRA/B register is the input/output data register. Input/Output Ports Holtek microcontrollers offer considerable flexibility on their I/O ports. With the input or output designation of ev- ery pin fully under user program control, pull-high op- tions for all ports and wake-up options on certain pins, the user is provided with an I/O structure to meet the needs of a wide range of application possibilities. Depending upon which device or package is chosen, the microcontroller range provides from 19 bidirectional input/output lines labeled with port names PA, PB, PC etc. These I/O ports are mapped to the Data Memory with specific addresses as shown in the Special Pur- pose Data Memory table. All of these I/O ports can be used for input and output operations. For input opera- tion, these ports are non-latching, which means the in- puts must be ready at the T2 rising edge of instruction ²MOV A,[m]², where m denotes the port address. For output operation, all the data is latched and remains un- changed until the output latch is rewritten. Pull-high Resistors Many product applications require pull-high resistors for their switch inputs usually requiring the use of an exter- nal resistor. To eliminate the need for these external re- sistors, all I/O pins, when configured as an input have the capability of being connected to an internal pull-high resistor. These pull-high resistors are selectable via configuration or software options and are implemented using a weak PMOS transistor. Note that if the pull-high option is selected, then all I/O pins on that port will be connected to pull-high resistors, individual pins can be selected for pull-high resistor options. Port A Wake-up Each device has a HALT instruction enabling the microcontroller to enter a Power Down Mode and pre- serve power, a feature that is important for battery and other low-power applications. Various methods exist to wake-up the microcontroller, one of which is to change the logic condition on one of the Port A pins from high to low. After a ²HALT² instruction forces the microcontroller into entering a HALT condition, the processor will re- main idle or in a low-power state until the logic condition of the selected wake-up pin on Port A changes from high to low. This function is especially suitable for applica- tions that can be woken up via external switches. Note that each pin on Port A can be selected individually to have this wake-up feature. I/O Port Control Registers Each I/O port has its own control register PAC, PBC and PCC, to control the input/output configuration. With this control register, each CMOS output or input with or with- out pull-high resistor structures can be reconfigured dy- namically under software control. Each pin of the I/O ports is directly mapped to a bit in its associated port control register. For the I/O pin to function as an input, the corresponding bit of the control register must be writ- ten as a ²1². This will then allow the logic state of the in- put pin to be directly read by instructions. When the corresponding bit of the control register is written as a ²0², the I/O pin will be setup as a CMOS output. If the pin is currently setup as an output, instructions can still be used to read the output register. However, it should be noted that the program will in fact only read the status of the output data latch and not the actual logic status of the output pin. |
|
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 |