winavr code for avr mega8. The program get data from serial port in interrupt Function. And then out put the data to 74ls595 (serial to parallel IC) for controlling relay output.
Name Function
--- --- --- --- --- ---
Check_SST_39VF160 Check manufacturer and device ID
CFI_Query CFI Query Entry/Exit command sequence
Erase_Entire_Chip Erase the contents of the entire chip
Erase_One_Sector Erase a sector of 2048 word
Erase_One_Block Erase a block of 32K word
Program_One_Word Alter data in one word
Program_One_Sector Alter data in 2048 word sector
Program_One_Block Alter data in 32K word block
Check_Toggle_Ready End of internal program or erase detection using
Toggle bit
Check_Data_Polling End of internal program or erase detection using
Data# polling