欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT46R01 参数 Datasheet PDF下载

HT46R01图片预览
型号: HT46R01
PDF下载: 下载PDF文件 查看货源
内容描述: 10引脚MSOP A / D型8位OTP MCU [10-Pin MSOP A/D Type 8-Bit OTP MCU]
分类和应用:
文件页数/大小: 60 页 / 482 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R01的Datasheet PDF文件第12页浏览型号HT46R01的Datasheet PDF文件第13页浏览型号HT46R01的Datasheet PDF文件第14页浏览型号HT46R01的Datasheet PDF文件第15页浏览型号HT46R01的Datasheet PDF文件第17页浏览型号HT46R01的Datasheet PDF文件第18页浏览型号HT46R01的Datasheet PDF文件第19页浏览型号HT46R01的Datasheet PDF文件第20页  
HT46R01/HT46R02/HT46R03  
Mode. This is achieved by setting the appropriate bits  
in the relevant Timer/Event Counter Control Register.  
The pin must also be setup as an input by setting the  
appropriate bit in the Port Control Register. Pull-high  
resistor options can also be selected via the appropri-  
ate port pull-high resistor register. Note that even if the  
pin is setup as an external timer input the I/O function  
still remains.  
the PA0~PA6 pins from high to low. After a HALT in-  
struction forces the microcontroller into entering the  
Power Down Mode, the processor will remain 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 applications that can  
be woken up via external switches. Note that pins PA0  
to PA6 can be selected individually to have this wake-up  
feature using an internal register known as PAWK, lo-  
cated in the Data Memory.  
·
·
·
PFD Output  
Each device contains a PFD function whose single  
output is pin-shared with PA1. The PFD output func-  
tion of this pin along with the timer source is chosen  
via bits in the CTRL0 register. Note that the corre-  
sponding bit of the port control register, PAC.1, must  
setup the pin as an output to enable the PFD output. If  
the PAC 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 option, even if the PFD has  
been selected.  
I/O Port Control Registers  
Port A has its own control register, known as PAC, which  
controls the input/output configuration. With this control  
register, each PA0~PA6 I/O pin with or without pull-high  
resistors can be reconfigured dynamically under soft-  
ware control. Pins PA0 to PA6 port are 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 written as a ²1². This will then  
allow the logic state of the input 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.  
PWM Output  
All devices contain a single PWM output pin shared  
with pins PA4. The PWM output function of this pin  
along with the mode type is chosen via bits in the  
CTRL0 register. Note that the corresponding bit or bits  
of the port control register, PAC.4, must setup the pin  
as an output to enable the PWM output. If the PAC  
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 resistor option, even if the PWM has  
been selected.  
A/D Inputs  
Pin-shared Functions  
Each device has four A/D converter inputs. All of  
these analog inputs are pin-shared with PA0 to PA3. 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 selections remain, however if used  
as A/D inputs then any pull-high resistor selections as-  
sociated with these pins will be automatically discon-  
nected.  
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  
Note that for A/D inputs that are shared with interrupt  
or timer pins, care should be taken when switching the  
pins to operate as an A/D input. In such cases it is rec-  
ommended that the timer or interrupt input is first dis-  
abled as a false timer input signal or external interrupt  
signal may be generated when the A/D input is setup.  
The external interrupt pin, INT, is pin-shared with the  
I/O pin PA3. To use the pin as an external interrupt in-  
put the correct bits in the INTCO register must be pro-  
grammed. The pin must also be setup as an input by  
setting the appropriate bit in the Port Control Register.  
A pull-high resistor can also be selected via the appro-  
priate port pull-high resistor register. Note that even if  
the pin is setup as an external interrupt input the I/O  
function still remains.  
I/O Pin Structures  
The 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.  
·
External Timer/Event Counter Input  
Each device contains either one or two Timer/Event  
Counters depending upon which one is chosen. Each  
Timer/Event Counter has an external input pin, known  
as TMR0 or TMR1 which are pin-shared with I/O pins  
PA2 and PA4 respectively. For these shared pins to be  
used as a Timer/Event Counter input, the correspond-  
ing Timer/Event Counter must be configured to be in  
the Event Counter or Pulse Width Measurement  
Programming Considerations  
Within the user program, one of the first things to con-  
sider is port initialisation. After a reset, the PAdata regis-  
ter and PAC port control register will be set high. This  
Rev. 1.00  
16  
September 21, 2007  
 复制成功!