-
How to use the SPI port?
Hello everyone,
I would like to communicate from a PIC to a SPI device through the SPI port on the 16f876 (RC3,4,5).
Using this mode allows you to recieve and transmit data at the same time.
How do you set this mode in PBPro and how do you get the information from the buffers?
Thanks,
Andy
-
atucker, Unfortunately PBP does not have any commands for handling SPI communications. You will have to write your own which shouldn't be too difficult.
Dave Purola,
N8NTA
-
Thanks for replying Dave,
I was just trying to fing an easy to get the data from the buffers. From what I gatherd from the data sheet the SDI and SDO are both transporting data during the clock(SCK) pulse.
I guess there is always assembly, It has been awhile.
Andy