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.

STAT_BF not being set in 877 after data income

Status
Not open for further replies.

insaniac

Newbie level 6
Joined
Sep 6, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Argentina
Activity points
1,441
Hi, I have a strange problem with the i2c comunnication between a PIC18F452 and a PIC 16F877A. I'm using a ICD2 to debug the application so I have a certain control over then registers involved in the comunnication.
The probleme appears to be the BF bit of the SSPSTAT resgiter. It is not being set after the income of a new data.
I'm checking the SSPBUF for data income and it is arriving as is espected but the BF bit is not being set and my control algorithm is unable to perform any action because it uses that bit in a dependent fashion (check microchip's AN734).
I'm checking the BF bit before any SSPUBF reading!!!! that's the weird behaviour!!

Any comments or suggestions would be appreciated!!

Thank you all.

Added after 20 minutes:

Could be the ICD2 that is reading and clearing the MCU registers when I debug the application??
I have to discover what's going on before I get mad!!!
 

Hi,

There is a problem with AN734 when using the PIC as a master ( i think thats what you are trying to do ). There is a web site that explaines this, but i dont have the link now with me ( its back in the office, sorry ). try to google it, if you cant find it, PM me and i will post it here.

Good luck.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top