Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: What's the difference between synchronous burst mode and asynchronous mode of BF506F?

$
0
0

Hi, Jobo23,

 

I have read the relevant document. I think the code below is for asynchronous read.

Would you please send me some code example for synchronous burst read?

 

ERROR_CODE ReadFlash( unsigned long ulAddr, unsigned short *pusValue )

{

    // disable interrupts before performing the load or store operation

    unsigned int uiSaveInts = cli();

 

    // set our flash address to where we want to read

    unsigned short *pFlashAddr = (unsigned short *)(ulAddr);

 

    // read the value

    *pusValue = (unsigned short)*pFlashAddr;

 

    // Enable Interrupts

    sti(uiSaveInts);

 

    // ok

    return NO_ERR;

}


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>