数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

HT56R656 数据表(PDF) 29 Page - Holtek Semiconductor Inc

部件名 HT56R656
功能描述  TinyPower A/D Type with LCD 8-Bit OTP MCU
PDF  108 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  HOLTEK [Holtek Semiconductor Inc]
网页  http://www.holtek.com
标志 HOLTEK - Holtek Semiconductor Inc

HT56R656 数据表(HTML) 29 Page - Holtek Semiconductor Inc

Back Button HT56R656 Datasheet HTML 25Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 26Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 27Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 28Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 29Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 30Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 31Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 32Page - Holtek Semiconductor Inc HT56R656 Datasheet HTML 33Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 108 page
background image
HT56R62/HT56R65
HT56R642/HT56R644/HT56R654/HT56R656
Rev. 1.00
29
July 20, 2009
I/O Port Control Registers
Each I/O port has its own control register known as PAC,
PBC and PDC, to control the input/output configuration.
With this control register, each CMOS output or input
with or without pull-high resistor structures can be re-
configured dynamically under software control. Each pin
of the I/O ports is directly mapped to a bit in its associ-
ated 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 out-
put. 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 Inputs
The external interrupt pins INT0, INT1 are pin-shared
with the I/O pins PD4, PD5. For applications not re-
quiring an external interrupt input, the pin-shared ex-
ternal interrupt pin can be used as a normal I/O pin,
however to do this, the external interrupt enable bits in
the INTC0 register must be disabled.
· External Timer Clock Input
The external timer pins TMR0, TMR1 and TMR2 are
pin-shared with I/O pins. To configure them to operate
as timer inputs, the corresponding control bits in the
timer control register must be correctly set and the pin
must also be setup as an input. Note that the original
I/O function will remain even if the pin is setup to be
used as an external timer input.
· PFD Output
The device contains a PFD function whose single out-
put is pin-shared with I/O pin PA3. The output function
of this pin is chosen via a configuration option and re-
mains fixed after the device is programmed. Note that
the corresponding bit of the port control register,
PAC.3, 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 nor-
mal logic input with the usual pull-high selection, even
if the PFD configuration option has been selected.
· PWM Outputs
The device contains several PWM outputs shared
with pins PD0~PD3. The PWM output functions are
chosen via registers. Note that the corresponding bit
of the port control register, PDC, must setup the pin as
an output to enable the PWM output. If the PDC 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 PWM registers have
enabled the PWM function.
· A/D Inputs
The device contains a multi-channel A/D converter in-
puts. All of these analog inputs are pin-shared with I/O
pins on Port B. If these pins are to be used as A/D in-
puts 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 as-
sociated with the A/D function. If used as I/O pins, then
full pull-high resistor register remain, however if used
as A/D inputs then any pull-high resistor selections as-
sociated with these pins will be automatically discon-
nected.
I/O Pin Structures
The accompanying diagrams illustrate the internal
structures of some I/O pin types. As the exact logical
construction of the I/O pin will differ from these draw-
ings, they are supplied as a guide only to assist with the
functional understanding of the I/O pins. The wide range
of pin-shared structures does not permit all types to be
shown.
P A P U , P B P U , P D P U R e g i s t e r
P A . 0 , P B . 0 , P D . 0 P u l l - h i g h
1 : e n a b l e
0 : d i s a b l e
P A . 1 , P B . 1 , P D . 1 P u l l - h i g h
1 : e n a b l e
0 : d i s a b l e
P A . 7 , P B . 7 , P D . 7 P u l l - h i g h
1 : e n a b l e
0 : d i s a b l e
b 7
P X P U 0
b 0
P X P U 1
P X P U 7
Pull-High Resistor Register
- PAPU, PBPU, PDPU



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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