I am working with an Infineon XC167 connected to a M25P40 on the Synchronous Serial Interface. Aside from the data sheets for the two devices, does anybody know of a good source for example code or at least an explanation of using this interface?
I have worked with the XC167 and an ATMEL AT25128 (SPI EEPROM). What type of issue(s) are you having or need help with?
Thank you for the reply, but I have found a bit-bang solution for SPI Serial Flash that seems to be working well. Is there any reason I should be using the XC167 built-in SSC functions for this instead?
This is your choice as you must decide if your system has enough bandwidth to perform what you expect. My personal preference would be to avoid bit banging in general. For an EEPROM SPI device I would make use of one of the two SPI ports that are available on the XC167. Most cases that I have used (seen) page the serial EERPOM into RAM and then operate on the variables this way. Additionally, there is the need to quickly save back the data from RAM to the EEPROM when losing power. Generally a generic resource driver is set up to service the SPI (SSCx) and then you create individual drivers that utilize the SSC by chip selects (making an object per chip select so to speak using the specific SSCx resource). A PEC is used to service the SPI transfers in the background (PEC is an interrupt driven DMA).