Jump to content
43oh

Recommended Posts

i am using IAR an the code is from parts of other codes. It has a lot of comments to make it easier to understand. the problem came up when i put this line;

void tmp175_Config(Address, Config_Register, 0xE1);

 

I know that i migth be making some silly mistake with the definitions, the variables types or something like that, but well i can not see it... :oops:

 

by the way, this "library" is faaaaaaarrrrr from finished, and i dont

TMP175.rar

Link to post
Share on other sites

I can't see anything wrong with your code, aside from a non-traditional use of the USIIFG flag to force an interrupt.

 

I'unno. Just one of those weird things, I guess. If you could post the code you were trying to use when the error is thrown, I might be able to help a bit more, but as of now, I'm stumped.

Link to post
Share on other sites

I fix it!!! one of the functions works (at list the simulation), for the other one i will have to change the state machine, I took that part of the code from other file and instead of making me the things easier it turn the code a mess. I'll give it a shot in a couple of days ( I've had enough for today), the thing is that if i try to implement other functions it will be getting worst and worst...

So my choices are:

to use the same structure with the state machine, starting from scratch with my own code(the hard way, it will take a while)

or use the TI I2C library(the easy way)

 

thank you all for the help

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...