Document
CMS66P01/02/47/22/23
CMS66P01/02/47/22/23
8-Bit OTP MCU
Data Sheet
http;//www.mcu.com.cn
P. 1
MAR-2008 VER1.1
CMS66P01/02/47/22/23
CMS66P01/02/47/22/23
The Specification Revision History
Doc. Version 1.0 1.1
1.2
Revision Description Initial version Modify spelling err
Date 18/11/2007
18/03/2008
http;//www.mcu.com.cn
P. 2
MAR-2008 VER1.1
CMS66P01/02/47/22/23
1. CMS66 Product Family
CMS’s CMS66 family of 8-bit OTP-based microcontrollers. It uses a fully
static CMOS design technology combines higher speeds with the low power
and high noise immunity. On chip memory system includes 1.0K bytes of
OTP ROM, and 67bytes of static RAM
2. Description
□ On chip ROM size : 1K x14bits for CMS66P01/02/47/22/23 □ Internal RAM size : 67 x 8 bits for CMS66P01/02/47/22/23 □ 46 single word instructions □ 2-level stacks □ Stop Mode Wakeup when a high to low change in any pin of P0 □ P0/P1/P2 ports Pull-up Resistor can chosed by register □ 8Bit x 3 channels (66P01) ADC
8Bit x 4 channels (66P02/47) ADC 8Bit x 8 channels (66P22/23) ADC □ 1Comparators with + input can connected to GND (66P01) 2 Comparators with + input can connected to GND(66P02/47/22/23) □ Operating voltage
LV XT MODE(455K): 2.1~3.6V XT MODE(4M): 2.5 ~ 5.5V RC MODE: 2.1 ~ 5.5 V Internal RC: 2.5~5.5V □ Operating frequency 5V : 0 ~ 10 MHz 2.1V : 0 ~ 2 MHz □ The most fast execution time is 400ns under 10 MHz in all single cycle instructions except the branch instruction □ Low Votage detector Reset (LVR) □ Stop Mode for power saving(WDT always run and the power current less than 3uA@3V) □ 8-bit real time clock/counter(RTCC) with 8-bit programmable prescaler □ 4 types of oscillator can be selected by programming OTP ROM: R C L o w cost RC oscillator INTRC Internal R and C oscillator XT Standard crystal oscillator
http;//www.mcu.com.cn
P. 3
MAR-2008 VER1.1
CMS66P01/02/47/22/23
LVXT Low voltage crystal oscillator □ 3 oscillator start-up time can be selected by programming OTP ROM(@VCC = 5V) :
560µs, 2.2ms, 9 ms □ On-chip RC oscillator based Watchdog Timer(WDT) always run □ All pins with their own independent direction control
5 I/O + 1 Input for CMS66P01 13I/O + 1 Input for CMS66P02 15 I/O + 1 Input for CMS66P47 21 I/O + 1 Input for CMS66P22 25 I/O + 1 Input for CMS66P23
3. Pin Assignment
P0.5/AN5 P0.4/AN4
P1.3 P1.2 P1.1/COMP1+ P1.0/COMP1-
P0.3/AN3 P0.2/AN2/RTCC P0.1/AN1/COMP0+ P0.0/AN0/COMP0-
GND P2.0 P2.1 P2.2
1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 10 19 11 18 12 17 13 16 14 15
CMS66P23
P0.6/AN6 P0.7/AN7 P1.4 P1.5 P1.6 P1.7 OSC OUT/P3.0 OSC IN/P3.1 VDD RES/P3.2 P2.6 P2.5 P2.4 P2.3
P0.5/AN5 P0.4/AN4
P1.3 P1.2 P1.1/COMP1+ P1.0/COMP1-
P0.3/AN3 P0.2/AN2/RTCC P0.1/AN1/COMP0+ P0.0/AN0/COMP0-
GND P2.0
1 2
3 4 5 6
7 8 9 10 11 12
24 P0.6/AN6 23 P0.7/AN7
22 P1.4 21 P1.5 20 P1.6 19 P1.7 18 OSC OUT/P3.0 17 OSC IN/P3.1 16 VDD 15 RES/P3.2 14 P2.2 13 P2.1
CMS66P22
P1.3 P1.2 P1.1/COMP1+ P1.0/COMP1P0.3/AN3 P0.2/AN2/RTCC P0.1/AN1/COMP0+ P0.0/AN0/COMP0-
GND
1 18 P1.4 2 17 P1.5 3 16 P1.6 4 15 P1.7 5 14 OSC OUT/P3.0 6 13 OSC IN/P3.1 7 12 VDD 8 11 RES/P3.2 9 10 P2.0
CMS66P47
P0.2/AN2/RTCC P0.1/AN1/COMP0+ P0.0/AN0/COMP0-
GND
1 2 3 4
8 7 6 5
CMS66P01
OSC OUT/P3.0 OSC IN/P3.1 VDD RES/P3.2
P1.2 P1.1/COMP1+ P1.0/COMP1-
P0.3/AN3 P0.2/AN2/RTCC P0.1/AN1/COMP0+ P0.0/AN0/COMP0-
GND
1 2 3
4 5 6 7
8
16 P1.3 15 P1.4 14 P1.5 13 OSC OUT/P3.0 12 OSC IN/P3.1 11 VDD 10 RES/P3.2
9 P2.0
CMS66P02
http;//www.mcu.com.cn
P. 4
MAR-2008 VER1.1
CMS66P01/02/47/22/23
The PIN Description Pin Name
P0.0/AN0/COMP0P0.1/AN1/COMP0+ P0.2/AN2/RTCC P0.3/AN3 P0.4/AN4 P0.5/AN5 P0.6/AN6 P0.7/AN7 P1.0/COMP1P1.1/COMP1+ P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 OSCOUT/P3.0 OSCIN/P3.1 RES/P3.2 VCC GND
Description
Input/Ouput/AN0/Comparator0 - Input Input/Ouput/AN1/Comparator0 + Input Input/Ouput/AN2 Input/Ouput/AN3 Input/Ouput/AN4 Input/Ouput/AN5 Input/Ouput/AN6 Input/Ouput/AN7 Input/Ouput and Comparator1 - Input Input/Ouput and Comparator1 + Input Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput Input/Ouput OSC Output or Input/Ouput OSC Input or Input/Ouput RESET or Input Power supply Ground
http;//www.mcu.com.cn
P. 5
MAR-2008 VER1.1
CMS66P01/02/47/22/23
4. Data Memory Map
Address
00h
01h 02h 03h 04h
05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh
0Eh 0Fh 10~1Fh 20~2Fh 30~3Fh 40~4Fh 50~5Fh 60~6Fh 70~7Fh
Name
IAR
TMR PCL FLAGS FSR
P0 P1 P2 P3 ADDATA ADCON ADPORT
COMPCON
------
------
------
Descirption
Uses contents of FSR to address data memory (not a physical register) Timer0 Module Register Low 8 bits of PC Flags Indirect data memory address pointer P0 data register P1 data register P2 data register P3 data register ADC data register ADC control register ADC channel register General purpose register Comparator and Pullup Resistor Control Resgister General purpose register General purpose register General purpose registers Prohibited Access General purpose registers Prohibi.