Electronic Components Datasheet Search
  English  ▼

X  

AN4570 Datasheet(PDF) 21 Page - STMicroelectronics

Part # AN4570
Description  This application note describes how to use the high-density
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4570 Datasheet(HTML) 21 Page - STMicroelectronics

Back Button AN4570 Datasheet HTML 17Page - STMicroelectronics AN4570 Datasheet HTML 18Page - STMicroelectronics AN4570 Datasheet HTML 19Page - STMicroelectronics AN4570 Datasheet HTML 20Page - STMicroelectronics AN4570 Datasheet HTML 21Page - STMicroelectronics AN4570 Datasheet HTML 22Page - STMicroelectronics AN4570 Datasheet HTML 23Page - STMicroelectronics AN4570 Datasheet HTML 24Page - STMicroelectronics AN4570 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 46 page
background image
DocID026804 Rev 1
21/46
AN4570
Interfacing with a non-multiplexed, asynchronous 16-bit NOR Flash memory
45
{
/* Write data to NOR */
HAL_NOR_Program(&norHandle,
(uint32_t *)(NOR_DEVICE_ADDR + uwStartAddress),
pData);
/* Read NOR device status */
if(HAL_NOR_GetStatus(&norHandle,
NOR_DEVICE_ADDR,
PROGRAM_TIMEOUT) != NOR_SUCCESS)
{
return NOR_ERROR;
}
/* Update the counters */
index--;
uwStartAddress += 2;
pData++;
}
return NOR_OK;
}
/**
* @brief
Reads an amount of data from the NOR device.
* @param
uwStartAddress: Read start address
* @param
pData: Pointer to data to be read
* @param
uwDataSize: Size of data to read
* @retval NOR memory status
*/
uint8_t NOR_ReadData(uint32_t uwStartAddress,
uint16_t* pData,
uint32_t uwDataSize)
{
if(HAL_NOR_ReadBuffer(&norHandle,
NOR_DEVICE_ADDR + uwStartAddress,
pData, uwDataSize) != HAL_OK)
{
return NOR_ERROR;
}
else
{
return NOR_OK;
}
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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