| Electronic Components Datasheet Search |
|
HT46R92 Datasheet(PDF) 15 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R92 Datasheet(HTML) 15 Page - Holtek Semiconductor Inc |
|
15 / 61 page ![]() HT46R92 Rev. 1.10 15 November 5, 2008 ²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 pins on Port A, when configured as an input have the capability of being connected to an internal pull-high resistor. These pull-high resistors are selectable via a configuration option and are imple- mented using a weak PMOS transistor. 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 Power Down condition, the device will re- main in a low-power state until a Port A pin receives a high to low going edge. This function is especially suit- able for applications 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 As PA and PB are I/O ports, they each have a port con- trol register, known as PAC and PBC, to control the in- put/output configuration. With these control registers, each CMOS output or input on these ports with or with- out pull-high resistor structures can be reconfigured dy- namically under configuration option. 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. Pin-shared Functions The flexibility of the microcontroller range is greatly en- hanced by the use of pins that have more than one func- tion. Limited numbers of pins can force serious design constraints on designers but by supplying pins with multi-functions, many of these difficulties can be over- come. For some pins, the chosen function of the multi-function I/O pins is set by configuration options while for others the function is set by application pro- gram control. · External Interrupt Input The external dual edge triggered interrupt pin INT is pin-shared with the output pin PD0. The pin can be configured as an external interrupt pin if the corre- sponding external interrupt enable bit in the INTC0 reg- ister has been set and the PD0 output is disabled by setting the LCDEN bit in the LCDC register to zero and the PD0 bit set high. If the external interrupt enable bit is not set then the pin can be used as a PD0 CMOS output pin. · External Timer Clock Input The external timer pin TMR is pin-shared with the I/O pins PA2. To configure this pin to operate as timer in- put, the corresponding control bits in the timer control register must be correctly set. For applications that do not require an external timer input, this pin can be used as normal I/O pin. Note that if used as normal I/O pin the timer mode control bits in the timer control reg- ister must select the timer mode, which has an internal clock source, to prevent the input pin from interfering with the timer operation. · PWM Outputs The devices contain two PWM outputs PWM0 and PWM1 are pin shared with pins PA4 and PA5, respec- tively. The PWM output functions are chosen via con- figuration options and remain fixed after the device is programmed. Note that the corresponding bit or bits of the port control register, PAC, must setup the pin as an output to enable the PWM output. If the PAC port con- trol register has setup the pin as an input, then the pin will function as a normal logic input with the usual pull-high option, even if the PWM configuration option has been selected. · A/D Inputs The device has 6 A/D converter inputs. All of these an- alog inputs are pin-shared with I/O pins on Port B. If these pins are to be used as A/D inputs and not as normal I/O pins then the corresponding bits in the A/D Converter Control Register, ADCR, must be properly set. There are no configuration options associated with the A/D function. If used as I/O pins, then full pull-high resistor configuration options remain, how- ever if used as A/D inputs then any pull-high resistor options associated with these pins will be automati- cally disconnected. I/O Pin Structures The following diagrams illustrate the I/O pin internal structures. As the exact logical construction of the I/O pin may differ from these drawings, they are supplied as a guide only to assist with the functional understanding of the I/O pins. |
|
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 |