參數(shù)資料
型號: PSD4256G6V-10UIT
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: 1M X 8 FLASH, 52 I/O, PIA-GENERAL PURPOSE, PQFP80
封裝: PLASTIC, TQFP-80
文件頁數(shù): 63/127頁
文件大?。?/td> 1091K
代理商: PSD4256G6V-10UIT
Programming Flash memory
PSD4256G6V
8
Programming Flash memory
Flash memory must be erased prior to being programmed. The MCU may erase Flash
memory all at once or by-sector. Although erasing Flash memory occurs on a sector or
device basis, programming Flash memory occurs on a word basis.
The primary and secondary Flash memories require the MCU to send an instruction to
program a word or to erase sectors (see Table 29: 16-bit instructions and Table 30: 8-bit
Once the MCU issues a Flash memory Program or Erase instruction, it must check the
status bits for completion. The embedded algorithms that are invoked inside the PSD
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 (PE4) signal.
8.1
Data polling
Polling on the Data Polling bit (DQ7/DQ15) is a method of checking whether a Program or
Erase cycle is in progress or has completed. Figure 5 shows the data polling algorithm.
When the MCU issues a Program instruction, the embedded algorithm within the PSD
begins. The MCU then reads the location of the word to be programmed in Flash memory to
check the status. The Data Polling bit (DQ7/DQ15) becomes the complement of the
corresponding bit of the original data word to be programmed. The MCU continues to poll
this location, comparing data and monitoring the Error Flag bit (DQ5/DQ13). When the Data
Polling bit (DQ7/DQ15) matches the corresponding bit of the original data, and the Error
Flag bit (DQ5/DQ13) remains '0,' the embedded algorithm is complete. If the Error Flag bit
(DQ5/DQ13) is '1,' the MCU should test the Data Polling bit (DQ7/DQ15) again since the
Data Polling bit (DQ7/DQ15) may have changed simultaneously with the Error Flag bit
(DQ5/DQ13) (see Figure 5).
The Error Flag bit (DQ5/DQ13) is set if either an internal timeout occurred while the
embedded algorithm attempted to program the location or if the MCU attempted to program
a '1' to a bit that was not erased (not erased is logic '0').
It is suggested (as with all Flash memories) to read the location again after the embedded
programming algorithm has completed, to compare the word that was written to the Flash
memory with the word that was intended to be written.
When using the data polling method during an Erase cycle, Figure 5 still applies. However,
the Data Polling bit (DQ7/DQ15) is '0' until the Erase cycle is complete. A '1' on the Error
Flag bit (DQ5/DQ13) indicates a timeout condition on the Erase cycle, a 0 indicates no error.
The MCU can read any even location within the sector being erased to get the Data Polling
bit (DQ7/DQ15) and the Error Flag bit (DQ5/DQ13).
PSDsoft generates ANSI C code functions that implement these Data polling algorithms.
相關(guān)PDF資料
PDF描述
PSD6407 POSITION SENSITIVE DETECTOR
PSD813F2-15JT 128K X 8 FLASH, 27 I/O, PIA-GENERAL PURPOSE, PQCC52
PSD813F5V-20MT 128K X 8 FLASH, 27 I/O, PIA-GENERAL PURPOSE, PQFP52
PSD853F2-15JIT 128K X 8 FLASH, 27 I/O, PIA-GENERAL PURPOSE, PQCC52
PSD833F2-15M 1M X 1 FLASH, 27 I/O, PIA-GENERAL PURPOSE, PQFP52
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PSD4-36 制造商:Tamura Corporation of America 功能描述:
PSD-45 制造商:MEANWELL 制造商全稱:Mean Well Enterprises Co., Ltd. 功能描述:45W DC-DC Single Output Switching Power Supply
PSD-45_11 制造商:MEANWELL 制造商全稱:Mean Well Enterprises Co., Ltd. 功能描述:45W DC-DC Single Output Switching Power Supply
PSD-45A-05 功能描述:線性和開關(guān)式電源 30W 5Vout 6A Input 9.2-18VDC RoHS:否 制造商:TDK-Lambda 產(chǎn)品:Switching Supplies 開放式框架/封閉式:Enclosed 輸出功率額定值:800 W 輸入電壓:85 VAC to 265 VAC 輸出端數(shù)量:1 輸出電壓(通道 1):20 V 輸出電流(通道 1):40 A 商用/醫(yī)用: 輸出電壓(通道 2): 輸出電流(通道 2): 安裝風(fēng)格:Rack 長度: 寬度: 高度:
PSD-45A-12 功能描述:線性和開關(guān)式電源 30W 12Vout 2.5A Input 9.2-18VDC RoHS:否 制造商:TDK-Lambda 產(chǎn)品:Switching Supplies 開放式框架/封閉式:Enclosed 輸出功率額定值:800 W 輸入電壓:85 VAC to 265 VAC 輸出端數(shù)量:1 輸出電壓(通道 1):20 V 輸出電流(通道 1):40 A 商用/醫(yī)用: 輸出電壓(通道 2): 輸出電流(通道 2): 安裝風(fēng)格:Rack 長度: 寬度: 高度: