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.

Spi Interface

Status
Not open for further replies.

WHO

New Member
Hey Guys..

I'm Using Pic Simulator Ide And I Cant Get My Spi Interface Define Statements To Compile.. I Am Using The Basic C Compiler..

Anyone Familiar With The Program And Can Help Me..

Thanks
 
AllDigital

'Define spi_cs_port = PORTC
'Define spi_cs_bit = 0
'Define spi_sck_reg = PORTC
'Define spi_sck_bit = 3
'Define spi_sdi_reg = PORTC
'Define spi_sdi_bit = 4
'Define spi_sdo_reg = PORTC
'Define spi_sdo_bit = 5
'spiprepare


i commented the statements for now

let me know if i'm doing it wrong.
the PIC is 16F877A
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top