首页 > 器件类别 > 嵌入式处理器和控制器 > 微控制器和处理器

SM59R04A2C25Q

Microcontroller, 8-Bit, FLASH, 25MHz, PQFP44

器件类别:嵌入式处理器和控制器    微控制器和处理器   

厂商名称:SYNCMOS

厂商官网:http://www.syncmos.com.tw/index.html

下载文档
器件参数
参数名称
属性值
是否Rohs认证
不符合
Objectid
112958119
包装说明
QFP, QFP44,.52SQ,32
Reach Compliance Code
unknown
位大小
8
JESD-30 代码
S-PQFP-G44
端子数量
44
最高工作温度
85 °C
最低工作温度
-40 °C
封装主体材料
PLASTIC/EPOXY
封装代码
QFP
封装等效代码
QFP44,.52SQ,32
封装形状
SQUARE
封装形式
FLATPACK
电源
5 V
认证状态
Not Qualified
RAM(字节)
1024
ROM(单词)
16384
ROM可编程性
FLASH
速度
25 MHz
最大压摆率
12 mA
标称供电电压
5 V
表面贴装
YES
温度等级
INDUSTRIAL
端子形式
GULL WING
端子节距
0.8 mm
端子位置
QUAD
文档预览
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
Description ....................................................................................................................................................................................3
Features ........................................................................................................................................................................................3
Pin Configuration ..........................................................................................................................................................................4
Pin Description..............................................................................................................................................................................9
Special Function Register (SFR) ................................................................................................................................................ 11
Function Description ...................................................................................................................................................................15
1.
General Features ...............................................................................................................................................................15
1.1.
Embedded Flash...............................................................................................................................................15
1.2.
IO Pads .............................................................................................................................................................15
1.3.
2T/1T Selection.................................................................................................................................................15
1.4.
RESET ..............................................................................................................................................................15
1.4.1.
Hardware RESET function .......................................................................................................................15
1.4.2.
Software RESET function ........................................................................................................................16
1.4.3.
Time Access Key register (TAKEY)..........................................................................................................16
1.4.4.
Software Reset register (SWRES) ...........................................................................................................16
1.4.5.
Example of software reset........................................................................................................................16
1.5.
Clocks ...............................................................................................................................................................17
2.
Instruction Set ....................................................................................................................................................................18
3.
Memory Structure ...............................................................................................................................................................22
3.1.
Program Memory ..............................................................................................................................................22
3.2.
Data Memory ....................................................................................................................................................22
3.2.1.
Data memory - lower 128 byte (00h to 7Fh) ............................................................................................23
3.2.2.
Data memory - higher 128 byte (80h to FFh)...........................................................................................23
3.2.3.
Data memory - Expanded 1024 bytes ($0000 to $03FF).........................................................................24
4.
CPU Engine........................................................................................................................................................................25
4.1.
Accumulator ......................................................................................................................................................25
4.2.
B Register .........................................................................................................................................................25
4.3.
Program Status Word........................................................................................................................................26
4.4.
Stack Pointer.....................................................................................................................................................26
4.5.
Data Pointer ......................................................................................................................................................26
4.6.
Data Pointer 1 ...................................................................................................................................................27
4.7.
Internal RAM control register ............................................................................................................................27
4.8.
Interface control register ...................................................................................................................................27
5.
GPIO ..................................................................................................................................................................................29
6.
Multiplication Division Unit (MDU)......................................................................................................................................31
6.1.
Operating registers of the MDU ........................................................................................................................31
6.2.
Operation of the MDU .......................................................................................................................................32
6.2.1.
First phase: loading the MDx registers, x = 0~5: .....................................................................................32
6.2.2.
Second phase: executing calculation.......................................................................................................32
6.2.3.
Third phase: reading the result from the MDx registers...........................................................................33
6.3.
Normalizing .......................................................................................................................................................33
6.4.
Shifting ..............................................................................................................................................................33
7.
Timer 0 and Timer 1 ...........................................................................................................................................................34
7.1.
Timer/counter mode control register (TMOD)...................................................................................................34
7.2.
Timer/counter control register (TCON) .............................................................................................................35
8.
Timer 2 and Capture/Compare Unit ...................................................................................................................................36
8.1.
Timer 2 function ................................................................................................................................................38
8.1.1.
Timer mode ..............................................................................................................................................38
8.1.2.
Event counter mode .................................................................................................................................38
8.1.3.
Gated timer mode ....................................................................................................................................38
8.1.4.
Reload of Timer 2.....................................................................................................................................38
8.2.
Compare function..............................................................................................................................................38
8.2.1.
Compare Mode 0......................................................................................................................................38
8.2.2.
Compare Mode 1......................................................................................................................................39
8.3.
Capture function................................................................................................................................................40
8.3.1.
Capture Mode 0 .......................................................................................................................................40
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
1
Ver.G SM59R04A2 02/2012
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
8.3.2.
Capture Mode 1 .......................................................................................................................................40
9.
Serial interface 0 and 1 ......................................................................................................................................................41
9.1.
Serial interface 0 ...............................................................................................................................................42
9.1.1.
Mode 0 .....................................................................................................................................................42
9.1.2.
Mode 1 .....................................................................................................................................................43
9.1.3.
Mode 2 .....................................................................................................................................................43
9.1.4.
Mode 3 .....................................................................................................................................................44
9.2.
Serial interface 1 ...............................................................................................................................................44
9.2.1.
Mode A .....................................................................................................................................................44
9.2.2.
Mode B .....................................................................................................................................................45
9.3.
Multiprocessor communication of Serial Interface 0 and 1...............................................................................45
9.4.
Baud rate generator ..........................................................................................................................................45
9.4.1.
Serial interface 0 modes 1 and 3 .............................................................................................................45
9.4.2.
Serial interface 1 modes A and B.............................................................................................................46
9.5.
Clock source for baud rate................................................................................................................................46
10.
Watchdog timer..........................................................................................................................................................47
11.
Interrupt .....................................................................................................................................................................50
11.1.
Priority level structure .......................................................................................................................................52
12.
Power Management Unit ...........................................................................................................................................54
12.1.
Idle mode ..........................................................................................................................................................54
12.2.
Stop mode.........................................................................................................................................................54
13.
Pulse Width Modulation (PWM).................................................................................................................................55
14.
IIC function.................................................................................................................................................................58
15.
SPI function ...............................................................................................................................................................62
16.
KBI – Keyboard Interface ..........................................................................................................................................66
17.
LVI – Low Voltage Interrupt .......................................................................................................................................69
18.
10-bit Analog-to-Digital Converter (ADC) ..................................................................................................................70
19.
In-System Programming (Internal ISP) .....................................................................................................................73
19.1.
ISP service program .........................................................................................................................................73
19.2.
Lock Bit (N) .......................................................................................................................................................73
19.3.
Program the ISP Service Program ...................................................................................................................74
19.4.
Initiate ISP Service Program.............................................................................................................................74
19.5.
ISP register – TAKEY, IFCON, ISPFAH, ISPFAL, ISPFD and ISPFC ..............................................................75
Operating Conditions ..................................................................................................................................................................78
DC Characteristics ......................................................................................................................................................................78
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
2
Ver.G SM59R04A2 02/2012
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
Product List
SM59R04A2L25, SM59R04A2C25
Features
Operating Voltage: 4.5V ~ 5.5V or 2.7V ~ 3.6V
High speed architecture of 1 clock/machine cycle (1T),
runs up to 25MHz
1T/2T modes are software programmable on the fly
Instruction-set compatible with MCS-51
Internal OSC with range 1MHz – 24MHz
16K bytes on-chip flash program memory
External RAM addresses up to 64K bytes.
Standard 12T interface for external RAM access.
256 bytes RAM as standard 8052, plus 1K bytes
on-chip expandable RAM
Dual 16-bit Data Pointers (DPTR0 & DPTR1)
Two serial peripheral interfaces in full duplex mode
(UART0 & UART1),
Three 16-bit Timers/Counters. (Timer 0 , 1, 2)
36 GPIOs(PDIP 40)
40 GPIOs(PLCC 44/PQFP
44/LQFP 44),44 GPIOs(LQFP 48)
GPIOs can select four Type(quasi-bidirectional
push-pull
open drain
input-only)
default is
quasi-bidirectional(pull-up)
External interrupt 0,1 with two priority levels
Programmable watchdog timer (WDT)
One IIC interface (Master/Slave mode)
One SPI interface (Master/Slave mode)
4-channel PWM
4-channel 16-bit compare /capture /load functions
8-channel 10-bit analog-to-digital converter (ADC)
On–chip flash memories support ISP/IAP/ICP and
EEPROM functions.
ISP service program space configurable in N*256 byte
(N=0 to 16) size.
On-chip in-circuit emulator (ICE) function with
On-Chip Debugger(OCD)
EMI reduction mode (ALE output inhibited).
Fast multiplication-division unit (MDU) : 16*16, 32/16,
16/16, 32-bit L/R shifting and 32-bit normalization
Keyboard interface (KBI) on port 0 or port 2 (default)
for eight more interrupts.
LVI/LVR (LVR deglitch 500ns)
Enhanced user code protection
Power management unit for idle and power down
modes
Description
The SM59R04A2 is a 1T (one machine cycle per clock)
single-chip 8-bit microcontroller. It has 16K-byte embedded
Flash for program, and executes all ASM51 instructions fully
compatible with MCS-51.
SM59R04A2 contains 1KB on-chip RAM, more than 44
GPIOs (LQFP-48 package type), various serial interfaces
and many peripheral functions as described below. It can be
programmed via writers. Its on-chip ICE is convenient for
users in verification during development stage.
The high performance of SM59R04A2 can achieve
complicated manipulation within short time. About one third
of the instructions are pure 1T, and the average speed is 8
times of traditional 8051, the fastest one among all the 1T
51-series.Its excellent EMI and ESD characteristics are
advantageous for many different applications.
Ordering Information
SM59R04A2ihhkL yymmv
i: process identifier { L =2.7V ~ 3.6V, C = 4.5V ~ 5.5V}
hh: working clock in MHz {25}
k: package type postfix {as table below }
L:PB Free identifier
{No text is Non-PB free,”P” is PB free}
yy: year
mm: month
v: version identifier{ A, B,…}
Postfix
P
J
Q
U
V
Package
40L PDIP
44L PLCC
44L PQFP
44L LQFP
48L LQFP
Pin / Pad Configuration
Page 4
Page 5
Page 6
Page 6
Page 7
Contact SyncMOS : www.syncmos.com.tw
6F, No.10-2 Li- Hsin 1st Road , SBIP, Hsinchu, Taiwan
TEL: 886-3-567-1820
FAX: 886-3-567-1891
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
3
Ver.G SM59R04A2 02/2012
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
Pin Configuration
CC0/T2/ADC0/P1.0
CC1/T2EX/ADC1/P1.1
RXD1/ADC2/P1.2
CC2/TXD1/ADC3/P1.3
CC3/SS/ADC4/P1.4
MOSI/ADC5/P1.5
IIC_SCL/MISO/ADC6/P1.6
IIC_SDA/SPI_CLK/ADC7/P1.7
P4.7/RESET(default)
RXD0/P3.0
TXD0/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
WR/P3.6
RD/P3.7
XTAL2
XTAL1
VSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
VDD
P0.0/AD0/KBI0
P0.1/AD1/KBI1
P0.2/AD2/KBI2
P0.3/AD3/KBI3
P0.4/AD4/KBI4
P0.5/AD5/KBI5
P0.6/AD6/KBI6
P0.7/AD7/KBI7
OCI_SDA/P4.6
ALE/P4.5
OCI_SCL/P4.4
P2.7/A15/KBI7
P2.6/A14/KBI6
P2.5/A13/KBI5
P2.4/A12/KBI4
P2.3/A11/KBI3
P2.2/A10/KBI2
P2.1/A9/KBI1
P2.0/A8/KBI0
Notes:
1.
The pin Reset/P4.7 factory default is Reset, user must keep this pin at low during power-up. User can configure it to
GPIO (P4.7) by a flash programmer.
2.
To avoid accidentally entering ISP-Mode(refer to section 19.4), care must be taken not asserting pulse signal at P3.0
during power-up while P2.6、P2.7、P4.3 are set to high.
3.
To apply ICP function, OSI_SDA/P4.6 and OCI_SCL/P4.7 must be set to Bi-direction mode if they are configured as
GPIO in system.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
4
Ver.G SM59R04A2 02/2012
SyncMOS
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
P4.2/PWM2/CC2/RXD1/MISO
P1.3/ADC3/TXD1/CC2
P1.1/ADC1/T2EX/CC1
P1.4/ADC4/SS/CC3
P1.0/ADC0/T2/CC0
P1.2/ADC2/RXD1
P0.0/AD0/KBI0
P0.1/AD1/KBI1
P0.2/AD2/KBI2
6
5
4
3
2
1
44 43 42 41 40
29 30 31 32 33 34 35 36 37 38 39
MOSI/ADC5/P1.5
IIC_SCL/MISO/ADC6/P1.6
IIC_SDA/SPI_CLK/ADC7/P1.7
P4.7/RESET(default)
RXD0/P3.0
SPI_CLK/TXD1/CC3/PWM3/P4.3
TXD0/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
P0.3/AD3/KBI3
VDD
P0.4/AD4/KBI4
P0.5/AD5/KBI5
P0.6/AD6/KBI6
P0.7/AD7/KBI7
OCI_SDA/P4.6
P4.1/PWM1/CC1/IIC_SDA/MOSI
ALE/P4.5
OCI_SCL/P4.4
P2.7/A15/KBI7
P2.6/A14/KBI6
P2.5/A13/KBI5
7
17 16 15 14 13 12 11 10
SyncMOS
9
8
18 19 20 21 22 23 24 25 26 27 28
VSS
KBI0/A8/P2.0
KBI1/A9/P2.1
WR/P3.6
XTAL2
XTAL1
KBI2/A10/P2.2
KBI3/A11/P2.3
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
5
Ver.G SM59R04A2 02/2012
SS/IIC_SCL/CC0/PWM0/P4.0
KBI4/A12/P2.4
RD/P3.7
查看更多>
热门器件
热门资源推荐
器件捷径:
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW AX AY AZ B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF CG CH CI CJ CK CL CM CN CO CP CQ CR CS CT CU CV CW CX CY CZ D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF DG DH DI DJ DK DL DM DN DO DP DQ DR DS DT DU DV DW DX DZ
需要登录后才可以下载。
登录取消