st52f510 STMicroelectronics, st52f510 Datasheet - Page 32

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
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.
4.2.1 Programming Mode start. The
sequence starts the Programming Mode:
Table 4.2 Programming Mode Commands
32/106
BlockWrite
ByteWrite
BlockErase
ByteErase
ByteRead
GlobalErase
FastBlockWrite 00001011
SetPage
ReadData
IncBlock
ReadStatus
V
V
V
RESET
SCL
SDA
Command
PP
DD
SS
dd
used to switch to programming mode
device supply
device ground
device reset
I
I
and releasing the Reset signal. The
2
2
C serial clock
C serial data
00000001
00000010
00000100
00000101
00001001
00000011
00001100
00001101
00010011
00001111
Code
Data in
32
32
2
1
1
1
1
-
-
-
-
Data out Erase
1
1
1
-
-
-
-
-
-
following
pp
Yes
Yes
Yes
Yes
Yes
No
pin
-
-
-
-
-
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.
All the memory is erased.
Write the currently addressed block with the 32 bytes
following the command. The Block locations aren’t erased.
The currently addressed page is set with the next data sent.
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
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
)
)

Related parts for st52f510