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 40 matches
CCS Forum Index
Author Message
  Topic: I2C writing errors
aodj

Replies: 9
Views: 8361

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 10:18 am   Subject: I2C writing errors
That seems to have solved the issue for the most part. I'm still getting the occasional erroneous reading, but no where near the amount I was getting before.
  Topic: I2C writing errors
aodj

Replies: 9
Views: 8361

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 8:29 am   Subject: I2C writing errors
void write_ee(int8 v1, int8 v2) // Overloaded (int8 version)
{
write_eeprom(v1, v2); // location, data
fClear();
}

void write_ee(int8 v1, int16 v ...
  Topic: I2C writing errors
aodj

Replies: 9
Views: 8361

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 5:04 am   Subject: I2C writing errors
Having to do modifications to someone else's code is always a difficult job. In this situation you are really unlucky as it looks like the code was written by a beginner.
Well the previous coder was ...
  Topic: I2C writing errors
aodj

Replies: 9
Views: 8361

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 4:16 am   Subject: I2C writing errors
I'm using compiler version 4.016 and the 2401.c that comes with it, unmodified.

The reason I have a the ext_eeprom_ready tests is so that if the chip isn't ready to receive, it would just loop inde ...
  Topic: I2C writing errors
aodj

Replies: 9
Views: 8361

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 2:19 am   Subject: I2C writing errors
I'm attempting to create a backup routine to store values from and then restore to my EEPROM, by using a 24LC01B external chip.

However, I'm getting erroneous 0xA0 and 0xA1 (the start and stop bits ...
  Topic: Menu/UI
aodj

Replies: 6
Views: 6197

PostForum: General CCS C Discussion   Posted: Thu Jul 12, 2007 7:06 am   Subject: Menu/UI
Ok, let me explain.

As I said in my opening post, I have a 3 digit, 7 segment display. Now, I can display any number of characters to it, and have a working menu system that makes use of four push ...
  Topic: Menu/UI
aodj

Replies: 6
Views: 6197

PostForum: General CCS C Discussion   Posted: Wed Jul 11, 2007 7:59 am   Subject: Menu/UI
That code appears to be written to make use of an LCD.
  Topic: Menu/UI
aodj

Replies: 6
Views: 6197

PostForum: General CCS C Discussion   Posted: Wed Jul 11, 2007 1:38 am   Subject: Menu/UI
I don't understand what you mean by modal. The hardware for this menu I understand, it's simply the software that I'm having some concerns about, since my switch statement becomes quite elaborate, wit ...
  Topic: Menu/UI
aodj

Replies: 6
Views: 6197

PostForum: General CCS C Discussion   Posted: Wed Jul 04, 2007 1:59 am   Subject: Menu/UI
I have a display comprised of a 3 character, 7 segment display. The UI i'm building into the product at the moment is based around a switch/case statement, where, by pressing a button, a value increme ...
  Topic: Pointers
aodj

Replies: 8
Views: 7867

PostForum: General CCS C Discussion   Posted: Tue Jun 05, 2007 2:32 am   Subject: Pointers
After some more digging, and excessive use of the simulator, I've narrowed my problem down to one command, in so far as I can tell.

void fIncrement(signed int16 vPrimary, signed int16 vCPrimary ...
  Topic: Pointers
aodj

Replies: 8
Views: 7867

PostForum: General CCS C Discussion   Posted: Thu May 31, 2007 4:33 am   Subject: Pointers

signed int16 v1;
int16 *v2 = &v1 ;

v1 = -1;



So *v2 is really a pointer.
v2 contain the addresses of v1.
*v2 give the value of v1;

What you've written above should be r ...
  Topic: Pointers
aodj

Replies: 8
Views: 7867

PostForum: General CCS C Discussion   Posted: Thu May 31, 2007 4:02 am   Subject: Pointers
Even if i use it as an int16, it still loses the leading 8 bits of the data.

What I think is happening, is the contents is being cast to an int8, and then recast to an int16.
  Topic: Pointers
aodj

Replies: 8
Views: 7867

PostForum: General CCS C Discussion   Posted: Thu May 31, 2007 3:53 am   Subject: Pointers
I'm currently dealing with some pointers and I've ended up with the following scenario:

Variable v1 is a signed int16, and contains -1 or 11111111 11111110.
Variable v2 is a signed int16 also.

...
  Topic: Incorrect addition
aodj

Replies: 9
Views: 6985

PostForum: General CCS C Discussion   Posted: Thu May 17, 2007 1:34 am   Subject: Incorrect addition
Whilst the code you posted allows me more flexibility when it coems to handling different data types, my grasp of C isn't enough for me to totally understand what you wrote.

So it may be more versa ...
  Topic: Incorrect addition
aodj

Replies: 9
Views: 6985

PostForum: General CCS C Discussion   Posted: Wed May 16, 2007 4:35 am   Subject: Incorrect addition
The application is thus:

I'm writing a subroutine which handles increments in a range for a temperature sensing and handling unit.

The subroutine works for both fahrenheit and celsius scales, be ...
 
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