JT, Personally I would use a SPI interface if your chip of choice has one...
JT, Personally I would use a SPI interface if your chip of choice has one...
Dave Purola,
N8NTA
EN82fn
I would like to but how do I do a full duplex with the SPI interface? I have never used it. I use Pic Basic Pro
Any help would be great.
Thanks
Dave, I just looked at the data sheet on the PIC16F818 chip that I use and I don't see anything where you can transmit and recieve at the same time on the SPI bus.
The only way I can see, and granted I am not what you would call a good programmer, is to send the first two config bits and read the first two bits in ( 15 and 14 )
then use shiftin to read the last 14 bits in. Not sure if that would work or not but I plan to try it tomorrow.
Thanks
Jt
JT, That is the purpose of SPI. You would load the SSPSR register with the first 8 data bits to send and, as they were being sent the same register is being loaded with the firts 8 bits of data from the A/D. You just have to do it 1 byte at a time but it should be Much Much faster than bitbanging it. Read about it in the spec sheet for the 16F818. It's under SSP port....
Dave Purola,
N8NTA
EN82fn
I can't use the SPI in the chip. This is for a board that is already designed and built and the pins are wrong for it.
Thanks
JT
Bookmarks