I am trying to connect a Prop to a PIC MCPU through SPI but have not managed to make it work.
The PIC cpu is on the Digilent UNO32 board, and the programming environment is around the Arduino framework, where timing for SPI is provided through a clock divider (the main clock is 80 MHz).
On the prop side, I am using Beau's SPI_Asm object, although have tried the Spin version as well.
To start, I was trying to get one way communication so I connected the MOSI/CLK lines on the PIC side directly to the pins on the Prop side. The PIC is the master and the prop is the slave, which only really affects which pins connect to which. I have confirmed through a scope that the PIC is putting out a clock and data on the respective pins. Problem is that on the PIC side I do not receive anything, in fact the ShiftIn command never returns.
To start, what is the easiest way to map the clock divider on the PIC to the clockdelay on the Prop?
-- Thanks



Reply With Quote




Bookmarks