I want to interface Microchip's 25AA512 EEPROM to MC9S12GA240 using SPI. Is there any sample code available for the same?
Hi Harshal,
Please refer to the chapter 2.3.11 Pins PJ7-0, the SPI1 signals are mapped to these pins (PJ0- PJ3) when used with the SPI function. Depending on the configuration of the enabled SPI1 the I/O state is forced to be input or output.
I found the project which was created for the S12XE. However, the S12XE has the same SPI module as S12G.
Please see the attachment.
Also, you can look at examples on the link below:
There are G240-SPI-MC33810-CW51 and G240-SPI-Slave examples.
I hope it helps you.
Best regards,
Diana