www.mcu.com.cn 2 / 224 Rev. 1.05
CMS8S589x Reference Manual
CMS8S589x series
Reference Manual
Enhanced flash memory 8-bit 1T 8051 microcontroller
Rev. 1.05
Please be reminded about following CMS’s policies on intellectual property
Cmsemicron Limited(denoted as ‘our company’ for later use) has already applied for relative patents and entitled legal rights. Any patents
related to CMS’s MCU or other producrts is not authorized to use. Any individual, organization or company which infringes s our company’s
interlectual property rights will be forbidden and stopped by our company through any legal actions, and our company will claim the lost and
required for compensation of any damage to the company.
The name of Cmsemicron Limited and logo are both trademarks of our company.
Our company preserve the rights to further elaborate on the improvements about products’ function, reliability and design in this manual.
However, our company is not responsible for any usage about this munal. The applications and their purposes in this manual are just for
clarificationour company does not guarantee that these applications are feasible without further improvements and changesand our company
does not recommend any usage of the products in areas where people’s safety is endangered during accident. Our company’s products are not
authorzed to be used for life-saving or life support devices and systems.our company has the right to change or improve the product without
any notificationfor latest news, please visit our website: www.mcu.com.cn
www.mcu.com.cn 3 / 224 Rev. 1.05
CMS8S589x Reference Manual
Table of content
CMS8S589x series ..................................................................................................................... 2
1. Central processing unitCPU ...................................................................................... 11
1.1 Reset vector0000H ............................................................................................................................................... 11
1.2 BOOT Partition ............................................................................................................................................................. 11
1.3 AccumulatorACC .................................................................................................................................................. 13
1.4 B registerB ........................................................................................................................................................... 13
1.5 Stack pointer registerSP....................................................................................................................................... 13
1.6 Data pointer registerDPTR0/DPTR1 ................................ ................................................................ .................... 14
1.7 Data pointer selection registerDPS ...................................................................................................................... 14
1.8 Program status registerPSW ................................................................................................................................ 15
1.9 Program counterPC ............................................................................................................................................. 15
1.10 Timing access registerTA ................................................................ ................................ ..................................... 16
2. Memory and register map ................................................................................................. 17
2.1 Program memory APROM ........................................................................................................................................... 17
2.2 Non-volatile data storage Data FLASH ....................................................................................................................... 18
2.3 Program memory BOOT ............................................................................................................................................. 18
2.4 General data memory RAM ................................................................................................ ......................................... 19
2.5 General external data register XRAM .......................................................................................................................... 21
2.6 Special function register SFR ...................................................................................................................................... 22
2.7 External special function register XSFR ...................................................................................................................... 23
3. Reset ................................ ................................ ................................................................ ... 29
3.1 Power-on reset ............................................................................................................................................................ 29
3.2 External Reset ............................................................................................................................................................. 31
3.3 LVR Low voltage reset................................................................................................................................................. 32
3.4 Watchdog reset ........................................................................................................................................................... 33
3.5 Window Watchdog Reset ............................................................................................................................................ 34
3.6 Software Reset ............................................................................................................................................................ 34
3.7 CONFIG state protection reset .................................................................................................................................... 34
3.8 Power-on configuration monitoring reset ..................................................................................................................... 34
4. Clock Structure .................................................................................................................. 35
4.1 System Clock Structure ............................................................................................................................................... 35
4.2 Related Registers ........................................................................................................................................................ 36
4.2.1 Oscillator Control register CLKDIV ........................................................................................................................36
4.2.2 Function clock control register ..................................................................................................................................37
5. Power management ................................................................................................ ........... 38
5.1 Power Management register PCON ............................................................................................................................ 38
5.2 Power Monitoring register LVDCON ............................................................................................................................ 39
5.3 IDLE idle mode ............................................................................................................................................................ 40
5.4 STOP sleep mode ....................................................................................................................................................... 40
5.4.1 Wake up from Sleep Mode .......................................................................................................................................40
5.4.2 Wake-up wait state ...................................................................................................................................................41
5.4.3 Sleep wake-up time ..................................................................................................................................................41
5.4.4 Reset operation in Sleep mode ................................................................................................................................41
5.4.5 Sleep power consumption in debug mode ...............................................................................................................41