Regarding point 2:
Dany wrote:The only thing I had to change was "_SPI_CLK_IDLE_LOW" into "_SPI_CLK_IDLE_HIGH".
I discovered that SPI goes wrong with "_SPI_CLK_IDLE_LOW" when I assign $0F to ADCON1. In general, as soon as I try to switch AN4 to digital (so all values from $0B onwards), SPI needs "_SPI_CLK_IDLE_HIGH" in stead of "_SPI_CLK_IDLE_LOW" (on P18F2620 in SPI master mode, where AN4 is the same pin as SS, an SPI slave pin).SrdJan wrote:2: We did not experience such behavior, it will be investigated.
I can not find in the datasheet why this should be the case.
Important:
In the help example "program MMC_Test", the statement
Code: Select all
ADCON1 := ADCON1 or 0x0F; // Configure AN pins as digital
So, I think you can ignore point 2, it works with "_SPI_CLK_IDLE_LOW" (provided... see above).
Thanks!