I have a breakout board for AD9835 by sparkfun. I am trying to interface it with a Raspberry Pi. Since the chip has 5V SPI, I am using a level shifter. All other pins work fine, but when i connect the MOSI pin of RPi to the input of level shifter, it inverts the MOSI logic. Gives HIGH on a 0 and LOW on a 1. Why is this happening?
To solve this I connect the MOSI pin directly to the ad9835 SDATA pin, no matter whatever frequency word i send(32 bit word), the frequency is stuck on 5MHz. Is it because MOSI level is 3.3v and its not getting detected?