ST52F513G3M6 STMicroelectronics, ST52F513G3M6 Datasheet - Page 34

ST52F513G3M6

Manufacturer Part Number
ST52F513G3M6
Description
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST52F513G3M6

Cpu Family
ST52
Device Core Size
8b
Frequency (max)
20MHz
Interface Type
I2C/SCI/SPI
Program Memory Type
Flash
Program Memory Size
8KB
Total Internal Ram Size
256Byte
# I/os (max)
22
Number Of Timers - General Purpose
2
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
8-chx10-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
28
Package Type
SO
Lead Free Status / Rohs Status
Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST52F513G3M6
Manufacturer:
ST
0
Part Number:
ST52F513G3M6
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST52F513G3M6TR
Manufacturer:
ST
Quantity:
20 000
ST52510xx ST52513xx
4.2 Memory Programming
The Programming procedure writes the user
program and data into the Flash Memory,
EEPROM and Option Bytes. The programming
procedures are entered by setting the V
equal to V
following pins are used in Programming mode:
During the device programming, the internal clock
is used, so the OSCin and OSCout pins don’t have
to be considered.
Remark: The Option Bytes must be always
programmed, otherwise these bytes will be loaded
with
unpredictable device configuration.
Table 4.2 Programming Mode Commands
34/136
BlockWrite
ByteWrite
BlockErase
ByteErase
ByteRead
GlobalErase
FastBlockWrite 00001011
SetPage
ReadData
IncBlock
ReadStatus
V
V
V
RESET
SCL
SDA
Command
PP
DD
SS
unpredictable
dd
used to switch to programming mode
device supply
device ground
device reset
I
I
2
2
and releasing the Reset signal. The
C serial clock
C serial data
00000001
00000010
00000100
00000101
00001001
00000011
00001100
00001101
00010011
00001111
Code
Data in
values,
32
32
2
1
1
1
1
-
-
-
-
Data out Erase
determining
1
1
1
-
-
-
-
-
-
pp
Yes
Yes
Yes
Yes
Yes
No
pin
-
-
-
-
-
All the memory is erased.
The currently addressed page is set with the next data sent.
Write the currently addressed block with the 32 bytes
following the command. The Block locations are erased
before being written.
Write the byte addressed by the next data sent in the
currently addressed page.
Erase the block addressed by 3 MSB of the next data sent
and inside the currently addressed page.
Erase the byte addressed by the next data sent and inside
the currently addressed page.
Read the byte addressed by the next data sent and inside
the current page. The read data is sent by the device after
the re-send of the Slave Address with the R/W bit changed.
The current memory absolute address is post-incremented.
Write the currently addressed block with the 32 bytes
following the command. The Block locations aren’t erased.
Read the memory location currently addressed. The read
data is sent by the device after the command is
acknowledged. The current memory absolute address is
post-incremented.
The current block address is incremented modulo 8
(address 0 follows after address 7 and the Page is post-
incremented)
This command is followed by a status data byte. Mostly
used in error condition and to check if the device is locked
4.2.1 Programming Mode start. The
sequence starts the Programming Mode:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. A command code is sent to the device
11. The procedure related to the command is ex-
V
The device is Reset (RESET=V
The Reset is released (RESET=V
The internal oscillator starts at 10 MHz
The memory is turned on
The I
The I
Slave, Receiver, 7-bit address and waits for
data
The Start signal is sent to the chip followed by
the Slave Address 1010000 and the direction
bit set to 0 (the addressed slave waits for da-
ta). The device sends the acknowledge
The Programming Mode code 00000000 is
sent and acknowledged
ecuted
PP
is set to V
2
2
C Interface and Ports are initialized
C Interface is configured to work as
Description
DD
SS
DD
)
)
following

Related parts for ST52F513G3M6