SSPBUF problem WRITING to REGISTERS then READING DATA

Status
Not open for further replies.

camerart

Well-Known Member
Hi,
I'm having difficulty with SSPBUF!
Here is a program where one PIC 18F46K20 'talks' to a second PIC 18LF4431 using SSPBUF. This works, and SENDS and RECEIVED TEST DATA between the 2x PICS.

Next I want PIC1 to WRITE to REGISTERS of a peripheral, then RECEIVE DATA from the peripheral.
How is this done please?

NOTE: With this peripheral there doesn't seem to be a DATA ready BIT.
Camerart.
 

Attachments

  • 18F46K20 16mHz INT SPI PCB7 150421 1200.bas
    4.4 KB · Views: 291
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…