I can't find any PSOC Creator 4.4 sample code to read and write to a SPI EEPROM with a CY8C4245.
I need to know how to use the required API's to:
Read and write to the EON25F80 control Registers.
Write and change the protection control register in able to erase/read/write 8Mb of data to the 25F80.
Read sequentially the entire 8Mb after setting a 24-bit starting address.
The problem is there is so many API's and no help in which are needed to do SPI reads/writes/data transfer.
I don't know which API's to use, what is the right SPI command sequence in a subroutine (what api's to use and in what order) to do this task.
I do know clearly what I want to read/write from the 25F80 EEPROM, but don't know what API's are necessary, there are so many API's and I can't find any SPI Master Ver 2.5 sample code on the web to do this task.
The EON 25F80 uses 24-bit addresses for accessing stored 8-bit data, but I must also read the status reg and write to the 8-bit control register with single byte commands to get an 8-bit reply from this EEPROM.
I am confused about how to write a single byte instruction to the 25F80 and read back a control register 8-bit word because I don't know how to use 4-byte buffers for a single byte send/receive to the 25F80.
I don't know what SPI Master Ver 2.5 API's are needed to initialize the SPI in main() and to read and write to the EON 25F80.
I have set up correctly configured the SPI Ver 2.5 Component and have setup the pins *CS(SS) MOSI MISO MClk (all pins inp/out are set to internal pullup resistor.)
The SPI Master Ver 2.5 component is correctly configured for SPI Master.
Can anyone help? I am using PSOC Creator 4.4 and the SPI Master Ver 2.5
I am using a Cy8CKit-049 with the PSOC 4200 CY8C4245.