I am trying to use a 16F876A PIC to send a FTW to an AD9912 Eval Board, and the SPI communication seems to be working fine according to the oscilloscope but it won't change the output frequency on the board. I suspect there is something wrong with the I/O update.
The part of the PIC C code that does the software update is:
PORTA.f1 = 0; //CSB pin
SPI1_Write(0x00); //Special function from MikroC library
PORTA.f1 = 1;
Is this correct?
Also, I'm only using 4 pins that come from the PIC: SDIO, SDO, CSB and SCK. The pic runs at 10MHz with a crystal oscilator and SYSCLK comes from an external source at 1GHz.
My jumper configuration is:
JMP2: ON (meaning that the jumper is in place)
JMP4 to JMP7: VDD
I'm not using PLL or any other functions, I just want to test the FTW for now.
Thanks in advance!