ST72F324BJ6B6 STMicroelectronics, ST72F324BJ6B6 Datasheet

MCU 8BIT 32KB FLASH/ROM 42-SDIP

ST72F324BJ6B6

Manufacturer Part Number
ST72F324BJ6B6
Description
MCU 8BIT 32KB FLASH/ROM 42-SDIP
Manufacturer
STMicroelectronics
Series
ST7r
Datasheet

Specifications of ST72F324BJ6B6

Core Processor
ST7
Core Size
8-Bit
Speed
8MHz
Connectivity
SCI, SPI
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
3.8 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
42-SDIP (0.600", 15.24mm)
Controller Family/series
ST7
No. Of I/o's
32
Ram Memory Size
1KB
Cpu Speed
8MHz
No. Of Timers
2
Embedded Interface Type
SCI, SPI
No. Of Pwm Channels
3
Processor Series
ST72F3x
Core
ST7
Data Bus Width
8 bit
Data Ram Size
1 KB
Interface Type
SCI, SPI
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
32
Number Of Timers
3
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
Development Tools By Supplier
ST7232X-EVAL, ST7MDT20-DVP3, ST7MDT20J-EMU3, STX-RLINK
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 12 Channel
For Use With
497-6421 - BOARD EVAL DGTL BATT CHGR DESIGN497-5046 - KIT TOOL FOR ST7/UPSD/STR7 MCU
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
497-5589-5
Features
Memories
Clock, reset and supply management
Interrupt management
Up to 32 I/O ports
Table 1.
March 2009
8 to 32 Kbyte dual voltage High Density Flash
(HDFlash) or ROM with readout protection
capability. In-application programming and In-
circuit programming for HDFlash devices
384 bytes to 1 Kbyte RAM
HDFlash endurance: 1 kcycle at 55 °C, data
retention 40 years at 85 °C
Enhanced low voltage supervisor (LVD) with
programmable reset thresholds and auxiliary
voltage detector (AVD) with interrupt capability
Clock sources: crystal/ceramic resonator
oscillators, int. RC osc. and ext. clock input
PLL for 2x frequency multiplication
4 power saving modes: Slow, Wait, Active-halt,
and Halt
Nested interrupt controller. 10 interrupt vectors
plus TRAP and RESET. 9/6 ext. interrupt lines
(on 4 vectors)
32/24 multifunctional bidirectional I/Os,
22/17 alternate function lines,
12/10 high sink outputs
ST72324BK2
ST72324BK4
ST72324BK6
ST72324BJ2
ST72324BJ4
ST72324BJ6
Device
Device summary
8 to 32 Kbyte Flash/ROM, 10-bit ADC, 4 timers, SPI, SCI
Flash/ROM 8 Kbytes
Flash/ROM 16 Kbytes
Flash/ROM 32 Kbytes
Flash/ROM 8 Kbytes
Flash/ROM 16 Kbytes
Flash/ROM 32 Kbytes
Memory
8-bit MCU, 3.8 to 5.5 V operating range with
1024 (256) bytes
1024 (256) bytes
384 (256) bytes
512 (256) bytes
384 (256) bytes
512 (256) bytes
RAM (stack)
Rev 7
4 timers
2 communication interfaces
1 analog peripheral (low current coupling)
Development tools
Main clock controller with real-time base, Beep
and clock-out capabilities
Configurable watchdog timer
16-bit Timer A with 1 input capture, 1 output
compare, ext. clock input, PWM and pulse
generator modes
16-bit Timer B with 2 input captures, 2 output
compares, PWM and pulse generator modes
SPI synchronous serial interface
SCI asynchronous serial interface
10-bit ADC with up to 12 input ports
In-circuit testing capability
Voltage range Temp. range
3.8 to 5.5 V
LQFP44
10 x 10
SDIP42
600 mil
-40 to 125 °C
ST72324Bxx
up to
SDIP32
LQFP32
400 mil
7 x 7
Package
LQFP32
LQFP44
SDIP32
SDIP42
10x10/
7x7/
www.st.com
1/193
1

Related parts for ST72F324BJ6B6

ST72F324BJ6B6 Summary of contents

Page 1

Kbyte Flash/ROM, 10-bit ADC, 4 timers, SPI, SCI Features Memories ■ Kbyte dual voltage High Density Flash (HDFlash) or ROM with readout protection capability. In-application programming and In- circuit programming for HDFlash devices ■ ...

Page 2

Contents Contents 1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 3

ST72324Bxx 6.3.3 6.4 Reset sequence manager (RSM 6.4.1 ...

Page 4

Contents 9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 5

ST72324Bxx 10.3.7 10.4 Serial peripheral interface (SPI ...

Page 6

Contents 12 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 ...

Page 7

ST72324Bxx 12.10 Control pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

Contents 15.1.1 15.1.2 15.1.3 15.1.4 15.1.5 15.1.6 15.1.7 15.2 8/16 Kbyte Flash devices only . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 9

ST72324Bxx List of tables Table 1. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 10

List of tables Table 49. CR1 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 11

... Table 120. Option byte 0 bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Table 121. Option byte 1 bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 Table 122. Package selection (OPT7 181 Table 123. STMicroelectronics development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Table 124. Suggested list of socket types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Table 125. Port A and F configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Table 126. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 ...

Page 12

List of figures List of figures Figure 1. Device block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 13

ST72324Bxx Figure 49. Pulse width modulation cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 14

Description 1 Description The ST72324Bxx devices are members of the ST7 microcontroller family designed for mid- range applications running from 3.8 to 5.5 V. Different package options offer I/O pins. All devices are based on a common ...

Page 15

ST72324Bxx 2 Pin description Figure 2. 44-pin LQFP package pinout Figure 3. 42-pin SDIP package pinout AIN10 / OCMP1_A / PF4 ICAP1_A / (HS) PF6 EXTCLK_A / (HS) PF7 AIN12 / OCMP2_B / PC0 AIN13 / OCMP1_B / PC1 ICAP1_B ...

Page 16

Pin description Figure 4. 32-pin LQFP package pinout Figure 5. 32-pin SDIP package pinout OCMP1_A / AIN10 / PF4 ICAP1_A / (HS) PF6 EXTCLK_A / (HS) PF7 AIN12 / OCMP2_B / PC0 AIN13 / OCMP1_B / PC1 ICAP2_B / (HS) ...

Page 17

ST72324Bxx Legend / Abbreviations for Type: Input level: In/Output level CMOS 0.3V Output level: Port and control configuration: Input: Output open drain Table 2. Device pin description Pin No. Pin Name PB4 ...

Page 18

Pin description Table 2. Device pin description (continued) Pin No. Pin Name ( DD_0 ( SS_0 PC0/OCMP2_B /AIN12 PC1/OCMP1_B /AIN13 PC2 (HS ICAP2_B PC3 ...

Page 19

ST72324Bxx Table 2. Device pin description (continued) Pin No. Pin Name ( OSC2 ( OSC1 ( DD_2 PE0/TDO PE1/RDI ...

Page 20

Register and memory map 3 Register and memory map As shown in Figure registers. The available memory locations consist of 128 bytes of register locations 1024 bytes of RAM and Kbytes of user program memory. ...

Page 21

ST72324Bxx Table 3. Hardware register map (continued) Address Block Register label 000Fh PFDR (1) 0010h Port F PFDDR 0011h PFOR 0012h to 0020h 0021h SPIDR 0022h SPI SPICR 0023h SPICSR 0024h ISPR0 0025h ISPR1 0026h ISPR2 ITC 0027h ISPR3 0028h ...

Page 22

Register and memory map Table 3. Hardware register map (continued) Address Block Register label 0041h TBCR2 0042h TBCR1 0043h TBCSR 0044h TBIC1HR 0045h TBIC1LR 0046h TBOC1HR 0047h TBOC1LR 0048h Timer B TBCHR 0049h TBCLR 004Ah TBACHR 004Bh TBACLR 004Ch TBIC2HR ...

Page 23

ST72324Bxx 4 Flash program memory 4.1 Introduction The ST7 dual voltage High Density Flash (HDFlash non-volatile memory that can be electrically erased as a single block or by individual sectors and programmed on a byte-by- byte basis using ...

Page 24

Flash program memory 4.3.1 Readout protection Readout protection, when selected, provides a protection against program memory content extraction and against write access to Flash memory. Even if no protection can be considered as totally unbreakable, the feature provides a very ...

Page 25

ST72324Bxx 4.4 ICC interface ICC needs a minimum of 4 and pins to be connected to the programming tool (see Figure 8). These pins are: – RESET: device reset – device power supply ground SS ...

Page 26

... Depending on the ICP code downloaded in RAM, Flash memory programming can be fully customized (number of bytes to program, program locations, or selection serial communication interface for downloading). When using an STMicroelectronics or third-party programming tool that supports ICP and the specific microcontroller device, the user needs only to implement the ICP hardware interface on the application board (see to the device pinout description ...

Page 27

ST72324Bxx 5 Central processing unit (CPU) 5.1 Introduction This CPU has a full 8-bit architecture and contains six internal registers allowing efficient 8- bit data manipulation. 5.2 Main features ● Enable executing 63 basic instructions ● Fast 8-bit by 8-bit ...

Page 28

Central processing unit (CPU) 5.3.1 Accumulator (A) The Accumulator is an 8-bit general purpose register used to hold operands and the results of the arithmetic and logic calculations and to manipulate data. 5.3.2 Index registers (X and Y) These 8-bit ...

Page 29

ST72324Bxx Table 6. Arithmetic management bits (continued) BIt Name Zero (Arithmetic Management bit) This bit is set and cleared by hardware. This bit indicates that the result of the last arithmetic, logical or data manipulation is zero ...

Page 30

Central processing unit (CPU) 5.3.5 Stack Pointer register (SP R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W The Stack Pointer is a 16-bit register which ...

Page 31

ST72324Bxx 6 Supply, reset and clock management 6.1 Introduction The device includes a range of utility features for securing the application in critical situations (for example in case of a power brown-out), and reducing the number of external components. An ...

Page 32

Supply, reset and clock management Figure 12. Clock, reset and supply block diagram Multi- OSC2 oscillator OSC1 (MO) Reset sequence RESET manager (RSM 6.3 Multi-oscillator (MO) The main clock of the ST7 can be generated by ...

Page 33

ST72324Bxx 6.3.2 Crystal/ceramic oscillators This family of oscillators has the advantage of producing a very accurate rate on the main clock of the ST7. The selection within a list of four oscillators with different frequency ranges has to be done ...

Page 34

Supply, reset and clock management 6.4 Reset sequence manager (RSM) The reset sequence manager includes three reset sources as shown in ● External reset source pulse ● Internal LVD reset ● Internal Watchdog reset These sources act on the RESET ...

Page 35

ST72324Bxx Figure 14. Reset block diagram RESET The RESET pin is an asynchronous signal which plays a major role in EMS performance noisy environment recommended to follow the guidelines mentioned in the electrical characteristics section. External ...

Page 36

Supply, reset and clock management Figure 15. RESET sequences IT+(LVD) V IT-(LVD) Run Active phase External RESET source RESET pin Watchdog reset 6.5 System integrity management (SI) The system integrity management block contains the LVD and auxiliary ...

Page 37

ST72324Bxx Provided the minimum V MCU can only be in two modes: – under full software control – in static safe reset In these conditions, secure operation is always ensured for the application without the need for external reset hardware. ...

Page 38

Supply, reset and clock management The interrupt on the rising edge is used to inform the application that the V is over. If the voltage rise time t selected by option byte), no AVD interrupt will be generated when V ...

Page 39

ST72324Bxx 6.6 SI registers 6.6.1 System integrity (SI) control/status register (SICSR) SICSR 7 6 Res AVDIE - R/W Table 12. SICSR register description Bit Name 7 - Reserved, must be kept cleared Voltage detector interrupt enable This bit is set ...

Page 40

Supply, reset and clock management Application notes The LVDRF flag is not cleared when another reset type occurs (external or watchdog); the LVDRF flag remains set to keep trace of the original failure. In this case, a watchdog reset can ...

Page 41

ST72324Bxx 7 Interrupts 7.1 Introduction The ST7 enhanced interrupt management provides the following features: ● Hardware interrupts ● Software interrupt (TRAP) ● Nested or concurrent interrupt management with flexible interrupt priority and level management: – software programmable ...

Page 42

Interrupts Table 14. Interrupt software priority levels Interrupt software priority Level 0 (main) Level 1 Level 2 Level 3 (= interrupt disable) Figure 18. Interrupt processing flowchart Reset RESTORE PC 7.2.1 Servicing pending interrupts As several interrupts ...

Page 43

ST72324Bxx When an interrupt request is not serviced immediately latched and then processed when its software priority combined with the hardware priority becomes the highest one. Note: 1 The hardware priority is exclusive while the software one is ...

Page 44

Interrupts peripheral control register. The general sequence for clearing an interrupt is based on an access to the status register followed by a read or write to an associated register. Note: The clearing sequence resets the internal latch. A pending ...

Page 45

ST72324Bxx Figure 21. Nested interrupt management RIM Main 7.5 Interrupt registers 7.5.1 CPU CC register interrupt bits CPU R/W R/W Table 15. CPU CC register interrupt bits description Bit Name 5 I1 ...

Page 46

Interrupts 7.5.2 Interrupt software priority registers (ISPRx) ISPRx 7 ISPR0 I1_3 ISPR1 I1_7 ISPR2 I1_11 R/W ISPR3 1 RO These four registers contain the interrupt software priority of each interrupt vector. ● Each interrupt vector (except reset and TRAP) has ...

Page 47

ST72324Bxx Table 18. Dedicated interrupt instruction set Instruction POP CC POP CC from the Stack RIM Enable interrupt (level 0 set) Load SIM Disable interrupt (level 3 set) Load TRAP ...

Page 48

Interrupts 7.6 External interrupts 7.6.1 I/O port interrupt sensitivity The external interrupt sensitivity is controlled by the IPA, IPB and ISxx bits of the EICR register (Figure 22). This control allows up to four fully independent external interrupt source sensitivities. ...

Page 49

ST72324Bxx 7.6.2 External interrupt control register (EICR) EICR 7 6 IS11 IS10 R/W R/W Table 19. EICR register description Bit Name ei2 and ei3 sensitivity The interrupt sensitivity, defined using the IS1[1:0] bits, is applied to the following external interrupts: ...

Page 50

Interrupts Table 21. Interrupt sensitivity - ei3 IS11 IS10 Table 22. Interrupt sensitivity - ei0 IS21 IS20 Table 23. Interrupt sensitivity - ei1 IS21 ...

Page 51

ST72324Bxx Table 25. Interrupt mapping Source No. Description block Reset Reset TRAP Software interrupt 0 Main clock controller time base 1 MCC/RTC interrupt 2 ei0 External interrupt port A3..0 3 ei1 External interrupt port F2..0 4 ei2 External interrupt port ...

Page 52

Power saving modes 8 Power saving modes 8.1 Introduction To give a large measure of flexibility to the application in terms of power consumption, four main power saving modes are implemented in the ST7 (see Wait), Active-halt and Halt. After ...

Page 53

ST72324Bxx Figure 24. Slow mode clock transitions 8.3 Wait mode Wait mode places the MCU in a low power consumption mode by stopping the CPU. This power saving mode is selected by calling the ‘WFI’ instruction. All peripherals remain active. ...

Page 54

Power saving modes 8.4 Active-halt and Halt modes Active-halt and Halt modes are the two lowest power consumption modes of the MCU. They are both entered by executing the ‘HALT’ instruction. The decision to enter either in Active- halt or ...

Page 55

ST72324Bxx Figure 27. Active-halt mode flowchart 1. Peripheral clocked with an external clock source can still be active. 2. Only the MCC/RTC interrupt and some specific interrupts can exit the MCU from Active-halt mode (such as external interrupt). Refer to ...

Page 56

Power saving modes Figure 28. Halt timing overview Figure 29. Halt mode flowchart 1. WDGHALT is an option bit. See 2. Peripheral clocked with an external clock source can still be active. 3. Only some specific interrupts can exit the ...

Page 57

ST72324Bxx Halt mode recommendations ● Make sure that an external event is available to wake up the microcontroller from Halt mode. ● When using an external interrupt to wake up the microcontroller, reinitialize the corresponding I/O as “Input Pull-up with ...

Page 58

I/O ports 9 I/O ports 9.1 Introduction The I/O ports offer different functional modes: ● transfer of data through digital inputs and outputs, and for specific pins: ● external interrupt generation, ● alternate signal input/output for the on-chip peripherals. An ...

Page 59

ST72324Bxx External interrupt function When an I/O is configured as ‘Input with Interrupt’, an event on this I/O can generate an external interrupt request to the CPU. Each pin can independently generate an interrupt request. The interrupt sensitivity is independently ...

Page 60

I/O ports Figure 30. I/O port general block diagram Register access DR DDR OR OR SEL DDR SEL DR SEL External interrupt source ( Table 28. I/O port mode options Configuration mode Floating with/without Interrupt Input Pull-up with/without ...

Page 61

ST72324Bxx Table 29. I/O port configurations Not implemented in true open drain I/O ports Not implemented in true open drain I/O ports Pad Not implemented in true open drain I/O ports Pad 1. When the I/O port is in input ...

Page 62

I/O ports Analog alternate function When the pin is used as an ADC input, the I/O must be configured as floating input. The analog multiplexer (controlled by the ADC registers) switches the analog voltage present on the selected pin to ...

Page 63

ST72324Bxx Table 31. I/O port interrupt control/wakeup capability Interrupt event External interrupt on selected external event 9.5.1 I/O port implementation The I/O port register configurations are summarized Table 32. Port configuration Port Pin name PA7:6 Port A PA5:4 PA3 PB3 ...

Page 64

I/O ports Table 33. I/O port register map and reset values Address (Hex.) 000Ch 000Dh 000Eh 000Fh 0010h 0011h 64/193 Register label 7 6 PEDR PEDDR MSB PEOR PFDR PFDDR MSB PFOR ST72324Bxx LSB ...

Page 65

ST72324Bxx 10 On-chip peripherals 10.1 Watchdog timer (WDG) 10.1.1 Introduction The Watchdog timer is used to detect the occurrence of a software fault, usually generated by external interference or by unforeseen logical conditions, which causes the application program to abandon ...

Page 66

On-chip peripherals Figure 32. Watchdog block diagram MCC/RTC 12-bit MCC RTC counter MSB 11 10.1.4 How to program the Watchdog timeout Figure 33 shows the linear relationship between the 6-bit value to be loaded in the Watchdog Counter (CNT) and ...

Page 67

ST72324Bxx Figure 34. Exact timeout duration (t : WHERE t = (LSB + 128 min0 t = 16384 x t max0 OSC2 t = 125 OSC2 CNT = value of T[5:0] bits in ...

Page 68

On-chip peripherals 10.1.5 Low power modes Table 34. Effect of lower power modes on Watchdog Mode Slow No effect on Watchdog Wait OIE bit in MCCSR register 0 Halt 0 1 10.1.6 Hardware Watchdog option If Hardware Watchdog is selected ...

Page 69

ST72324Bxx 10.1.9 Control register (WDGCR) WDGCR 7 6 WDGA R/W Table 35. WDGCR register description Bit Name Activation bit This bit is set by software and only cleared by hardware after a reset. When WDGA = 1, the watchdog can ...

Page 70

On-chip peripherals 10.2.2 Clock-out capability The clock-out capability is an alternate function of an I/O port pin that outputs the f to drive external devices controlled by the MCO bit in the MCCSR register. Caution: When selected, the ...

Page 71

ST72324Bxx 10.2.5 Low power modes Table 37. Effect of low power modes on MCC/RTC Mode Wait Active-halt Halt 10.2.6 Interrupts The MCC/RTC interrupt event generates an interrupt if the OIE bit of the MCCSR register is set and the interrupt ...

Page 72

On-chip peripherals Table 39. MCCSR register description (continued) Bit Name CPU Clock Prescaler These bits select the CPU clock prescaler which is applied in different slow modes. Their action is conditioned by the setting of the SMS bit. These two ...

Page 73

ST72324Bxx MCC beep control register (MCCBCR) MCCBCR 7 6 Table 41. MCCBCR register description Bit Name 7:2 - Reserved, must be kept cleared Beep Control These 2 bits select the PF1 pin beep capability (see 1:0 BC[1:0] signal is available ...

Page 74

On-chip peripherals 10.3 16-bit timer 10.3.1 Introduction The timer consists of a 16-bit free-running counter driven by a programmable prescaler. It may be used for a variety of purposes, including pulse length measurement two input signals (input ...

Page 75

ST72324Bxx 10.3.3 Functional description Counter The main block of the programmable timer is a 16-bit free running upcounter and its associated 16-bit registers. The 16-bit registers are made up of two 8-bit registers called high and low. ● Counter Register ...

Page 76

On-chip peripherals Figure 36. Timer block diagram fCPU EXEDG 1/2 1/4 1/8 EXTCLK pin CC[1:0] ICF1 OCF1 TOF ICIE OCIE TOIE (See note 1) Timer interrupt 1. If IC, OC and TO interrupt requests have separate vectors then the last ...

Page 77

ST72324Bxx 16-bit read sequence The 16-bit read sequence (from either the Counter register or the Alternate Counter register) is illustrated in the following 16-bit read sequence Figure 37. The user must first read the MSB, afterwhich the LSB value is ...

Page 78

On-chip peripherals External clock The external clock (where available) is selected if CC0 = 1 and CC1 = 1 in the CR2 register. The status of the EXEDG bit in the CR2 register determines the type of level transition on ...

Page 79

ST72324Bxx Input capture In this section, the index, i, may because there are two input capture functions in the 16-bit timer. The two 16-bit input capture registers (IC1R/IC2R) are used to latch the value of the ...

Page 80

On-chip peripherals Note: 1 After reading the ICiHR register, transfer of input capture data is inhibited and ICFi will never be set until the ICiLR register is also read. 2 The ICiR register contains the free running counter value which ...

Page 81

ST72324Bxx Output compare In this section, the index, i, may because there are two output compare functions in the 16-bit timer. This function can be used to control an output waveform or indicate when a period ...

Page 82

On-chip peripherals If the timer clock is an external clock, the formula is: Where: Δt = Output compare period (in seconds External timer clock frequency (in hertz) EXT Clearing the output compare interrupt request (that is, clearing the ...

Page 83

ST72324Bxx Figure 43. Output compare block diagram 16-bit free running counter 16-bit Output compare 16-bit 16-bit OC1R register OC2R register Figure 44. Output compare timing diagram, f Output Compare register i (OCRi) Figure 45. Output compare timing diagram, f Output ...

Page 84

On-chip peripherals One Pulse mode One Pulse mode enables the generation of a pulse when an external event occurs. This mode is selected via the OPM bit in the CR2 register. The one pulse mode uses the Input Capture1 function ...

Page 85

ST72324Bxx The OC1R register value required for a specific timing application can be calculated using the following formula: Where Pulse period (in seconds CPU clock frequnency (in hertz) CPU PRESC = Timer prescaler factor (2, 4 ...

Page 86

On-chip peripherals Figure 48. Pulse width modulation mode timing example with two output compare functions Counter 34E2 OCMP1 1. OC1R = 2ED0h, OC2R = 34E2, OLVL1 = 0, OLVL2 = timers with only one Output Compare register, ...

Page 87

ST72324Bxx Figure 49. Pulse width modulation cycle If OLVL1 = 1 and OLVL2 = 0, the length of the positive pulse is the difference between the OC2R and OC1R registers. If OLVL1 = OLVL2, a continuous signal will be seen ...

Page 88

On-chip peripherals 10.3.4 Low power modes Table 46. Effect of low power modes on 16-bit timer Mode No effect on 16-bit timer. Wait Timer interrupts cause the device to exit from Wait mode. 16-bit timer registers are frozen. In Halt ...

Page 89

ST72324Bxx 10.3.6 Summary of timer modes Table 48. Summary of timer modes Mode Input Capture (1 and/or 2) Output Compare (1 and/or 2) One Pulse mode PWM mode 1. See note 4 in One Pulse mode on page 2. See ...

Page 90

On-chip peripherals Table 49. CR1 register description (continued) Bit Name Forced Output compare 2 This bit is set and cleared by software. 4 FOLV2 0: No effect on the OCMP2 pin. 1: Forces the OLVL2 bit to be copied to ...

Page 91

ST72324Bxx Table 50. CR2 register description (continued) Bit Name One Pulse mode 0: One Pulse mode is not active. 5 OPM 1: One Pulse mode is active, the ICAP1 pin can be used to trigger one pulse on the OCMP1 ...

Page 92

On-chip peripherals Table 51. CSR register description (continued) Bit Name Output compare flag match (reset value). 6 OCF1 1: The content of the free running counter has matched the content of the OC1R register. To clear this ...

Page 93

ST72324Bxx Input capture 1 low register (IC1LR) This is an 8-bit register that contains the low part of the counter value (transferred by the input capture 1 event). IC1LR 7 6 MSB RO RO Output compare 1 high register (OC1HR) ...

Page 94

On-chip peripherals Output compare 2 low register (OC2LR) This is an 8-bit register that contains the low part of the value to be compared to the CLR register. OC2LR 7 6 MSB R/W R/W Counter high register (CHR) This is ...

Page 95

ST72324Bxx Alternate counter low register (ACLR) This is an 8-bit register that contains the low part of the counter value. A write to this register resets the counter. An access to this register after an access to CSR register does ...

Page 96

On-chip peripherals Table 52. 16-bit timer register map and reset values (continued) Address Register (Hex.) label Timer A: 36 OC1HR Timer B: 46 Reset value Timer A: 37 OC1LR Timer B: 47 Reset value Timer A: 3E OC2HR Timer B: ...

Page 97

ST72324Bxx 10.4.3 General description Figure 50 shows the serial peripheral interface (SPI) block diagram. The SPI has three registers: – SPI Control Register (SPICR) – SPI Control/Status Register (SPICSR) – SPI Data Register (SPIDR) The SPI is connected to external ...

Page 98

On-chip peripherals The communication is always initiated by the master. When the master device transmits data to a slave device via MOSI pin, the slave device responds by sending data to the master device via the MISO pin. This implies ...

Page 99

ST72324Bxx Figure 52. Generic SS timing diagram MOSI/MISO Master SS Slave SS (if CPHA=0) Slave SS (if CPHA=1) Figure 53. Hardware/software slave select management Master mode operation In master mode, the serial clock is output on the SCK pin. The ...

Page 100

On-chip peripherals Master mode transmit sequence When software writes to the SPIDR register, the data byte is loaded into the 8-bit shift register and then shifted out serially to the MOSI pin most significant bit first. When data transfer is ...

Page 101

ST72324Bxx The SPIF bit can be cleared during a second transmission; however, it must be cleared before the second SPIF bit in order to prevent an Overrun condition (see (OVR) on page 102). 10.4.4 Clock phase and clock polarity Four ...

Page 102

On-chip peripherals 10.4.5 Error flags Master mode fault (MODF) Master mode fault occurs when the master device has its SS pin pulled low. When a Master mode fault occurs: – The MODF bit is set and an SPI interrupt request ...

Page 103

ST72324Bxx Figure 55. Clearing the WCOL bit (Write collision flag) software sequence Clearing sequence after SPIF = 1 (end of a data byte transfer) 1st Step Read SPICSR 2nd Step Clearing sequence before SPIF = 1 (during a data byte ...

Page 104

On-chip peripherals 10.4.6 Low power modes Table 53. Effect of low power modes on SPI Mode No effect on SPI. Wait SPI interrupt events cause the device to exit from Wait mode. SPI registers are frozen. In Halt mode, the ...

Page 105

ST72324Bxx Table 55. SPICR register description Bit Name Serial Peripheral Interrupt Enable 7 SPIE Serial Peripheral Output Enable 6 SPE Divider Enable 5 SPR2 Master mode 4 MSTR Clock Polarity 3 CPOL Clock Phase 2 CPHA Serial clock frequency 1:0 ...

Page 106

On-chip peripherals Table 56. SPI master mode SCK frequency (continued) Serial clock f SPI control/status register (SPICSR) SPICSR 7 6 SPIF WCOL RO RO Table 57. SPICSR register description Bit Name Serial peripheral data transfer flag This bit is set ...

Page 107

ST72324Bxx Table 57. SPICSR register description (continued) Bit Name SPI output disable This bit is set and cleared by software. When set, it disables the alternate function of 2 SOD the SPI output (MOSI in master mode / MISO in ...

Page 108

On-chip peripherals Table 58. SPI register map and reset values Address (Hex.) Register label SPIDR 0021h Reset value SPICR 0022h Reset value SPICSR 0023h Reset value 10.5 Serial communications interface (SCI) 10.5.1 Introduction The serial communications interface (SCI) offers a ...

Page 109

ST72324Bxx ● Parity control – Transmits parity bit – Checks parity of received data byte ● Reduced power consumption mode 10.5.3 General description The interface is externally connected to another device by two pins (see ● TDO: Transmit Data Output. ...

Page 110

On-chip peripherals Figure 57. SCI block diagram Write Transmit Data Register (TDR) TDO Transmit Shift Register RDI Transmit control CR2 TIE TCIE RIE SCI Interrupt control Transmitter clock f CPU 110/193 Read Received Data Register (RDR) Received Shift Register R8 ...

Page 111

ST72324Bxx 10.5.4 Functional description The block diagram of the serial control interface is shown in dedicated registers: ● 2 control registers (SCICR1 and SCICR2) ● a status register (SCISR) ● a baud rate register (SCIBRR) ● an extended prescaler receiver ...

Page 112

On-chip peripherals Transmitter The transmitter can send data words of either bits depending on the M bit status. When the M bit is set, word length is 9 bits and the 9th bit (the MSB) has to ...

Page 113

ST72324Bxx Break characters Setting the SBK bit loads the shift register with a break character. The break frame length depends on the M bit (see As long as the SBK bit is set, the SCI send break frames to the ...

Page 114

On-chip peripherals Overrun error An overrun error occurs when a character is received when RDRF has not been reset. Data can not be transferred from the shift register to the RDR register as long as the RDRF bit is not ...

Page 115

ST72324Bxx Figure 59. SCI baud rate and extended prescaler block diagram f CPU /16 /PR Framing error A framing error is detected when: ● The stop bit is not recognized on reception at the expected time, following either a de- ...

Page 116

On-chip peripherals Conventional baud rate generation The baud rate for the receiver and transmitter (Rx and Tx) are set independently and calculated as follows: with (see SCP[1:0] bits ...

Page 117

ST72324Bxx Receiver muting and wakeup feature In multiprocessor configurations it is often desirable that only the intended message recipient should actively receive the full message contents, thus reducing redundant SCI service overhead for all non-addressed receivers. The non-addressed devices may ...

Page 118

On-chip peripherals Even parity The parity bit is calculated to obtain an even number of ‘1’s inside the frame made of the LSB bits (depending on whether M is equal and the parity ...

Page 119

ST72324Bxx Clock deviation causes The causes which contribute to the total deviation are: – Deviation due to transmitter error (local oscillator error of the transmitter or TRA the transmitter is transmitting at a different baud rate). – D ...

Page 120

On-chip peripherals 10.5.5 Low power modes Table 60. Effect of low power modes on SCI Mode No effect on SCI. Wait SCI interrupts cause the device to exit from Wait mode. SCI registers are frozen. Halt In Halt mode, the ...

Page 121

ST72324Bxx Table 62. SCISR register description (continued) Bit Name Transmission complete This bit is set by hardware when transmission of a frame containing data is complete. An interrupt is generated if TCIE = 1 in the SCICR2 register ...

Page 122

On-chip peripherals Table 62. SCISR register description (continued) Bit Name Parity error This bit is set by hardware when a parity error occurs in receiver mode cleared by a software sequence (a read to the status register followed ...

Page 123

ST72324Bxx Table 63. SCICR1 register description (continued) Bit Name Parity selection This bit selects the odd or even parity when the parity generation/detection is enabled (PCE bit set set and cleared by software. The parity will be selected ...

Page 124

On-chip peripherals Table 64. SCICR2 register description (continued) Bit Name Transmitter enable This bit enables the transmitter set and cleared by software. 0: Transmitter is disabled 1: Transmitter is enabled Notes During transmission, a ‘0’ ...

Page 125

ST72324Bxx SCI baud rate register (SCIBRR) SCIBRR 7 6 SCP[1:0] R/W Table 65. SCIBRR register description Bit Name First SCI prescaler 7:6 SCP[1:0] SCI Transmitter rate divisor 5:3 SCT[2:0] SCI Receiver rate divisor 2:0 SCR[2:0] SCI extended receive prescaler division ...

Page 126

On-chip peripherals Table 66. SCIERPR register description Bit Name 7:0 ERPR[7:0] SCI extended transmit prescaler division register (SCIETPR) This register is used to set the External Prescaler rate division factor for the transmit circuit. SCIETPR 7 6 Table 67. SCIETPR ...

Page 127

ST72324Bxx Table 69. SCI register map and reset values Address (Hex.) Register label SCISR 0050h Reset value SCIDR 0051h Reset value SCIBRR 0052h Reset value SCICR1 0053h Reset value SCICR2 0054h Reset value SCIERPR 0055h Reset value SCIPETPR 0057h Reset ...

Page 128

On-chip peripherals 10.6 10-bit A/D converter (ADC) 10.6.1 Introduction The on-chip analog-to-digital converter (ADC) peripheral is a 10-bit, successive approximation converter with internal sample and hold circuitry. This peripheral has multiplexed analog input channels (refer to device ...

Page 129

ST72324Bxx 10.6.3 Functional description The conversion is monotonic, meaning that the result never decreases if the analog input does not increase. If the input voltage (V conversion result is FFh in the ADCDRH register and 03h in the ADCDRL register ...

Page 130

On-chip peripherals Changing the conversion channel The application can change channels during conversion. When software modifies the CH[3:0] bits in the ADCCSR register, the current conversion is stopped, the EOC bit is cleared, and the A/D converter starts converting the ...

Page 131

ST72324Bxx Table 71. ADCCSR register description (continued) Bit Name 4 - Reserved, must be kept cleared. Channel selection These bits are set and cleared by software. They select the analog input to convert. 0000: Channel pin = AIN0 0001: Channel ...

Page 132

On-chip peripherals ADC data register low (ADCDRL) ADCDRL 7 6 Table 73. ADCDRL register description Bit Name 7:2 - Reserved. Forced by hardware to 0. 1:0 D[1:0] LSB of converted analog value Table 74. ADC register map and reset values ...

Page 133

ST72324Bxx 11 Instruction set 11.1 CPU addressing modes The CPU features 17 different addressing modes which can be classified in 7 main groups (see Table 75). : Table 75. Addressing mode groups Addressing mode Inherent Immediate Direct Indexed Indirect Relative ...

Page 134

Instruction set Table 76. CPU addressing mode overview (continued) Relative Direct Relative Indirect Bit Direct Bit Indirect Bit Direct Relative Bit Indirect Relative 11.1.1 Inherent All Inherent instructions consist of a single byte. The opcode fully specifies all the required ...

Page 135

ST72324Bxx . Table 78. Immediate instructions Instruction LD CP BCP AND, OR, XOR ADC, ADD, SUB, SBC 11.1.3 Direct In Direct instructions, the operands are referenced by their memory address. The direct addressing mode consists of two submodes: Direct (short) ...

Page 136

Instruction set Indirect (short) The pointer address is a byte, the pointer size is a byte, thus allowing addressing space, and requires 1 byte after the opcode. Indirect (long) The pointer address is a byte, the pointer ...

Page 137

ST72324Bxx 11.1.7 Relative mode (direct, indirect) This addressing mode is used to modify the PC register value, by adding an 8-bit signed offset to it. . Table 80. Relative direct and indirect instructions and functions Available relative direct/indirect instructions JRxx ...

Page 138

Instruction set Using a prebyte The instructions are described with one to four opcodes. In order to extend the number of available opcodes for an 8-bit CPU (256 opcodes), three different prebyte opcodes are defined. These prebytes modify the meaning ...

Page 139

ST72324Bxx Table 82. Instruction set overview Mnemo Description ADC Add with Carry ADD Addition AND Logical And BCP Bit compare A, memory BRES Bit reset BSET Bit set BTJF Jump if bit is false (0) BTJT Jump if bit is ...

Page 140

Instruction set Table 82. Instruction set overview (continued) Mnemo Description JRUGT Jump JRULE Jump Load MUL Multiply NEG Negate (2's compl) NOP No Operation OR OR operation ...

Page 141

ST72324Bxx 12 Electrical characteristics 12.1 Parameter conditions Unless otherwise specified, all voltages are referred to V 12.1.1 Minimum and maximum values Unless otherwise specified the minimum and maximum values are guaranteed in the worst conditions of ambient temperature, supply voltage ...

Page 142

Electrical characteristics 12.1.5 Pin input voltage The input voltage measurement on a pin of the device is described in Figure 63. Pin input voltage 12.2 Absolute maximum ratings Stresses above those listed as “absolute maximum ratings” may cause permanent damage ...

Page 143

ST72324Bxx 12.2.2 Current characteristics Table 84. Current characteristics Symbol I Total current into V VDD I Total current out of V VSS Output current sunk by any standard I/O and control pin I Output current sunk by any high sink ...

Page 144

Electrical characteristics 12.3 Operating conditions Table 86. Operating conditions Symbol f Internal clock frequency CPU Operating voltage (except Flash Write/Erase Operating Voltage for Flash Write/Erase T Ambient temperature range A Figure 64. f CPU Functionality not guaranteed Note: ...

Page 145

ST72324Bxx 12.4 LVD/AVD characteristics 12.4.1 Operating conditions with LVD Subject to general operating conditions for T Table 87. Operating conditions with LVD Symbol Parameter V Reset release threshold (V IT+(LVD) V Reset generation threshold (V IT-(LVD) V LVD voltage threshold ...

Page 146

Electrical characteristics 12.5 Supply current characteristics The following current consumption specified for the ST7 functional operating modes over temperature range does not take into account the clock source current consumption. To obtain the total device consumption, the two current values ...

Page 147

ST72324Bxx 12.5.2 Flash current consumption Table 90. Flash current consumption Symbol Parameter Supply current in Run mode Supply current in Slow (2) mode Supply current in Wait mode I DD Supply current in Slow Wait (2) mode Supply current in ...

Page 148

Electrical characteristics 12.5.3 Supply and clock managers The previous current consumption specified for the ST7 functional operating modes over temperature range does not take into account the clock source current consumption. To obtain the total device consumption, the two current ...

Page 149

ST72324Bxx 12.6 Clock and timing characteristics Subject to general operating conditions for V 12.6.1 General timings Table 93. General timings Symbol t Instruction cycle time c(INST) t Interrupt reaction time t v(IT) 1. Data based on typical application software. 2. ...

Page 150

Electrical characteristics 12.6.3 Crystal and ceramic resonator oscillators The ST7 internal clock can be supplied with four different crystal/ceramic resonator oscillators. All the information given in this paragraph are based on characterization results with specified typical external components. In the ...

Page 151

ST72324Bxx Figure 66. Typical application with a crystal or ceramic resonator (8/16 Kbyte Flash and ROM devices) When resonator with integrated capacitors 32 Kbyte Flash and ROM devices Table 96. Crystal and ceramic resonator oscillators (32 Kbyte Flash and ROM ...

Page 152

Electrical characteristics Figure 67. Typical application with a crystal or ceramic resonator (32 Kbyte Flash and ROM devices) When resonator with integrated capacitors C L2 Table 97. OSCRANGE selection for typical resonators f OSC Supplier (MHz) Murata 16 1. Resonator ...

Page 153

ST72324Bxx Note: To reduce disturbance to the RC oscillator recommended to place decoupling capacitors between V 12.6.5 PLL characteristics Table 99. PLL characteristics Symbol f PLL input frequency range OSC Δ Instantaneous PLL jitter CPU CPU ...

Page 154

Electrical characteristics 12.7.2 Flash memory Table 101. Dual voltage HDFlash memory Symbol f Operating frequency CPU V Programming voltage PP I Supply current current Internal V VPP t Data retention RET N Write erase ...

Page 155

ST72324Bxx 12.8 EMC characteristics Susceptibility tests are performed on a sample basis during product characterization. 12.8.1 Functional electromagnetic susceptibility (EMS) Based on a simple running application on the product (toggling two LEDs through I/O ports), the product is stressed by ...

Page 156

Electrical characteristics Table 102. EMS test results Symbol Parameter Voltage limits to be applied on any I/O pin to V FESD induce a functional disturbance Fast transient voltage burst limits applied through 100 FFTB ...

Page 157

ST72324Bxx 12.8.3 Absolute maximum ratings (electrical sensitivity) Based on two different tests (ESD and LU) using specific measurement methods, the product is stressed in order to determine its performance in terms of electrical sensitivity. For more details, refer to the ...

Page 158

Electrical characteristics 12.9 I/O port pin characteristics 12.9.1 General characteristics Subject to general operating conditions for V Table 106. General characteristics Symbol Parameter Input low level voltage V IL (standard voltage devices) V Input high level voltage IH V Schmitt ...

Page 159

ST72324Bxx Figure 70. Unused I/O pins configured as input 1. I/O can be left unconnected configured as output ( the software. This has the advantage of greater EMC robustness and lower cost. Figure 71. ...

Page 160

Electrical characteristics Figure 72. Typical V Figure 73. Typical V Figure 74. Typical V 160/193 (standard ports 1.4 1.2 1 0.8 0.6 Ta =140°C " 0.4 Ta =95°C Ta =25°C 0.2 Ta =-45 ...

Page 161

ST72324Bxx Figure 75. Typical V 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0 2.5 Figure 76. Typical 2.5 Figure 77. Typical ...

Page 162

Electrical characteristics 12.10 Control pin characteristics 12.10.1 Asynchronous RESET pin Subject to general operating conditions for V Table 108. Asynchronous RESET pin Symbol Parameter V Input low level voltage IL V Input high level voltage IH V Schmitt trigger voltage ...

Page 163

ST72324Bxx RESET pin protection when LVD is enabled When the LVD is enabled recommended to protect the RESET pin as shown in Figure 78 and follow these guidelines: 1. The reset network protects the device against parasitic resets. ...

Page 164

Electrical characteristics RESET pin protection when LVD is disabled When the LVD is disabled recommended to protect the RESET pin as shown in Figure 79 and follow these guidelines: 1. The reset network protects the device against parasitic ...

Page 165

ST72324Bxx 12.10.2 ICCSEL/V pin PP Subject to general operating conditions for V Table 109. ICCSEL/V Symbol V Input low level voltage IL V Input high level voltage IH I Input leakage current lkg 1. Data based on design simulation and/or ...

Page 166

Electrical characteristics 12.12 Communication interface characteristics 12.12.1 Serial peripheral interface (SPI) The following characteristics are ubject to general operating conditions for V unless otherwise specified. The data is based on design simulation and/or characterization results, not tested in production. When ...

Page 167

ST72324Bxx Figure 81. SPI slave timing diagram with CPHA = 0 SS INPUT CPHA=0 CPOL=0 CPHA=0 CPOL=1 MISO See note 2 OUTPUT MOSI INPUT 1. Measurement points are done at CMOS levels: 0.3xV 2. When no communication is on-going the ...

Page 168

Electrical characteristics Figure 83. SPI master timing diagram SS INPUT CPHA = 0 CPOL = 0 CPHA = 0 CPOL = 1 CPHA = 1 CPOL = 0 CPHA = 1 CPOL = 1 t su(MI) MISO INPUT See note ...

Page 169

ST72324Bxx Table 112. 10-bit ADC characteristics (continued) Symbol Parameter Conversion time (Sample + Hold MHz, Speed = 0, CPU MHz t ADC ADC No. of sample capacitor loading cycles No. of Hold conversion cycles ...

Page 170

Electrical characteristics 12.13.1 Analog power supply and reference pins Depending on the MCU pin count, the package may feature separate V analog power supply pins. These pins supply power to the A/D converter cell and function as the high and ...

Page 171

ST72324Bxx 12.13.3 ADC accuracy Table 113. ADC accuracy Symbol Parameter ( Total unadjusted error T ( Offset error O ( Gain error Differential linearity error D ( Integral linearity ...

Page 172

Package characteristics 13 Package characteristics 13.1 ECOPACK In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK® packages, depending on their level of environmental compliance. ECOPACK® specifications, grade definitions and product status are available at: ...

Page 173

ST72324Bxx Table 114. 44-pin low profile quad flat package mechanical data (continued) Dim θ Values in inches are converted from mm and rounded to 4 decimal digits. 13.2.2 SDIP42 package mechanical data Figure 90. ...

Page 174

Package characteristics Table 115. 42-pin dual in line package mechanical data Dim Values in inches are converted from mm and rounded to 4 decimal digits. 13.2.3 LQFP32 package mechanical data Figure ...

Page 175

ST72324Bxx Table 116. 32-pin low profile quad flat package mechanical data (continued) Dim θ Values in inches are converted from mm and rounded to 4 decimal digits. 13.2.4 SDIP32 package mechanical data Figure ...

Page 176

Package characteristics Table 117. 32-pin dual in-line package mechanical data (continued) Dim Values in inches are converted from mm and rounded to 4 decimal digits. 176/193 mm Min Typ Max 9.91 ...

Page 177

ST72324Bxx 13.3 Thermal characteristics Table 118. Thermal characteristics Symbol Package thermal resistance (junction to ambient): R thJA P Power dissipation D T Maximum junction temperature Jmax 1. The maximum power dissipation is obtained from the formula application ...

Page 178

Device configuration and ordering information 14 Device configuration and ordering information Each device is available for production in user programmable versions (Flash) as well as in factory coded versions (ROM/FASTROM). ST72324Bxx devices are ROM versions. ST72P324B devices are Factory Advanced ...

Page 179

ST72324Bxx 14.1 Flash devices 14.1.1 Flash configuration Table 119. Flash option bytes Static option byte WDG Res HALT SW 1 Default Depends on device type as defined in The option ...

Page 180

Device configuration and ordering information Table 120. Option byte 0 bit description (continued) Bit Name OPT0 FMP_R Table 121. Option byte 1 bit description Bit Name OPT7 PKG1 OPT6 RSTC OPT5:4 OSCTYPE[1:0] OPT3:1 OSCRANGE[2:0] 180/193 Function Flash memory readout protection ...

Page 181

... Refer to application note AN1635 for information on the counter listing returned by ST after code has been transferred. Figure 93: ST72324Bxx ordering information scheme on page 178 ordering. The STMicroelectronics sales organization will be pleased to provide detailed information on contractual points. Caution: The readout protection binary value is inverted between ROM and Flash products. The option byte checksum differs between ROM and Flash ...

Page 182

... Reference/ROM Code *The ROM code name is assigned by STMicroelectronics. ROM code must be sent in .S19 format. .Hex extension cannot be processed. Device type/memory size/package (check only one option): ...

Page 183

... The Cosmic C Compiler is available in a free version that outputs Kbytes of code. The range of hardware tools includes cost effective ST7-DVP3 series emulators. These tools are supported by the ST7 Toolset from STMicroelectronics, which includes the STVD7 integrated development environment (IDE) with high-level language debugger, editor, project manager and integrated programming interface. ...

Page 184

... Device configuration and ordering information Table 123. STMicroelectronics development tools Supported ST7 DVP3 series products Emulator ST72324BJ, ST72F324BJ ST7MDT20- DVP3 ST72324BK, ST72F324BK 1. Add suffix /EU, /UK, /US for the power supply of your region. 14.3.5 Socket and emulator adapter information For information on the type of socket that is supplied with the emulator, refer to the ...

Page 185

ST72324Bxx 15 Known limitations 15.1 All Flash and ROM devices 15.1.1 Safe connection of OSC1/OSC2 pins The OSC1 and/or OSC2 pins must not be left unconnected, otherwise the ST7 main oscillator may start and, in this configuration, could generate an ...

Page 186

Known limitations Case 1: Writing to PxOR or PxDDR with global interrupts enabled: LD A,#01 LD sema,A; set the semaphore to '1' LD A,PFDR AND A,#02 LD X,A; store the level before writing to PxOR/PxDDR LD A,#$90 LD PFDDR,A ; ...

Page 187

ST72324Bxx RIM ; reset the interrupt mask LD A,sema ; check the semaphore status CP A,#$01 jrne OUT call call_routine ; call the interrupt routine RIM OUT:RIM JP while_loop .call_routine ; entry to call_routine PUSH A PUSH X PUSH CC ...

Page 188

Known limitations Nested interrupt context The symptom does not occur when the interrupts are handled normally, that is, when: ● The interrupt flag is cleared within its own interrupt routine ● The interrupt flag is cleared within any interrupt routine ...

Page 189

ST72324Bxx In the same way, as long as the SBK bit is set, break characters are sent to the TDO pin. This may lead to generate one break more than expected. Occurrence The occurrence of the problem is random and ...

Page 190

Known limitations Table 125. Port A and F configuration PLL PA3 Off consequence, for cycle-accurate operations, these configurations are prohibited in either input or output mode. Workaround To avoid this from occurring recommended ...

Page 191

ST72324Bxx 16 Revision history Table 126. Document revision history Date Revision 05-May-2004 30-Mar-2005 12-Sep-2005 06-Feb-2006 Merged ST72F324 Flash with ST72324B ROM datasheet. Vt POR max modified in Section 12.4 on page 145 Added Figure 79 on page 164 2.0 Modified ...

Page 192

Revision history Table 126. Document revision history (continued) Date Revision 10-Oct-2007 17-Mar-2009 192/193 Removed references to automotive versions (these are covered by separate ST72324B-Auto datasheet). Changed Flash endurance to 1 Kcycles at 55°C Replaced TQFP with LQFP in package outline ...

Page 193

... ST72324Bxx Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. ...

Related keywords