DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

HT46R005 Просмотр технического описания (PDF) - Holtek Semiconductor

Номер в каталоге
Компоненты Описание
производитель
HT46R005
Holtek
Holtek Semiconductor Holtek
HT46R005 Datasheet PDF : 62 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
HT48R005/HT46R005
low. During program initialisation, it is important to first
setup the control registers to specify which pins are out-
puts and which are inputs before reading data from or
writing data to the I/O ports. One flexible feature of these
registers is the ability to directly program single bits us-
ing the ²SET [m].i² and ²CLR [m].i² instructions. The
ability to change I/O pins from output to input and vice
versa by manipulating specific bits of the I/O control reg-
isters during normal program operation is a useful fea-
ture of these devices.
System Control Registers - CTRL0, CTRL1
These registers are used to provide control over various
internal functions. Some of these include the Buzzer
control, external Interrupt edge trigger type and Watch-
dog Timer enable function.
Wake-up Function Register - PAWK
When the microcontroller enters the Sleep Mode, vari-
ous methods exist to wake the device up and continue
with normal operation. One method is to allow a falling
edge on the I/O pins to have a wake-up function. This
register is used to select which Port A I/O pins are used
to have this wake-up function.
Pull-high Registers - PAPU
The I/O pins, if configured as inputs, can have internal
pull-high resistors connected, which eliminates the need
for external pull-high resistors. This register selects which
I/O pins are connected to internal pull-high resistors.
· CTRL0 Register
Bit
7
6
5
4
3
2
1
0
Name
¾
¾
¾
¾
BZEN1 BZEN0
¾
¾
R/W
¾
¾
¾
¾
R/W
R/W
¾
¾
POR
¾
¾
¾
¾
0
0
¾
¾
Bit 7~4
Bit 3~2
Bit 1~04
unimplemented, read as ²0²
BZEN1, BZEN0: BZ/BZ enable/disable
00: both disabled
01: Reserved
10: BZ only enabled
11: BZ and BZ enabled
When BZ or BZ is disabled, the I/O port will have general I/O functions. If enabled, the BZ or
BZ outputs will still be controlled by the related I/O port control and data settings. Refer to the
Buzzer Function section for details.
unimplemented, read as ²0²
· CTRL1 Register
Bit
7
6
5
Name INTEG1 INTEG0
¾
R/W
R/W
R/W
¾
POR
1
0
¾
4
3
2
1
0
¾
WDTEN3 WDTEN2 WDTEN1 WDTEN0
¾
R/W
R/W
R/W
R/W
¾
1
0
1
0
Bit 7, 6
Bit 5, 4
Bit 3~0
Note:
INTEG1, INTEG0: External interrupt edge type
00: disable
01: rising edge trigger
10: falling edge trigger
11: dual edge trigger
unimplemented, read as ²0²
WDTEN3, WDTEN2, WDTEN1, WDTEN0: WDT function enable
1010: WDT disabled
Other values: WDT enabled - Recommended value is 0101
If the ²watchdog timer enable² configuration option is selected, then the watchdog timer will
always be enabled and the WDTEN3~WDTEN0 control bits will have no effect.
The WDT is only disabled when both the WDT configuration option is disabled and when bits
WDTEN3~WDTEN0=1010.
The WDT is enabled when either the WDT configuration option is enabled or when bits
WDTEN3~WDTEN0¹1010.
Rev. 1.20
19
September 26, 2012

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]