ST AN1724 Application note

AN1724
APPLICATION NOTE
Conversion Guide, uPSD3200 to uPSD3300 Series
Overview
The uPSD family currently consists of two series, uPSD3200 and uPSD3300. Both are available in the same kind of packages, but there are a few differences in pin definitions. This document describes the differences and suggests methods to easily migrate designs from the uPSD3200 series to uPSD3300. You can implement simple techniques on your printed circuit board to accept either a uPSD3200 or a uPSD3300 during manufacturing.
Pin differences will be presented two categories:
1. Mandatory pin function changes for all applications
2. Conditional pin function changes depending on the application.
There are also differences in SFRs and interrupt vectors, which may impact firmware depending on the application. These differences are identified to help you migrate your firmware.
For simplicity, the uPSD3200 series will be referred in this document as 3200, and the Turbo uPSD3300 series will be referred to as 3300.
Rev 1
June 2005 1/24
www.st.com
24
AN1724
Contents
1 Summary of Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Summary of new uPSD3300 functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Pin Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Mandatory PIN Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1 52-pin Devices (see Figure 1 and 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 80-pin Devices (see Figure 3 and 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.3 PC Layout Suggestions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Conditional PIN Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1 PWM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1.1 52-pin Devices (see Figure 1 and 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1.2 80-pin Devices (See Figure 3 and 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1.3 PC Layout Suggestion for PWM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.2 ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.1 Reassigned ADC Channel Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.2 ADC Voltage Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.3 ADC Reference Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3 LVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6 Special Function Register (SFR) Differences . . . . . . . . . . . . . . . . . . . . . . 18
7 Interrupt Vector Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
8 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9 Contact Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
10 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2/24

AN1724 1 Summary of Differences

1 Summary of Differences
MCU CORE VOLTAGE: The 3300 MCU core requires a 3.3V supply, even when used in a
5V system. This means two separate supplies (5V V system, but just one supply (3.3V V devices use only a single V
supply, which is 5V VCC for 5V devices, or 3.3V VCC for 3.3V
CC
) is required for a 3.3V system. In contrast, 3200
CC
devices.
MCU CORE: The 3200 MCU requires 12 clocks per instruction but the 3300 uses just 4
clocks. The 3300 does not have an optional 12-clock operation mode. NO modifications are needed to 3200 firmware for standard 8032 functions unless timing was established with software loops. Modifications ARE required for firmware controlling some peripherals when migrating to 3300.
PWM: The five 8-bit PWM channels of the 3200 are implemented with the Programmable
Counter Array (PCA) in the 3300, which has six 16-bit timer/counter modules. There are new SFRs, and some PWM pin number assignments have changed on the 3300.
ADC: The four 8-bit ADC channels of the 3200 are implemented using four of the eight 10-
bit ADC channels on the 3300. There are new SFRs, but there are no ADC input pin number changes. The ADC reference voltage (V
3300 devices and V devices do have an ADC V voltage on any 3300 ADC input is V
LV D: Both 5V and 3.3V 3300 devices have Low-Voltage Detect (LVD) trip point set for the
3.3V V
WATCHDOG: The watchdog timer is enabled after reset on 3200 devices, but it is disabled
supply level (2.5V). This must be considered when designing 5V system.
CC
is shared internally with the 3.3V VCC core supply. 80-pin 3300
REF
pin, and its max input voltage is V
REF
(3.3V) even in a 5V system
CC
after reset on 3300 devices.
I/O Characteristics: The 3.3V 3300 devices have 5V tolerant I/O on ports 1, 3, and 4, but
ports A,B,C, and D are not 5V tolerant. The 3.3V 3200 devices do not have any 5V tolerant I/O.
UART and I
USB and DDC: No USB or DDC interfaces are on the 3300.
2
C: Minor changes to SFR definitions.
and 3.3V VCC) are required in a 5V
DD
) input pin is not available on 52-pin
REF
(3.3V). The max input
CC
.
3/24

2 Summary of new uPSD3300 functions AN1724

2 Summary of new uPSD3300 functions
Listed below are new functions on the 3300 that were not available on the 3200. Obviously there is no direct migration path for these new functions since the 3200 does not have them. However, you should be aware of the new functions so you can plan to take advantage of them.
SPI: An SPI bus master interface is provided on the 3300.
ADC: Eight 10-bit ADC inputs are provided, compared to only four 8-bit ADC inputs on the
3200.
IrDA: The 2
transceiver.
PCA: The Programmable Counter Array unit has six 16-bit timer/counter (TC) modules
that can be used for PWM, Capture/Compare, Timers, or Counters. Three of the six TC modules can operate from one time base, and the other three TC modules can operate from another time base if desired. These six TC modules are in addition to the standard three 16-bit timer units inside the 8032 MCU core, bringing a total of nine 16-bit timer/ counters. The 3200 provides only the three standard 16-bit 8032 timers.
MCU Core: The 3300 Turbo MCU core has a six-deep instruction prefetch queue and a
four-way branching address cache to increase performance. Code in smaller localities operate very fast. No special firmware is required to take advantage of the prefetch queue or branching cache, other than writing to an SFR to enable these features. Be aware that firmware timing loops will not be accurate because of the non-deterministic nature of pipeline and cache architecture. Please use one of the many hardware timer modules to create timing functions, not firmware loops.
MCU Core: The 3300 Turbo MCU core includes dual data pointers to speed data transfers
of XDATA. The pointers can auto-increment and auto-decrement, providing rapid data movement from source to destination locations. The 3200 has one only data pointer.
JTAG Debug: The JTAG port now functions as a debug port in addition to In-System
Programming (ISP). This eliminates the need for conventional hardware In-Circuit Emulation (ICE) tools.
Debug: The 3300 has a dedicated debug input/output pin. As an output, it can signal that
a specified debug event has occurred, as an input it can trigger a debug event to begin (breakpoint, trace, and so forth).
MCU Clock: 3.3V 3300 devices can be clocked up to 40MHz, unlike 3.3V 3200 with
24MHz max.
MCU Clock: 8032 MCU clock can be divided internally for lower power operation. The
MCU may change the clock divider ratio on-the-fly using SFRs. This affects the MCU only, not peripheral clocks.
Cross-Bar I/O: Peripheral functions on Port 1 are also available on Port 4 (cross-bar
switch), providing more flexibility. There is no need to sacrifice one peripheral function when two functions are available on a single pin, just use the other port.
High Current I/O: Eight I/O pins on Port 4 are each capable of sinking or sourcing 10mA,
for both 3.3V and 5.0V 3300. In contrast, 3.3V 3200 pins are capable of sinking 4mA each, 5V 3200 sink 8mA each.
5V Tolerant I/O: The following pins are 5V tolerant on 3.3V, 52-pin 3300 devices: P1.1
through P1.7, P3.1 through P3.7, P4.1 through P4.7, and RESET_IN_. On 3.3V, 80-pin 3300 devices, the following pins are also 5V tolerant: MCU_AD0 through MCU_AD7,
nd
UART channel supports IrDA protocol, which be connected directly to an IR
4/24
AN1724 2 Summary of new uPSD3300 functions
MCU_A8 through MCU_A11, RD_, WR_, and _PSEN. In contrast, 3.3V 3200 devices had no 5V tolerant I/O pins.
Note: Note: The PSD functions have NOT changed at all from 3200 to 3300. These functions include
PLD, memory mapping, memory management (code space vs. data space, and paging), Flash memories, SRAM memory, PSD I/O. All changes in the 3300 are related to the MCU and not the PSD.
5/24
3 Pin Definitions AN1724

3 Pin Definitions

Figure 1, Figure 2., Figure 3., and Figure 4. show pin assignments of the 3200 and 3300
devices in both 52-pin and 80-pin TQFP packages. Please see the 3200 and 3300 data sheets for detailed pin function descriptions and physical dimensions of packages. Pins requiring mandatory changes during migration are darkened in the figures.

Figure 1. uPSD3200 52-pin TQFP Pin Definition

REF
GND
RESET_
PB6
PB7
P1.7/ADC3
PB0
PB1
PB2
PB3
PB4
PB5
V
52515049484746454443424140
P1.6/ADC2
PD1/CLKIN
PC7
JTAG TDO
JTAG TDI
USB–
PC4/TERR_
USB+
V
GND
PC3/TSTAT
PC2/V
STBY
JTAG TCK
JTAG TMS
1
2
3
4
5
6
7
8
CC
9
10
11
12
13
14151617181920212223242526
P4.7 / PWM4
52-pin TQFP
P4.6 / PWM3
P4.5 / PWM2
P4.4 / PWM1
uPSD32XX
GND
SYNC
P4.3 / PWM0
P4.2/DDC V
P3.1 / TXD
P3.0 / RXD
P4.1/DDC SCL
P4.0/DDC SDA
P3.2 / EXINT0
39 P1.5 / ADC1
38 P1.4 / ADC0
37 P1.3 / TXD1
36 P1.2 / RXD1
35 P1.1 / T2X
34 P1.0 / T2
33 V
32 XTAL2
31 XTAL1
30 P3.7 / SCL1
29 P3.6 / SDA1
28 P3.5 / T1
27 P3.4 / T0
P3.3 / EXINT1
CC
AI08812
6/24
AN1724 3 Pin Definitions

Figure 2. uPSD3300 52-pin TQFP Pin Definition

/ADC7
(3)
REF
/V
CC
PB5
GND
RESET_IN_
PB0
PB1
PB2
PB3
PB4
3.3V V
52515049484746454443424140
PB6
/ADC6
(2)
(2)
PB7
P1.7/SPISEL_
P1.6/SPITXD
(1)
(2)
2
CSCL
2
CSDA
(2)
/ADC1
/ADC0
AI08813
(2)
(2)
/ADC5
/ADC4
(2)
(2)
/ADC3
/ADC2
DEBUG
3.3V V
V
PC7
DD
GND
STBY
1
2
3
4
5
6
CC
7
(1)
8
9
10
11
12
13
PD1/CLKIN
JTAG TDO
JTAG TDI
PC4/TERR_
PC3/TSTAT
PC2/V
JTAG TCK
JTAG TMS
Note: 1 For 5V applications, V
39 P1.5/SPIRXD
38 P1.4/SPICLK
37 P1.3/TXD1(IrDA)
36 P1.2/RXD1(IrDA)
35 P1.1/T2X
uPSD33XX
52-pin TQFP
14151617181920212223242526
GND
TXD0/P3.1
/TCM4/P4.5
/TCM5/P4.6
/TCM3/P4.4
(2)
(2)
(2)
/PCACLK1/P4.7
(2)
SPICLK
SPITXD
SPIRXD
SPISEL_
must be connected to 5.0V source. For 3.3V applications, VDD must
DD
/TCM2/P4.2
(2)
/PCACLK0/P4.3
(2)
RXD1(IrDA)
TXD1(IrDA)
RXD0/P3.0
/TCM1/P4.1
/TCM0/P4.0
(2)
(2)
T2
T2X
EXTINT0/TG0/P3.2
34 P1.0/T2
33 V
DD
32 XTAL2
31 XTAL1
30 P3.7/I
29 P3.6/I
28 P3.5/C1
27 P3.4/C0
EXTINT1/TG1/P3.3
be connected to 3.3V source.
2 These signals can be used on one of two different ports (Port 1 or Port 4) for flexibility. Default is
Por t 1.
3V
and 3.3V VCC are shared. ADC channels must use 3.3V as V
REF
for 52-pin package.
REF
7/24
3 Pin Definitions AN1724

Figure 3. uPSD3200 80-pin TQFP Pin Definition

REF
GND
RESET_
PB6
PB7
RD_
P1.7 / ADC3
PSEN_
WR_
P1.6 / ADC2
61
60 P1.5 / ADC1
59 P1.4 / ADC0
58 P1.3 / TXD1
57 P2.3, A11
56 P1.2 / RXD1
55 P2.2, A10
54 P1.1 / T2X
53 P2.1, A9
52 P1.0 / T2
51 P2.0, A8
50 V
CC
49 XTAL2
48 XTAL1
47 P0.7, AD7
46 P3.7 / SCL1
45 P0.6, AD6
44 P3.6 / SDA1
43 P0.5, AD5
42 P3.5 / T1
41 P0.4, AD4
PD2
P3.3 /EXINT1
PD1
ALE
PC7
JTAG TDO
JTAG TDI
USB–
PC4/TERR_
USB+
NC
V
GND
PC3/TSTAT
PC2/V
STBY
JTAG TCK
NC
P4.7 / PWM4
P4.6 / PWM3
JTAG TMS
PB0
P3.2 / EXINT0
PB1
P3.1 / TXD
PB2
P3.0 / RXD
PB3
PB4
PB5NCV
80797877767574737271706968676665646362
1
2
3
4
5
6
7
8
9
10
11
12
CC
13
14
15
16
17
18
19
20
uPSD32XX
80-pin TQFP
21222324252627282930313233343536373839
PA7
PA6
PA5
PA4
P4.5 / PWM2
P4.4 / PWM1
PA3
GND
P4.3 / PWM0
P4.2
P4.1
PA2
P4.0
PA1
PA0
AD0, P0.0
AD1, P0.1
AD2, P0.2
40
P3.4 / T0
AD3, P0.3
AI08814
8/24
Loading...
+ 16 hidden pages