st52f510 STMicroelectronics, st52f510 Datasheet - Page 34

no-image

st52f510

Manufacturer Part Number
st52f510
Description
8-bit Intelligent Controller Unit Icu Two Timer/pwms, Adc, I2c, Spi, Sci
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st52f510F3M
Manufacturer:
ST
0
Part Number:
st52f510F3M6
Manufacturer:
ST
0
Part Number:
st52f510G3M6
Manufacturer:
ST
0
ST52F510/F513/F514
A similar procedure can be used to write a single
block:
1.
2.
3.
4.
The procedures described previously can be
repeated as many time as needed, without exiting
from Programming Mode or re-sending the Slave
Address again.
Figure 4.2 Programming Procedures
34/106
Fast Programming Procedure
Random Byte Writing Procedure
Random Block Writing Procedure
Option Byte Writing Procedure
S=Start, P=Stop, A=Acknowledge, NA=Non-acknowledge
S 10100000
.....
.....
.....
..... Data31
.....
.....
The SetPage command is sent, followed by
the page number where the data should be
written
The IncBlock command is sent as many times
as the block number inside the page (for ex-
ample: to address the block 3 the IncBlock
must be sent 3 times)
The WriteBlock command is sent followed by
the 32 data bytes to be written.
After the 32th byte is sent, the device holds
the SCL line low until all the data are not
stored in the memory (about 4.5 ms: 2 ms for
erasing and 2.5 for writing: the same time for
a single byte)
From Slave to Master
SetPage
SetPage
SetPage
Data31
Dummy 0
A
A
A
A
A
A
Command
A
00000000
Page Address
Page Address
00110000
IncBlock
.....
Dummy 23
.....
A
GlobalErase
A
A
A
A
From Master to Slave
FastBlockWrite
IncBlock
WriteBlock
ByteWrite
A
P
A
A
A
A
FastBlockWrite
..... IncBlock
The commands ByteErase and BlockErase, used
instead of ByteWrite and BlockWrite, erase (put all
bit to 0) the specified memory location or block.
4.2.4 Option Bytes Programming. The
Byte addresses cannot be accessed with a
sequential procedure like the one described in
Section
automatically incremented up to the last block or
address in page 31. A further increment sets all the
pointers to 0.
The Option Byte addresses (located at page 48,
block 0, addresses 0-7) must be accessed with a
direct addressing procedure as the one described
in Section 4.2.3.
If the Fast Programming procedure is used, it must
be followed by a Random Block Writing procedure
to program the Option Bytes. The other 24 bytes of
the block can be written with dummy or user
values. The blocks 0, 1, 2 and 3 of Page 48 can be
used for writing data as well (see Section 4.5) and
for locking the device (see Section 4.4).
Byte Address
Option Byte 0
A
.....
4.2.2.
Data31
A
A
A
A
BlockWrite
Data0
Actually,
..... Option Byte 7
Data
A
.....
A
A
.....
A
the
Command
.....
Data0
Data31
pointers
A
A
.....
.....
A
Option
.....
are
P

Related parts for st52f510