Listing 6-1. Program Pseudo Code
program_command (addressToProgram, dataToProgram) {:
"
writeToFlash (addressToProgram, 0x40);
/*writeToFlash (addressToProgram, 0x10);*/
/*see note (3)*/
"
writeToFlash (addressToProgram, dataToProgram) ;
/*Memory enters read status state after
the Program Command*/
do {
status_register=readFlash (addressToProgram);
"see note (3)";
/* E or G must be toggled*/
} while (status_register.SR7== 0) ;
if (status_register.SR3==1) /*VPP invalid error */
error_handler ( ) ;
if (status_register.SR4==1) /*program error */
error_handler ( ) ;
if (status_register.SR1==1) /*program to protect block error */
error_handler ( ) ;
}
ADSP-BF50x Blackfin Processor Hardware Reference
Internal Flash Memory
6-57
Need help?
Do you have a question about the ADSP-BF506F and is the answer not in the manual?
Questions and answers