參數(shù)資料
型號: ST52513F3
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: MICROCONTROLLER, PDSO20
封裝: ROHS COMPLIANT, SOP-20
文件頁數(shù): 65/136頁
文件大?。?/td> 2791K
代理商: ST52513F3
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 Vpp pin
equal to Vdd and releasing the Reset signal. The
following pins are used in Programming mode:
VPP
used to switch to programming mode
VDD
device supply
VSS
device ground
RESET
device reset
SCL
I2C serial clock
SDA
I2C serial data
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
values,
determining
unpredictable device configuration.
4.2.1 Programming Mode start. The
following
sequence starts the Programming Mode:
1.
VPP is set to VDD
2.
The device is Reset (RESET=VSS)
3.
The Reset is released (RESET=VDD)
4.
The internal oscillator starts at 10 MHz
5.
The memory is turned on
6.
The I2C Interface and Ports are initialized
7.
The I2C Interface is configured to work as
Slave, Receiver, 7-bit address and waits for
data
8.
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
9.
The Programming Mode code 00000000 is
sent and acknowledged
10. A command code is sent to the device
11. The procedure related to the command is ex-
ecuted
Table 4.2 Programming Mode Commands
Command
Code
Data in
Data out Erase
Description
BlockWrite
00000001
32
-
Yes
Write the currently addressed block with the 32 bytes
following the command. The Block locations are erased
before being written.
ByteWrite
00000010
2
-
Yes
Write the byte addressed by the next data sent in the
currently addressed page.
BlockErase
00000011
1
Yes
Erase the block addressed by 3 MSB of the next data sent
and inside the currently addressed page.
ByteErase
00000100
1
Yes
Erase the byte addressed by the next data sent and inside
the currently addressed page.
ByteRead
00000101
1
-
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.
GlobalErase
00001001
-
Yes
All the memory is erased.
FastBlockWrite 00001011
32
-
No
Write the currently addressed block with the 32 bytes
following the command. The Block locations aren’t erased.
SetPage
00001100
1
-
The currently addressed page is set with the next data sent.
ReadData
00001101
-
1
-
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.
IncBlock
00001111
-
The current block address is incremented modulo 8
(address 0 follows after address 7 and the Page is post-
incremented)
ReadStatus
00010011
-
1
-
This command is followed by a status data byte. Mostly
used in error condition and to check if the device is locked
相關(guān)PDF資料
PDF描述
ST72361AR6TA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP64
ST72361AR9TC 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP64
ST72P361J4TA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F321BAR7TARE 8-BIT, FLASH, 16 MHz, MICROCONTROLLER, PQFP64
ST72P321B(AR6)TCXXXE 8-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST52513G2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513G3 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513K2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513K3 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513Y2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH