ST52F513G3M6 STMicroelectronics, ST52F513G3M6 Datasheet - Page 35

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
Figure 4.1 Commands and Data Communication Sequences
The generic procedure of commands execution,
with the data communication in both directions is
displayed in
Remark: the Slave Address 1010000 must be sent
after a Stop (i.e. each time the data direction
changes, to specify the R/W bit). For example: if a
command to send data to the device has been
executed, a command for receiving data must be
followed by the slave address and the R/W bit must
be set to 1. The Programming Mode code doesn’t
need to be specified again.
Warning: After entering the Programming Mode,
the currently pointed address is the Page 48, Block
3, byte 0 (Lock Byte).
The
Programming Mode is showed in
4.2.2 Fast Programming procedure. The
fastest way to program the device memory is the
use of the FastBlockWrite command. The following
procedure can be used to write the memory with a
new program and new data, starting from the first
memory location:
1.
2.
3.
4.
Programming mode start sequence
Execution of commands for writing data:
Execution of commands for reading data:
S=Start, P=Stop, A=Acknowledge, NA=Non-acknowledge
Command
Command
S 10100000
The Programming Mode is entered with the
sequence described above
The memory is erased (all bits are put to 0)
with the GlobalErase command. The device
holds the SCL line low, releasing it after the
command is completed (about 2 ms). This
command also unlocks the device if locked.
The FastBlockWrite command is sent and the
device acknowledges it
The 32 bytes of data to be written in the first
memory Block are sent in a sequence. The
device acknowledges each of them
From Slave to Master
list
of
Figure
A
A
A
the
Address
Data1
4.1.
00000000
available
A
A
P S 10100001
.....
A
Table 4.2
commands
Command
From Master to Slave
DataN
A
A
A
in
Command
Data1
Data read NA P
5.
6.
7.
Note: the Block Pointer assumes values between
0 to 7 (there are 8 blocks in a page). When the
Block Pointer is equal to 7, the IncBlock command
puts this pointer to 0 and increments the Page
Pointer. The Page Pointer, after page writing is
completed, doesn’t have to be incremented in the
procedure above described.
4.2.3 Random data writing. A single byte can be
written in a specified memory location by using the
following procedure:
1.
2.
3.
4.
5.
6.
After the device acknowledges the 32nd byte,
it holds the SCL line until the parallel writing of
the 32 byte is completed (about 2.5 ms)
The Block Pointer is incremented by sending
the IncBlock command
The procedure is repeated from point 3 until
there is data to be sent to the memory
The Programming Mode is entered with the
sequence described in
The SetPage command is sent, followed by
the page number where the data should be
written
The ByteWrite command is sent followed by
two bytes
The first bytes that follows the ByteWrite com-
mand is the address inside the pointed page
where the data must be written.
The second byte is the data to be written
The device held the SCL line low until the data
is not stored in the memory (about 4.5 ms: 2
ms for erasing and 2.5 for writing)
A
A
.....
Data1
DataN
A
ST52510xx ST52513xx
.....
A
Section 4.2.1
P
DataN
A
P
35/136

Related parts for ST52F513G3M6