CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 9 matches
CCS Forum Index
Author Message
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 4:06 pm   Subject: LM75 Addressing Problem
1. Remove the first LM75 chip from the bus, physically, so that only
the 2nd chip is present.

All of my tests have been conducted with a single LM75 which I just change pin A0 on. There have not ...
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 3:29 pm   Subject: LM75 Addressing Problem
From looking at the spec. sheet it seems as though the base address(lowest) would be 0x90. You have assigned the variable, LM75_BASE_ADDRESS to a value of 72 which is HEX 0x48. The possible addresses ...
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 3:20 pm   Subject: LM75 Addressing Problem
Made those changes; same results.

Thanks a lot for the help/pointers by the way. It is much appreciated.
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 2:45 pm   Subject: LM75 Addressing Problem
Here's a sample program:

#include <16F877A.h>
#device ICD=TRUE
#device adc=8

#fuses HS,WDT,NOPROTECT,NOLVP,PUT //No Watch Dog Timer
#FUSES
#use delay(clock=20000000&# ...
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 2:30 pm   Subject: LM75 Addressing Problem
You're assuming
that the expression of (Data & 1024) is automatically converted
to a boolean (0 or 1), and it's not

I thought in C 0 is false and anything >0 is true?

Edit: Oops - I s ...
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 1:59 pm   Subject: LM75 Addressing Problem
That change didn't fix my problem.

Here are my constants:

#define LM75_BASE_ADDRESS 72
#define LM75_TEMP_REG 0
#define LM75_CONFIG_REG 1
#define LM75_HYSTERESIS_REG ...
  Topic: LM75 Addressing Problem
jleblanc

Replies: 14
Views: 19815

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 12:48 pm   Subject: LM75 Addressing Problem
Hello,

I'm trying to develop some code that will allow me to talk to multiple LM75 temperature sensors on an I2C bus. The problem I'm having though is my code will only communicate with an LM75 at ...
  Topic: For loop compiler bug
jleblanc

Replies: 2
Views: 4832

PostForum: General CCS C Discussion   Posted: Wed May 17, 2006 1:27 pm   Subject: For loop compiler bug
Addendum:

I noticed what was wrong. I needed to add the "signed" keyword infront of x's declaration. However what I find puzzling is how without this keyword the application would count negative nu ...
  Topic: For loop compiler bug
jleblanc

Replies: 2
Views: 4832

PostForum: General CCS C Discussion   Posted: Wed May 17, 2006 1:17 pm   Subject: For loop compiler bug
I'm having a problem with a particular for loop in one of my programs and I think it is a problem with the compiler. The for loop is supposed to count backwards from 4 to 0; however what ends up happe ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group