reading / writing nand flash memory

Thread Starter

tmir

Joined Jul 5, 2012
1
hello everybody!

i am new here, and thats not just in this forum, but also in the world of microcontrollers.
i have spent some time googling gathering information, but now i got to a point where passive research doesnt get me any further. so its up to you guys, in case anybody is willing to help me getting me from zero to hero ;)

i want to read and also write on nand flash memory (samsung k9f6408 to be exact) and would like to know what kind of microcontroller is needed for that, down to the software + maybe even code. i found a few lines of code (i think it is written in c - but i havent done any programming apart from the few lines i wrote in school, so i cant really tell):

Rich (BB code):
void FlashRead()    
{
unsigned char d;
Flash_CE=0; file:        
WriteCommand(0x00); file:
WriteAddress(0x00,0); file:
for(d=0;d!=2;d++) file:
{               
uint k=528; file:
while(!Flash_RB)
{                                            
}                                            
while(k) file:
{                                             
Flash_RD=0; file:
#pragma asm file:
NOP                                          
NOP  
#pragma endasm
ACC=P0; file:
#pragma asm
NOP  
NOP
#pragma endasm
Flash_RD=1; file:
SendData(); file:
k--;
}
}
Flash_CE=1; file:
}
does this look correct?
i also found a few lines for writing and erasing, but i dont want to put too much stuff into my first post, dont want to scare away the few people who kept on reading ;)

i checked out the datasheet and know the chip's pin configuration - but that is as far as i got. now it has to be hooked up to some kind of microcontroller, the code has to be compiled (in mplab ide?) and flashed on the microcontroller?

i guess my level of knowledge is obvious, i hope someone can shed some light onto this big mistery for me :)

thanks in advance!
 
Top