This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SSC Serial Flash on Infineon XC167

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?

Parents Reply Children
  • 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).