参数资料
型号: ST52F510G2B6
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
封装: PLASTIC, DIP-28
文件页数: 33/106页
文件大小: 1340K
代理商: ST52F510G2B6
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:
s
VPP
used to switch to programming mode
s
VDD
device supply
s
VSS
device ground
s
RESET
device reset
s
SCL
I2C serial clock
s
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.
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.
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
相关PDF资料
PDF描述
ST52F510G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F514G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F513G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F513Y1B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP16
ST52F513Y2B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP16
相关代理商/技术参数
参数描述
ST52F510GMB6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F510GMM6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F510YMM6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F513 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F513FMB6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI