EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 4

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- iii -
power-down wake-up timer).................................................................................................................. 92
6.7.13 Wake up MCU from Power Saving Mode using comparator interrupt ( Recommended for use
with power-down wake-up timer) ......................................................................................................... 95
6.7.14 Detect the Operating Voltage (Battery Voltage) using LVD ....................................................... 97
7 Memory
........................................................................................................................................................102
7.1 Program Memory ..................................................................................................................................102
7.2 Data Memory ........................................................................................................................................102
7.2.1 Internal RAM ...............................................................................................................................103
7.2.2 PSW (program status word register) ............................................................................................103
7.2.3 On-chip extended RAM...............................................................................................................104
7.2.4 Auxiliary register (AUXR) ..........................................................................................................104
7.2.6 Bus speed control register (BUS_SPEED) ................................................................................105
7.2.7 Bit Addressable Data Memory in 8051 .......................................................................................105
7.3 Special parameters of memory ..............................................................................................................107
7.4 Unique ID number and important parameter (CHIPID) stored in read-only special function register .109
7.4.1 Interpretation of Global Unique ID Number in CHIP .................................................................109
7.4.2 Interpretation of the internal reference signal source in CHIP .................................................... 110
7.4.3 Interpretation of internal 32K IRC oscillation frequency in CHIP .............................................. 110
7.4.4 Interpretation of high precision IRC parameters in CHIP ........................................................... 110
7.4.5 Interpretation of test time parameters in CHIP ............................................................................ 111
7.4.6 Interpretation of chip package form number in CHIP ................................................................. 111
7.5 Example Routines ................................................................................................................................. 112
7.5.1 Read Internal Referrence Voltage Value (Read from CHIPID) ................................................... 112
7.5.2 Read Internal Referrence Voltage (from Flash) ........................................................................... 115
7.5.3 Read Internal Referrence Voltage (Read from RAM) ................................................................. 118
7.5.4 Read the Unique ID (Read from CHIPID) ..................................................................................121
7.5.5 Read the Unique ID (Read from Flash) .......................................................................................124
7.5.6 Read the Unique ID (Read from RAM) ......................................................................................127
7.5.7 Read the Frequency of 32K Power-down Wake-up Timer (Read from CHIPID) .......................130
7.5.8 Read the Frequency of 32K Power-down Wake-up Timer (Read from Flash) ............................134
7.5.9 Read the Frequency of 32K Power-down Wake-up Timer (Read from RAM) ...........................137
7.5.10 Read the User-defined internal IRC Frequency (Read from CHIPID) ......................................140
7.5.11 Read the User-defined internal IRC Frequency (Read from Flash) ...........................................146
7.5.12 Read the User-defined internal IRC Frequency (Read from RAM) ..........................................152
8 Special Function Registers ...........................................................................................................................154
8.1 STC8A8K64D4-64Pin/48Pin family ....................................................................................................154
8.2 List of Special Function Registers ........................................................................................................156
9 I/O Ports 164
9.1 Registers Related to I/O ........................................................................................................................164
9.1.1 Port Data Register (Px) ................................................................................................................165
9.1.2 Ports Mode Registers (PxM0, PxM1) ..........................................................................................165
9.1.3 Pull-up Resistor Control Registers (PxPU) .................................................................................166
9.1.4 Schmitt Trigger Control Registers (PxNCS) ...............................................................................166
9.1.5 Level Shifting Speed Control Registers (PxSR) ..........................................................................166

Table of Contents

Related product manuals