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 29 matches
CCS Forum Index
Author Message
  Topic: SMBus / I2C Problem
JeffLewcock

Replies: 32
Views: 55209

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 3:19 pm   Subject: SMBus / I2C Problem
Hi PCM

I cant remember why this was but there are nearly 50 of these systems in the field all working with no reported problems

See earlier discussion

Jeff
  Topic: SMBus / I2C Problem
JeffLewcock

Replies: 32
Views: 55209

PostForum: General CCS C Discussion   Posted: Mon Dec 22, 2014 2:52 pm   Subject: SMBus / I2C Problem
Hi,

I had to restore a backup to find my original IR reader program.

My pullups were 3K3 or 3K0 from memory

As I said on the original post, be very carefull with decoupling keep cap real clos ...
  Topic: StrFnd Function
JeffLewcock

Replies: 5
Views: 7650

PostForum: General CCS C Discussion   Posted: Wed Jan 30, 2013 3:46 pm   Subject: StrFnd Function
I made a mistake, I assumed strfnd was the same as strfind I don't think it is

as strfnd is defined in the program thus

////////////////////////////////////////////////////////////////////////// ...
  Topic: StrFnd Function
JeffLewcock

Replies: 5
Views: 7650

PostForum: General CCS C Discussion   Posted: Wed Jan 30, 2013 3:28 pm   Subject: StrFnd Function
Hi Temtronic

No I dont think you're missing anything thats what I though.

I cannot find a good explanation of the strfnd function so cant see what the p1+1 bit is doing either

The code is fro ...
  Topic: StrFnd Function
JeffLewcock

Replies: 5
Views: 7650

PostForum: General CCS C Discussion   Posted: Wed Jan 30, 2013 3:07 pm   Subject: StrFnd Function
Not sure if this question is really for this forum but here goes

I need but cannot find a good description of strfnd in string.h

I'm trying to work out how it is used in this code snippet

p1 ...
  Topic: (SOLVED) Problem reading data from RS232
JeffLewcock

Replies: 11
Views: 13421

PostForum: General CCS C Discussion   Posted: Tue Jan 29, 2013 5:11 am   Subject: (SOLVED) Problem reading data from RS232
Thanks Guys !

I have solved the problem, one of the cables I was using crossed pins 2 and 3 on the DB9

Feel a bit silly now ! Embarassed

jeff
  Topic: (SOLVED) Problem reading data from RS232
JeffLewcock

Replies: 11
Views: 13421

PostForum: General CCS C Discussion   Posted: Mon Jan 28, 2013 12:42 pm   Subject: (SOLVED) Problem reading data from RS232
Hi Ttelmah

Thanks for your input, I did realise this but could not work out whether somehow kbhit was being ignored so added the "interrupted" flag as a double check.

The weird thing i ...
  Topic: (SOLVED) Problem reading data from RS232
JeffLewcock

Replies: 11
Views: 13421

PostForum: General CCS C Discussion   Posted: Mon Jan 28, 2013 10:15 am   Subject: (SOLVED) Problem reading data from RS232
Sorry Example code removed !!!
Brain not in gear.

I have transmitted data from both streams to the PC terminal both streams have level shifting hardware.

I have changed the example EX.SISR.c to ...
  Topic: (SOLVED) Problem reading data from RS232
JeffLewcock

Replies: 11
Views: 13421

PostForum: General CCS C Discussion   Posted: Mon Jan 28, 2013 9:33 am   Subject: (SOLVED) Problem reading data from RS232
I am trying to program a device to control a clock using GPS input for time.
I am having a problem getting data from the 232 I have read all the posts regarding this but cannot get even the simplest ...
  Topic: Melexis 90615 connection problem
JeffLewcock

Replies: 49
Views: 45141

PostForum: General CCS C Discussion   Posted: Sat Jan 21, 2012 5:29 pm   Subject: Melexis 90615 connection problem
As Ttelmah has said, you need to left shift the address by one bit, multiplying by 2 does this in my code. You can just shift if you want

As I said this is a small part of a much larger program mat ...
  Topic: Melexis 90615 connection problem
JeffLewcock

Replies: 49
Views: 45141

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 2:11 pm   Subject: Melexis 90615 connection problem
Hi Marco

If you are going to copy my code from this post

http://www.ccsinfo.com/forum/viewtopic.php?t=45147&highlight=mlx90615

You should really have read it !! I was asking for help for ...
  Topic: Melexis 90615 connection problem
JeffLewcock

Replies: 49
Views: 45141

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 1:53 pm   Subject: Melexis 90615 connection problem
Hi Marco

Here is my code for reading the MLX90615

I was able to access it from home !


int8 TempLSB,TempMSB,PEC;
int16 TempRAW;
float Temperature;

float MLX90615_Read_Device_Temp(in ...
  Topic: Melexis 90615 connection problem
JeffLewcock

Replies: 49
Views: 45141

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 1:38 pm   Subject: Melexis 90615 connection problem
Hi Marco

First as someone has already pointed out the PIC should be a 3.3v type I'm not entirley sure that is will work with a 5v PIC

The second from memory there was a "GOTCHA" in the ...
  Topic: MS5607B Calculations
JeffLewcock

Replies: 11
Views: 14348

PostForum: General CCS C Discussion   Posted: Wed May 18, 2011 3:36 pm   Subject: MS5607B Calculations
Hi Ttelmah

I will look into the "pow" operator !

Thanks
Jeff
  Topic: MS5607B Calculations
JeffLewcock

Replies: 11
Views: 14348

PostForum: General CCS C Discussion   Posted: Wed May 18, 2011 3:19 pm   Subject: MS5607B Calculations
HI Ttelmah

I have tried casting the multiplier as int32 and float

but both ways the answer is incorrect the correct answer is 5764677632


Offset = ((float)C[1] * (flo ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group