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.

PIC16F877A & AD5301 using I2C protocol in assembly

Status
Not open for further replies.

kimo128

Newbie level 1
Joined
Oct 8, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hello team,

I'm trying to communicate two devices using I2C protocol in assembly: PIC16f877A and AD5301.

I have simulated my assembly code in proteus 7.9 sp1 and it works fine but physically does not.

I thought it was my pcb but it isn't: I proved another program in CCS C language in the same pcb and componentes and it works very well, the DAC gives me voltaje values, etc.

This is very weird because I have prove that my physical stuff works fine with my program in C language but when I load the assembly code that works fine in simulation, it simply don't.

I would appreciate any help you can provide, thanks!!!

See attachments.
 

Attachments

  • i2c_ccs.txt
    814 bytes · Views: 43
  • i2c_assembly.txt
    2.3 KB · Views: 53
  • proteus.JPG
    proteus.JPG
    103.7 KB · Views: 50

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top