View previous topic :: View next topic |
Author |
Message |
Will Reeve
Joined: 30 Oct 2003 Posts: 209 Location: Norfolk, England
|
Software SPI |
Posted: Sat Jun 26, 2004 9:57 am |
|
|
I am surprised I can’t find a software SPI implantation in the collection of inbuilt functions. I am using a 16F871 and Microchip decided to delete the hardware SPI. Instead of plugging in the more expensive 16F877 device I was wondering if there is any software implantation issues? I will only be writing (to one of Microchips digital pot IC’s), it looks like I can bit bash it out, is it really that simple? If so can I add it to a “wish list” for the next compiler revision :=)
Will |
|
|
languer
Joined: 09 Jan 2004 Posts: 144 Location: USA
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Jun 26, 2004 12:09 pm |
|
|
Quote: | I will only be writing (to one of Microchips digital pot IC’s). |
See the following example file and drivers, for examples of how
to use software SPI with digital pots:
EX_DPOT.C
and the following drivers:
AD8400.C
DS1868.C |
|
|
Will Reeve
Joined: 30 Oct 2003 Posts: 209 Location: Norfolk, England
|
|
Posted: Sun Jun 27, 2004 1:10 pm |
|
|
Top job, thanks. Saves me having to write that :-) Thanks again. I am trying to keep the costs down on this project as there are going to be a decent volume of them, hence the penny pinching. The PIC is going to be the most expensive part!
Keep well,
Will |
|
|
|