參數(shù)資料
型號: uPSD3233
廠商: 意法半導(dǎo)體
英文描述: Flash Programmable System Device with 8032 Microcontroller Core(嵌入高速“8032微控制器核”的Flash型可編程系統(tǒng)器)
中文描述: 閃存可編程系統(tǒng)器件與8032微控制器內(nèi)核(嵌入高速“8032微控制器核”的閃存型可編程系統(tǒng)器)
文件頁數(shù): 100/164頁
文件大?。?/td> 1133K
代理商: UPSD3233
μ
PSD3200 FAMILY
100/164
DRAFT(Thursday 20 June 2002, 13:15).
Programming Flash Memory
Flash memory must be erased prior to being pro-
grammed. A byte of Flash memory is erased to all
1s (FFh), and is programmed by setting selected
bits to 0. The MCU may erase Flash memory all at
once or by-sector, but not byte-by-byte. However,
the MCU may program Flash memory byte-by-
byte.
The primary and secondary Flash memories re-
quire the MCU to send an instructionto program a
byte or to erase sectors (see Table 83).
Once theMCU issues a Flash memoryProgram or
Erase instruction, it must check for the status bits
for completion. Theembedded algorithms that are
invoked support several means to provide status
to the MCU. Status may be checked using any of
three methods: Data Polling, Data Toggle, or
Ready/Busy (PC3).
Data Polling.
Polling on the Data Polling Flag
(DQ7) bit is a method of checking whether a Pro-
gram orErase cycle is in progress or has complet-
ed. Figure 49 shows the Data Polling algorithm.
When the MCU issues a Program instruction, the
embedded algorithm begins.The MCU then reads
the locationof thebyte to be programmed in Flash
memory to check status. The Data Polling Flag
(DQ7) bit of this location becomes the complement
of b7 of the original data byte to be programmed.
The MCU continues to poll this location, compar-
ing the Data Polling Flag (DQ7) bit and monitoring
the Error Flag (DQ5) bit. When the Data Polling
Flag (DQ7)bit matches b7 of the original data,and
the Error Flag (DQ5) bit remains 0, the embedded
algorithm is complete. If theError Flag (DQ5) bit is
1, the MCU should test the Data Polling Flag
(DQ7) bit again since the Data Polling Flag (DQ7)
bit may have changed simultaneously with the Er-
ror Flag (DQ5) bit (see Figure 49).
The Error Flag (DQ5) bit is set if either an internal
time-out occurred while the embedded algorithm
attempted to program the byte or if the MCU at-
tempted toprogram a 1 to a bit that was not erased
(not erased is logic 0).
It issuggested (as withall Flash memories)to read
the location again after the embedded program-
ming algorithm has completed, to compare the
byte that was written to the Flash memory with the
byte that was intended to be written.
When using the Data Polling method during an
Erase cycle, Figure 49 still applies. However, the
Data Polling Flag (DQ7) bit is 0 until the Erase cy-
cle is complete. A 1 on the Error Flag (DQ5) bit in-
dicates a time-out condition on the Erase cycle; a
0 indicates no error. The MCU can read any loca-
tion within the sector being erased to get the Data
Polling Flag (DQ7) bit andthe Error Flag (DQ5)bit.
PSDsoft Express generates ANSI C code func-
tions which implement these Data Polling algo-
rithms.
Figure 49. Data Polling Flowchart
Data Toggle.
Checking the Toggle Flag (DQ6) bit
is a method of determining whether a Program or
Erase cycle is in progress or has completed. Fig-
ure 50 shows the Data Toggle algorithm.
When the MCU issues a Program instruction, the
embedded algorithm begins.The MCU then reads
the locationof the byte to be programmed inFlash
memory to check status. The Toggle Flag (DQ6)
bit of this location toggles each time the MCU
reads this locationuntil the embedded algorithm is
complete. The MCU continues to read this loca-
tion, checking the Toggle Flag (DQ6) bit and mon-
itoring the Error Flag (DQ5) bit. When the Toggle
Flag (DQ6) bit stops toggling (two consecutive
reads yield the same value), and the Error Flag
(DQ5) bit remains 0, the embedded algorithm is
complete. If the Error Flag (DQ5) bit is 1, the MCU
should test the Toggle Flag (DQ6) bit again, since
the Toggle Flag (DQ6) bit may have changed si-
multaneously with the Error Flag (DQ5) bit (see
Figure 50).
READ DQ5 &
DQ7
at VALID ADDRESS
START
READ DQ7
FAIL
PASS
AI01369B
DQ7
DATA
YES
NO
YES
NO
DQ5
= 1
DQ7
DATA
YES
NO
相關(guān)PDF資料
PDF描述
uPSD3234(中文) Flash Programmable System Device with 8032 Microcontroller Core(嵌入高速“8032微控制器核”的Flash型可編程系統(tǒng)器)
uPSD3212C(中文) Flash Programmable System Devices with 8032 Microcontroller Core and 16Kbit SRAM(帶8032微控制器內(nèi)核和16Kbit SRAM的FLASH可編程系統(tǒng)器件)
uPSD3254A(中文) Flash Programmable System Devices with 8032 Microcontroller Core(帶8032微控制器內(nèi)核的FLASH可編程系統(tǒng)器件)
uPSD3254BV(中文) Flash Programmable System Devices with 8032 Microcontroller Core(帶8032微控制器內(nèi)核的FLASH可編程系統(tǒng)器件)
UPSD3234A Flash Programmable System Devices with 8032 Microcontroller Core
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPSD3233A-24T1 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Device with 8032 Microcontroller Core
UPSD3233A-24T1T 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Devices with 8032 Microcontroller Core
UPSD3233A-24T6 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Device with 8032 Microcontroller Core
UPSD3233A-24T6T 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Devices with 8032 Microcontroller Core
UPSD3233A-24U1 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Device with 8032 Microcontroller Core