Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

SSPBUF problem WRITING to REGISTERS then READING DATA

Status
Not open for further replies.

camerart

Active 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: 66
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Top