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 33 matches
CCS Forum Index
Author Message
  Topic: need help with 24FC256 I2C EEPROM
pdswar

Replies: 8
Views: 11130

PostForum: General CCS C Discussion   Posted: Fri Oct 06, 2006 8:34 am   Subject: need help with 24FC256 I2C EEPROM
Ttelmah and rnielsen,

Thank you very much.

I tied A0 and A1 pins to GND while A2 is pulled high.

It is working now.

Have a nice weekend.
  Topic: need help with 24FC256 I2C EEPROM
pdswar

Replies: 8
Views: 11130

PostForum: General CCS C Discussion   Posted: Mon Oct 02, 2006 12:04 pm   Subject: still not working
Thank you Ttelmah and ckielstra for replying.

I have changed address in read mode to 0xA3 and also the oscillator setting to 4MHz. (even though I2C Temp Sensor works fine at 16MHz)

Now, the data ...
  Topic: need help with 24FC256 I2C EEPROM
pdswar

Replies: 8
Views: 11130

PostForum: General CCS C Discussion   Posted: Mon Oct 02, 2006 8:33 am   Subject: need help with 24FC256 I2C EEPROM
I am using PIC 18F6722 and 24FC256 I2C EEPROM.

http://ww1.microchip.com/downloads/en/DeviceDoc/39646b.pdf
http://ww1.microchip.com/downloads/en/devicedoc/21203N.pdf#search=%2224FC256%22

*****P ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Mon Sep 18, 2006 7:35 am   Subject: need help with TC74 digital thermal sensor
Not reading the datasheet for TC74 was the source of my errors. I am using TC74A0-5.0VCT but I was copying codes written for TC74A5-5.0VCT

Everything worked when I replaced

i2c_start();
i2c_w ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Mon Sep 11, 2006 2:00 pm   Subject: need help with TC74 digital thermal sensor
jspencer,

Sorry about the confusion. What I meant was that if I replace
if(temp==-1) statement with if(temp>0) the buzzer still beeps.
That problem has been fixed with PCM Programmer's code. ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Mon Sep 11, 2006 11:50 am   Subject: need help with TC74 digital thermal sensor
I changed the data type from 'int8' to 'signed int8'

My buzzer still beeps at (temp==-1) but it doesnot beep at (temp>0) as it did with temp datatype as 'int8'.

void main()
{
signed int8 te ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Mon Sep 11, 2006 8:55 am   Subject: need help with TC74 digital thermal sensor
PCM Programmer, thank you for your help.

No, I do not have RS232 support to send/display Temperature data to any Display unit or LCD like in PIC DEM2 PLUS board.

I am using TC74 SOT-23 which is ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Sun Sep 10, 2006 2:56 pm   Subject: need help with TC74 digital thermal sensor
Asmallri, thank you for your help.

The problem I have now is that my Temp. Sensor reads -1 Celsius when room temperature is 75 F (23.8 Celsius). i.e. the buzzer beeps when (temp==-1) when I use the ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Fri Sep 08, 2006 8:23 am   Subject: data conversion/comparision problem
I added pull-up resistors to SCL and SDA signals and I am using hardware I2C module to read temperature from TC74. I believe my code is working as I can see SCL and SDA signals in my oscilloscope (I m ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Fri Sep 01, 2006 2:46 pm   Subject: need help with TC74 digital thermal sensor
Ttelmah,

Thank you very much.

Now, I see where the problem is.
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Fri Sep 01, 2006 2:40 pm   Subject: update
Unlike PICDEM 2 PLUS DEMO BOARD, I do not have pull-up resistors connected to PIN_D5 and PIN_D6 (FP_SDA and FP_SCL signal respectively)

Is this the source of my problem?
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Fri Sep 01, 2006 2:16 pm   Subject: update
I changed

#use i2c(master, scl=FP_SCL, sda=FP_SDA)

to

#use i2c(master, scl=FP_SCL, sda=FP_SDA, FORCE_HW) //FORCE_HW=Use Hardware I2C functions

Yet, no results. No signals seen at FP_SCL ...
  Topic: need help with TC74 digital thermal sensor
pdswar

Replies: 15
Views: 43049

PostForum: General CCS C Discussion   Posted: Fri Sep 01, 2006 12:33 pm   Subject: need help with TC74 digital thermal sensor
I am using PIC 18F6722, TC74A0-5 and a CUI CEM1206 magnetic buzzer along with CCS C compiler and MPLAB IDE. I am trying to beep a buzzer whenever temperature goes above 40 F.

Here is my code:
---- ...
  Topic: need help with PIC18F6722 ISR setup_timer_0()
pdswar

Replies: 6
Views: 8147

PostForum: General CCS C Discussion   Posted: Wed Aug 23, 2006 9:16 am   Subject: need help with PIC18F6722 ISR setup_timer_0()
Thanks everyone,

My code is working now.
  Topic: porting codes from Microchip C18 compiler to CCS C Compiler
pdswar

Replies: 3
Views: 6105

PostForum: General CCS C Discussion   Posted: Mon Aug 21, 2006 3:33 pm   Subject: porting codes from Microchip C18 compiler to CCS C Compiler
Thank you PCM Programmer

Replaced 'byte' with 'data'.

No ERRORS
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group