Jump to content

Recommended Posts

Hi all,

I'm using the SPI feature on a 16f877.


Does anyone know how I would go about accessing memory location 0x80 of a slave device and writing or reading the contents of sspbuf to or from it?


I can read and write to the slave at the moment, but I need to read / write to specific memory locations.




Share this post

Link to post
Share on other sites

The same way you would if it were a direct program in the chip, only the interface handling changes.


eg. for a read you send an SPI command that the pic recognises, the pic then processes it, then sends data back.

Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...