st52f510 STMicroelectronics, st52f510 Datasheet - Page 36

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.3.2 Random data reading. To read a specified
memory location, the following procedure should
be used:
1.
2.
3.
4.
5.
6.
7.
8.
Figure 4.4 Device Lock Procedure
36/106
Device Lock Procedure
Device Lock and ID Code Writing Procedure
Device Lock Reading Procedure
(*) The most significative bit return the Lock Bit (0=unlocked, 1=locked)
S=Start, P=Stop, A=Acknowledge, NA=Non-acknowledge
.....
.....
..... 11111111
..... ReadStatus
The Programming mode is entered with the
sequence described in Section 4.2.1
The SetPage command is sent, followed to
the page number where the data to be read is
located
The ByteRead command is sent, followed by
an address inside the page
The Master generates a Stop condition fol-
lowed by a Start condition
The Slave Address with the R/W byte set to 1
(10100001) is sent. The device receives the
Slave Address and acknowledges it.
The device sends the data to be read in the
serial data line SDA.
The Master device doesn’t send the acknowl-
edge and generates a stop condition.
To send the next command, the Master
should generate a Start condition followed by
the Slave Address with the R/W byte set to 0
(10100000).
From Slave to Master
SetPage
SetPage
A
A
A
A
00110000
00110000
ID Code 1
P S 10100001
A
A
A
From Master to Slave
IncBlock
ByteWrite
ID Code 2
A
Status Byte (*) NA P S 10100000
A
A
IncBlock
A
01100000
4.4 Memory Lock
The Program/Data Memory space can be locked to
inhibit the reading of contents and protect the
intellectual property.
To lock the device, the user must set all the bit of
the Lock Byte to ‘1’. The Lock Byte is located on
Page 48 (030h), Block 3, byte 0 inside the block i.e.
byte 96 (060h) inside the page.
After writing 255 (0FFh) into the Lock Byte, with the
procedure described in the Section 4.2.3, the
memory is locked and the only command allowed
are the following:
– GlobalErase : this command, writing ‘0’ in all the
– ReadData : the only block that can be read is the
– ReadStatus : this command allows the detection
Remark: the Lock Byte is checked when entering
the Programming Mode. For this reason after
writing the Lock Byte, all the commands can be
carried out until the Programming mode is exited.
..... ID Code 31
memory, also unlock the device.
Block 3 in Page 48 (030h); this allows the read-
ing of the Lock Byte and the ID Code locations
(see Section 4.5).
of an error condition in Programming mode op-
eration (see Section 4.6). It can also be used to
check if the device is locked. The most significa-
tive bit return the Lock Bit (0=unlocked,
1=locked).
A
A
IncBlock
11111111
A
A
Command
A
BlockWrite
Command
A
Command .....
.....
A
.....
.....

Related parts for st52f510