English
Language : 

HT46R0664_12 Datasheet, PDF (3/94 Pages) Holtek Semiconductor Inc – Enhanced A/D+LCD Type 8-Bit OTP MCU
HT46R0664
Enhanced A/D+LCD 8-Bit OTP MCU
Oscillator ........................................................................................................ 28
Oscillator Overview................................................................................................................ 28
System Clock Configurations................................................................................................. 28
External Crystal/Resonator Oscillator – HXT......................................................................... 28
External RC Oscillator – ERC................................................................................................ 29
Internal RC Oscillator – HIRC................................................................................................ 29
External 32768Hz Crystal Oscillator – LXT............................................................................ 29
LXT Oscillator Low Power Function....................................................................................... 30
Internal Low Speed Oscillator – LIRC.................................................................................... 30
Operating Modes ........................................................................................... 31
Mode Types and Selection..................................................................................................... 31
Operating Mode Control......................................................................................................... 31
Mode Switching...................................................................................................................... 32
Standby Current Considerations............................................................................................ 32
Wake-up................................................................................................................................. 32
Watchdog Timer.............................................................................................. 34
Watchdog Timer Clock Source............................................................................................... 34
Watchdog Timer Control Register.......................................................................................... 34
Watchdog Timer Operation.................................................................................................... 35
Reset and Initialisation................................................................................... 37
Reset Functions..................................................................................................................... 37
Reset Initial Conditions.......................................................................................................... 40
Input/Output Ports.......................................................................................... 42
Pull-high Resistors................................................................................................................. 42
Port A Wake-up...................................................................................................................... 42
I/O Port Control Registers...................................................................................................... 43
Pin-shared Functions............................................................................................................. 43
Pin Remapping Configuration................................................................................................ 44
I/O Pin Structures................................................................................................................... 44
Programming Considerations................................................................................................. 45
Timer/Event Counter...................................................................................... 46
Configuring the Timer/Event Counter Input Clock Source..................................................... 46
Timer Registers – TMR0, TMR1............................................................................................ 47
Timer Control Registers – TMR0C, TMR1C........................................................................... 47
Timer Mode............................................................................................................................ 49
Event Counter Mode.............................................................................................................. 50
Pulse Width Capture Mode.................................................................................................... 50
Prescaler................................................................................................................................ 51
PFD Function......................................................................................................................... 52
I/O Interfacing......................................................................................................................... 52
Programming Considerations................................................................................................. 52
Timer Program Example........................................................................................................ 53
Rev. 1.10
3
December 14, 2012