HT48R005/HT46R005
System Control Registers - CTRL0, CTRL1.........................................................19
Wake-up Function Register - PAWK ....................................................................19
Pull-high Registers - PAPU ..................................................................................19
Oscillator............................................................................................20
System Oscillator Overview..................................................................................20
System Clock Configurations................................................................................20
External Crystal/Resonator Oscillator - HXT ........................................................20
External RC Oscillator - ERC ...............................................................................20
Internal RC Oscillator - HIRC ...............................................................................21
Internal Low Speed Oscillator - LIRC ...................................................................21
Operating Modes ...............................................................................21
Mode Switching ....................................................................................................21
Standby Current Considerations...........................................................................21
Wake-up ...............................................................................................................22
Watchdog Timer ................................................................................23
Watchdog Timer Operation...................................................................................23
Reset and Initialisation .....................................................................24
Reset Functions ...................................................................................................24
Reset Initial Conditions .........................................................................................25
HT48R005............................................................................................................26
HT46R005............................................................................................................27
Input/Output Ports.............................................................................28
Pull-high Resistors................................................................................................28
Port A Wake-up ....................................................................................................28
I/O Port Control Registers.....................................................................................29
Pin-shared Functions............................................................................................29
I/O Pin Structures .................................................................................................29
Programming Considerations ...............................................................................29
Timer/Event Counters .......................................................................31
Configuring the Timer/Event Counter Input Clock Source .....................................31
Timer Registers - TMR.........................................................................................31
Timer Control Registers - TMR0C........................................................................31
Timer Mode ..........................................................................................................33
Event Counter Mode.............................................................................................33
Pulse Width Capture Mode...................................................................................33
Prescaler ..............................................................................................................34
PFD Function .......................................................................................................34
I/O Interfacing.......................................................................................................35
Programming Considerations ...............................................................................35
Timer Program Example.......................................................................................36
Rev. 1.20
iii
September 26, 2012