Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT48R0662G View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT48R0662G
Holtek
Holtek Semiconductor Holtek
'HT48R0662G' PDF : 126 Pages View PDF
HT48R064G/065G/066G/0662G
Enhanced I/O Type 8-Bit OTP MCU with OPA
Pin-shared Functions
The flexibility of the microcontroller range is greatly enhanced by the use of pins that have more than
one function. Limited numbers of pins can force serious design constraints on designers but by
supplying pins with multi-functions, many of these difficulties can be overcome. 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 program control.
External Interrupt Input
The external interrupt pin, INT, is pin-shared with an I/O pin. To use the pin as an external interrupt
input the correct bits in the INTC register must be programmed. The pin must also be setup as an input
by setting the PAC3 bit in the Port Control Register. An internal pull-high resistor can be selected to be
connected to this pin by the corresponding pull-high function enable control bit. Note that even if the
pin is setup as an external interrupt input the I/O function still remains.
External Timer/Event Counter Input
The Timer/Event Counter pin TCn is pin-shared with I/O pins. For the shared pin to be used as the
Timer/Event Counter input, the Timer/Event Counter n must be configured to be in the Event Counter
or Pulse Width Capture Mode. This is achieved by setting the appropriate bits in the Timer/Event
Counter Control Register. The pins must also be setup as inputs by setting the appropriate bit in the
Port Control Register. Pull-high resistor function for the TCn pin can also be selected using the port
pull-high resistor register. Note that even if the pin is setup as an external timer input the I/O function
still remains.
PFD Output
The PFD function output is pin-shared with an I/O pin. The output function of this pin is chosen using
the CTRL0 register. Note that the corresponding bit of the port control register, must setup the pin
as an output to enable the PFD output. If the port control register has setup the pin as an input, then the
pin will function as a normal logic input with the usual pull-high selection, even if the PFD function
has been selected.
PWM Outputs
The PWM function whose outputs are pin-shared with I/O pins. The PWM output functions are chosen
using the CTRL0 register. Note that the corresponding bit of the port control registers, for the output
pin, must setup the pin as an output to enable the PWM output. If the pins are setup as inputs, then the
pin will function as a normal logic input with the usual pull-high selections, even if the PWM registers
have enabled the PWM function.
SCOM Driver Pins
Pins PB0~PB3 on Port B for the HT48R065G, HT48R066G and HT48R0662G devices can be used as
LCD COM driver pins. This function is controlled using the register which will generate the necessary
1/2 bias signals on these four pins.
Pin Remapping Configuration - HT48R0662G
The pin remapping function for the HT48R0662G device enables the function pins INT, TC0, TC1 and
PFD to be located on different port pins. It is important not to confuse the Pin Remapping function with
the Pin-shared function; these two functions have no interdependence.
The PCFG1 and PCFG0 bits in the CTRL2 register allow the four function pins INT, TC0, TC1 and
PFD to be remapped to different port pins. After power up, this bit will be reset to zero, which will
define the default port pins to which these functions will be mapped. Changing these bits will move the
functions to other port pins.
Rev. 1.10
54
October 23, 2012
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]