Manley Labs PSD User Manual

µ
µ
PSD
PSD
It’s All You Need.
Feb 2003 www.st.com/micropsd
1
ST’s New 8051--
ST’s New 8051
!
!
W
W
E
N
N
E
Q303
Q303
µPSD
Turbo
Performance
8051 World
ST5
NOW
NOW
8051 World
µPSD
8
8
8
ST7
m
o
C
m
S
t
s
y
ST6
S
i
m
p
F
u
i
d
e
M
l
o
r
t
n
o
C
e
l
n
u
s
n
o
i
t
c
based MCU Family
based MCU Family
ST40 &
STPC
t
t
t
i
i
i
b
b
b
-
-
-
2
2
2
3
3
3
r
o
f
r
e
S
e
t
s
y
)
.
P
h
g
i
H
t
s
n
,
n
a
n
h
C
l
e
s
b
b
b
e
p
m
ST10
t
t
t
i
i
i
b
b
b
-
-
-
6
6
6
1
1
ST9
i
i
i
y
t
i
x
e
l
s
c
i
l
p
A
p
r
M
(
o
m
e
e
t
x
E
o
i
t
a
O
,
I
/
y
1
e
m
i
T
-
l
a
e s
q
m
g
n
i
s
e
m
e
r
i
u
t
a
i
n
o
i
n
u
c
R
e
v
i
s
P
C
r
R
o
o
c
m
e
e
n
n
,
s
m
m
e
c
n
a
s
www.st.com/micropsd
2
What is
What is
Standard 8032 MCU Core
(3) 16 bit timers
µ
PSD
µ
PSD
?
?
(2) Ext Interrupts
Large Dual Bank Flash
Large SRAM
Programmable Logic
USB, Dual UARTs, I2C
PWM, ADC, DDC
Many I/O
Built-in Supervisor
8032
8032
8032
8032
CORE:
CORE:
CORE:
CORE:
w/UART&
w/UART&
w/UART&
w/UART&
WDOG TMR
WDOG TMR
WDOG TMR
WDOG TMR
DECODE &
DECODE &
DECODE &
DECODE &
MEM MNGR
MEM MNGR
MEM MNG R
MEM MNG R
JTAG ISP
JTAG ISP
JTAG ISP
JTAG ISP
PROGRAMMABLE
PROGRAMMABLE
PROGRAMMABLE
PROGRAMMABLE
Vcc
Vcc
Vcc
PWR
PWR
PWR
PWR
MNG
MNG
MNG
MNG
Vcc
MON
MON
MON
MON
2K, 8K, or
2K, 8K, or
2K, 8K, or
2K, 8K, or
32K Byte SRAM
32K Byte SRAM
32K Byte SRAM
32K Byte SRAM
64K, 128K, or
64K, 128K, or
64K, 128K, or
64K, 128K, or
256K Byte
256K Byte
256K Byte
256K Byte
MAIN FLASH
MAIN FLASH
MAIN FLASH
MAIN FLASH
16K or 32K Byte
16K or 32K Byte
16K or 32K Byte
16K or 32K Byte
nd
nd
nd
nd
FLASH
FLASH
FLASH
FLASH
DDC
DDC
DDC
DDC
LOGIC
LOGIC
LOGIC
LOGIC
ADC
ADC
ADC
ADC
2
2
2
2
I2C
I2C
I2C
I2C
I/O
I/O
I/O
I/O
PWM
PWM
PWM
PWM
USB
USB
USB
USB
1.1
1.1
1.1
1.1
nd
nd
nd
nd
2
2
2
2
UART
UART
UART
UART
ISP
In-System Programming
IAP
In-Application Programming
www.st.com/micropsd
Just add power
Just add power
and crystal!
and crystal!
3
What makes
What makes
PSD Architecture … enhances capability of 8051
PSD = Programmable System Device – Dual bank Flash Memory … Superior IAP – Memory Management … Seamless paging and memory placement – Programmable Logic … Consolidate external logic chips – JTAG ISP … perfect for lab and manufacturing
Some µPSDs have Big Memory up to 288K bytes…
When is larger Flash and SRAM needed?
The use of C language
µ
PSD
µ
PSD
different?
different?
Elaborate user interfaces … menus, graphics, screens – Multiple languages and fonts, data tables – Faster data transfers – Data recording
Low Cost
Save $ compared to other 8051 and 8-bit MCU devices with
www.st.com/micropsd
larger SRAM and Flash Memories
4
Unique
Unique
Excellent Memory Management
Flexible Memory Allocation
Remote Field Updates
JTAG In System Programming
µ
PSD
µ
PSD
features
features
www.st.com/micropsd
Programmable Logic
PSD
PSD
Architecture !!!
Architecture !!!
5
Excellent Memory Management
Excellent Memory Management
Built-in Address Decoding PLD
Map any µPSD memory sector to any address – Easily convert existing 8051 designs into µPSD – Total memory mapping flexibility for new designs
8032
8032
8032
MCU
MCU
MCU
Memory Paging is Easy using Decode PLD
Break traditional 8051 64K Byte address limit imposed by only 16 address lines – 8-bit page register is built into Decode PLD … it’s like having 8 more address lines – Paging (or banking) is directly supported by most 8051 C compilers
FFFF
Page 0
Page 0
Page 1
Page 1
Page 2
Page 2
Address
Page 3
Page 3
Page
Register
DECODE
DECODE
DECODE
PLD
PLD
PLD
Sector
Selects
Sector
Selects
SRAM
SRAM
SRAM
MAIN FLASH
MAIN FLASH
MAIN FLASH
MA I N FLAS H
MA I N FLAS H
MA I N FLAS H
MAIN FLASH
MAIN FLASH
MAIN FLASH
nd
nd
nd
nd
nd
nd
FLASH
FLASH
FLASH
2
2
2
FLASH
FLASH
FLASH
2
2
2
2ndFLASH
2ndFLASH
2ndFLASH
Page 7
Page 7
1
Sector
8
8
Sectors
Sectors
4
4
Sectors
Sectors
64K
0000
www.st.com/micropsd
32K Main
32K Main
Flash
Flash
32K Main
32K Main
Flash
Flash
Map here: SRAM, 2ndFlash, I/O, etc
32K Main
32K Main
Flash
Flash
32K Main
32K Main
Flash
Flash
Common to All Pages
32K Main
32K Main
Flash
Flash
6
Flexible Memory Allocation
Flexible Memory Allocation
8051 Architecture uses a separate address space for code and for data
Allocate dual banks of Flash to meet A pplicat ion De mands
The Decode PLD controls where Flash memory resides
You decide how to split the Flash memory
Can use
EEPROM
Emulation
Big Code
(complex
algorithms)
nd
nd
nd
FLASH
2
FLASH
2
FLASH
2
DATA
DATA
DATA
MAIN FLASH
MAIN FLASH
MAIN FLASH
CODE
CODE
CODE
-OR -
Big Data
(printers, big
GUI, tables)
nd
nd
nd
FLASH
2
FLASH
2
FLASH
2
CODE
CODE
CODE
MAIN FLASH
MAIN FLASH
MAIN FLASH
DATA
DATA
DATA
-OR -
All Code
(like typical
flash 8051s)
nd
nd
nd
FLASH
2
FLASH
2
FLASH
2
CODE
CODE
CODE
MAIN FLASH
MAIN FLASH
MAIN FLASH
CODE
CODE
CODE
www.st.com/micropsd
7
Remote Field Updates with IAP
Remote Field Updates with IAP
1. Before IAP
READ &
READ &
WRITE
WRITE
8032
8032
8032
8032
MCU
MCU
MCU
MCU
READ
READ
READ ONLY
ONLY
ONLY
MCU reading program from Main Flash
Updated
Updated
Program
Program
nd
nd
nd
nd
2
2
Flash
Flash
2
2
Flash
Flash
DATA
DATA
DATA
DATA
MAIN
MAIN
MAIN
MAIN
FLASH
FLASH
FLASH
FLASH
OLD
OLD
OLD
OLD
CODE
CODE
CODE
CODE
USB, UART,
2
I
C, Modem…
8051s typically cannot write to “code” space
Special µPSD register eliminates this limitation
Typical Flash memory cannot be read and written
at the same time
Dual Banks of Flash eliminate this limitation – Read program from one bank while writing to the other bank
2. During IAP
READ &
READ &
READ &
WRITE
WRITE
WRITE
READ
READ
READ ONLY
ONLY
8032
8032
8032
8032
MCU
MCU
MCU
MCU
ONLY
READ &
READ &
READ &
WRITE
WRITE
WRITE
READ
READ
READ ONLY
ONLY
ONLY
Special Register temporarily re­classifies Main Flash as Data
MCU now reads IAP program from 2ndFlash while receiving bytes of new program from USB, UART, Modem, I2C, etc. and writes the new program to Main Flash
nd
nd
nd
nd
Flash
Flash
2
2
Flash
Flash
2
2
CODE
CODE
CODE
CODE
MAIN
MAIN
MAIN
MAIN
FLASH
FLASH
FLASH
FLASH
TREAT
TREAT
TREAT
TREAT
AS DATA
AS DATA
AS DATA
AS DATA
Special Register classifies Main Flash as Code again
MCU now reading new program from Main Fla sh
3. After IAP
READ &
READ &
WRITE
8032
8032
8032
8032
MCU
MCU
MCU
MCU
WRITE
READ
READ
READ ONLY
ONLY
ONLY
nd
nd
nd
nd
Flash
Flash
2
2
Flash
Flash
2
2
DATA
DATA
DATA
DATA
MAIN
MAIN
MAIN
MAIN
FLASH
FLASH
FLASH
FLASH
NEW
NEW
NEW
NEW
NEW
NEW
CODE
CODE
CODE
CODE
CODE
CODE
www.st.com/micropsd
8
In--
In
Program blank device, no interaction of 8032 MCU required
Entire chip programs in 10-25 seconds
JTAG serial connection is industry standard
Speedy lab development and manufacturing
System Programming (ISP)
System Programming (ISP)
µ
PSD
µ
PSD
µ
PSD
µ
PSD
g
n
E
a
h
C
n
No soc kets or
pre-programmed
parts needed
g
n
i
r
e
e
n
i
O
e
g
r
e
d
r
Last minute
www.st.com/micropsd
JIT
changes are
OK
Just-In-Time
Inventory
Management
9
Loading...
+ 21 hidden pages