Flash MCU. BS66F340 Datasheet

BS66F340 MCU. Datasheet pdf. Equivalent

BS66F340 Datasheet
Recommendation BS66F340 Datasheet
Part BS66F340
Description Enhanced Touch A/D Flash MCU
Feature BS66F340; Enhanced Touch A/D Flash MCU with LED Driver BS66F340/BS66F350 BS66F360/BS66F370 Revision: V1.40 Dat.
Manufacture Holtek Semiconductor
Datasheet
Download BS66F340 Datasheet




Holtek Semiconductor BS66F340
Enhanced Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350
BS66F360/BS66F370
Revision: V1.40 Date: �D�e�c�e�mb��e�r�1��5,���2�0�1�6



Holtek Semiconductor BS66F340
BS66F340/BS66F350/BS66F360/BS66F370
Enhanced Touch A/D Flash MCU with LED Driver
Table of Contents
Features................................................................................................................. 7
CPU Features...............................................................................................................................7
Peripheral Features.......................................................................................................................7
General Description.............................................................................................. 8
Selection Table...................................................................................................... 9
Block Diagram....................................................................................................... 9
Pin Assignment................................................................................................... 10
Pin Descriptions................................................................................................. 15
Absolute Maximum Ratings............................................................................... 30
D.C. Characteristics............................................................................................ 30
A.C. Characteristics............................................................................................ 32
A/D Converter Characteristics........................................................................... 33
Temperature Sensor Electrical Characteristics............................................... 33
LVD/LVR Electrical Characteristics................................................................... 34
Touch Key Electrical Characteristics................................................................ 35
Power-on Reset Characteristics........................................................................ 37
System Architecture........................................................................................... 38
Clocking and Pipelining...............................................................................................................38
Program Counter.........................................................................................................................39
Stack...........................................................................................................................................40
Arithmetic and Logic Unit – ALU.................................................................................................40
Flash Program Memory...................................................................................... 41
Structure......................................................................................................................................41
Special Vectors...........................................................................................................................41
Look-up Table..............................................................................................................................42
Table Program Example..............................................................................................................42
In Circuit Programming – ICP.....................................................................................................43
On-Chip Debug Support – OCDS...............................................................................................44
In Application Programming – IAP..............................................................................................45
Data Memory....................................................................................................... 55
Structure......................................................................................................................................55
Data Memory Addressing............................................................................................................56
General Purpose Data Memory..................................................................................................56
Special Purpose Data Memory...................................................................................................56
Special Function Register Description............................................................. 61
Indirect Addressing Registers – IAR0, IAR1, IAR2.....................................................................61
Memory Pointers – MP0, MP1H/MP1L, MP2H/MP2L.................................................................61
Rev. 1.40
2 December 15, 2016



Holtek Semiconductor BS66F340
BS66F340/BS66F350/BS66F360/BS66F370
Enhanced Touch A/D Flash MCU with LED Driver
Program Memory Bank Pointer – PBP........................................................................................63
Accumulator – ACC.....................................................................................................................63
Program Counter Low Register – PCL........................................................................................63
Look-up Table Registers – TBLP, TBHP, TBLH...........................................................................64
Status Register – STATUS..........................................................................................................64
EEPROM Data Memory....................................................................................... 66
EEPROM Data Memory Structure..............................................................................................66
EEPROM Registers....................................................................................................................66
Reading Data from the EEPROM...............................................................................................67
Writing Data to the EEPROM......................................................................................................68
Write Protection...........................................................................................................................68
EEPROM Interrupt......................................................................................................................68
Programming Considerations......................................................................................................68
Oscillators........................................................................................................... 70
Oscillator Overview.....................................................................................................................70
System Clock Configurations......................................................................................................70
External Crystal/Ceramic Oscillator – HXT.................................................................................71
Internal High Speed RC Oscillator – HIRC.................................................................................72
External 32.768 kHz Crystal Oscillator – LXT.............................................................................72
Internal 32kHz Oscillator – LIRC.................................................................................................73
Operating Modes and System Clocks.............................................................. 74
System Clocks............................................................................................................................74
System Operation Modes............................................................................................................76
Control Registers........................................................................................................................77
Operating Mode Switching..........................................................................................................80
Standby Current Considerations.................................................................................................84
Wake-up......................................................................................................................................84
Watchdog Timer.................................................................................................. 85
Watchdog Timer Clock Source....................................................................................................85
Watchdog Timer Control Register...............................................................................................85
Watchdog Timer Operation.........................................................................................................86
Reset and Initialisation....................................................................................... 87
Reset Functions..........................................................................................................................87
Reset Initial Conditions...............................................................................................................90
Input/Output Ports.............................................................................................. 97
Pull-high Resistors....................................................................................................................100
Port A Wake-up.........................................................................................................................100
I/O Port Control Registers.........................................................................................................100
I/O Port Source Current Control................................................................................................100
Pin-shared Functions................................................................................................................102
I/O Pin Structures...................................................................................................................... 111
Programming Considerations.................................................................................................... 112
Rev. 1.40
3 December 15, 2016







@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site (Privacy Policy & Contact)