Implemeting a software SPI in a PIC16f84 using C language

Status
Not open for further replies.

ZeleC

Full Member level 5
Joined
Dec 18, 2002
Messages
261
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
2,173
hello
can anyone give some link or example of implemeting a software SPI in a PIC16f84 using C language
thank you
 

software spi pic

Off topic but:

The Pic16f84 is expensive and long in the tooth.
Have you considered another variant with an spi module built in. Most pics are pin compatable.
 

pic software spi

actually its for a pic16f876 I know it has a SPI built in but i Want to use the I2C and the SPI at the same time, so thought of doing the SPI thru software and to use the hardware I2C.
is there an affordable PIC that have the 2 protocols on different pins ?
thx
 

spi ccs

ZeleC said:
hello
can anyone give some link or example of implemeting a software SPI in a PIC16f84 using C language
thank you

Use CCS C, problem gone in using SPI.
 

spi ccs c

hi glenjoy,
actually im using CCS C but i can see only that there exist a hardware SPI (using the project wizard build) ,is there any example about software SPI in CCS?
thx
 

spi software pic

You can check the website of CCS, there is a forum there maybe you can find answer there or best way is study the SPI protocol and do a bit banging operation.
 

ccs c spi

CCS C is a good solution
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…