First quick question:
in the data sheet, Section 29 states "after a chip reset, all the registers have default values...After a reset all registers that shall be different from the default value needs to be programmed..." Does this mean that after the chip wakes up from a Sleep mode and if a SRES is issued, all of the registers need to be reprogrammed?
Main problem:
I am using the Anaren A1101R09C-EZ4xbeing controlled from a PIC16LF1937. I cut the traces on the Anaren board that interface SPI to the MSP430 as well as the GDO pin. I tried setting all the registers to the values recommended in RF Studio and tried writing out one byte of data. This did not work and the status bytes read back would vary. I've reduced things to simply trying to change the GDO pin from putting out the OSC/192 signal to CHIP_RDYn. My code is below, but it does not see to work. I've tried many variations of things that i've read online but none of them have worked for me and this is where I am now.
CSn = 0; while (SDI); SSPBUF = SRES; while(BF==0); dummy = SSPBUF; while (SDI); SSPBUF = SIDLE; while(BF == 0); dummy = SSPBUF; CSn = 1; CSn = 0; while(SDI); SSPBUF = 0x02; while (BF == 0); dummy = SSPBUF; SSPBUF = 0x29; while (BF == 0); dummy = SSPBUF; CSn = 1;
Am i doing something wrong...is there a recommended best method to initial configuration setup?