| Electronic Components Datasheet Search |
|
ST52F510 Datasheet(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52F510 Datasheet(HTML) 32 Page - STMicroelectronics |
|
32 / 106 page ![]() ST52F510/F513/F514 32/106 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 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 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |