Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC I2C Proteus Simulation

Status
Not open for further replies.

vvmm

Newbie level 5
Newbie level 5
Joined
Jun 20, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bucharest, Romania, Romania
Visit site
Activity points
1,363
Hi,

I am new to I2C communication and I studied Microchip's documentation and some tutorials online. I need to make 2 PICs communicate with each-other (master-slave). In this basic first scenario I have two buttons at the master, ON and OFF. When I press them I want to drive the LED from the slave PIC. I send one byte: 0xAB for ON, 0xBA for OFF. The simulation seems to work, but not all the time, and sometimes doesn't work at all or intermittent. I have attached the Proteus project if someone can help me with at least a hint.

Follow-up question for I2C: Does the MSSP module automatically send ACKs? Is my implementation in the attached project correct? (I didn't check for SSPOV, BF, WCOL conditions because I assumed they don't happen in my scenario)

Thanks,
Mihai
 

Attachments

  • I2C.zip
    56.6 KB · Views: 86

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top