Author |
Message |
Topic: TIMEOUT |
gordon111
Replies: 5
Views: 5535
|
Forum: General CCS C Discussion Posted: Thu Aug 30, 2007 12:52 am Subject: TIMEOUT |
I am trying to create a timeout. When the lights is switched on it must stay on for 30 minutes and then go off, but it doesnt seem to work kan anybody pleas help me my code is as follows
// Tim ... |
Topic: -> operator |
gordon111
Replies: 1
Views: 3912
|
Forum: General CCS C Discussion Posted: Wed Aug 22, 2007 3:05 pm Subject: -> operator |
Can anyone please give me a hint as what this operator (->) does...for example.
if(cb->buf[0] == readDips()) // Valid Address
{
switch(cb->buf& ... |
Topic: LCD and PIC16 |
gordon111
Replies: 1
Views: 4713
|
Forum: General CCS C Discussion Posted: Tue Aug 21, 2007 9:31 am Subject: LCD and PIC16 |
Hey all,
I am new with programming LCD screens. I need to connect a LCD screen to a pic16 and output a values between 0 - 30 can anyone give me a hint on how to do this.
Will this be done by us ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Fri Jul 13, 2007 4:38 am Subject: DS1775 |
After a weeks, reading, thinking, cutting and trying. The ds1775 finally works and is also very accurate. Thanks for all the help! |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Thu Jul 12, 2007 3:11 am Subject: DS1775 |
Hey,
Can anybody maybe help me understand what this part of the ds1631 driver does?
Please? I am trying to convert the driver for the ds1775, it seems to respond to this code, but its not that ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Thu Jul 12, 2007 2:14 am Subject: DS1775 |
I know that, and then still the same values was returned so i used 4x, but i am trying something new.
Hope it works. |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Wed Jul 11, 2007 7:41 am Subject: DS1775 |
Hey - thanks again for the reply,
i did setup the tris registers, i just didn't post it in the code. And the magical numbered pins - pure desperation, it is PIN_C4 and PIN_C3.
Still the only va ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2007 10:01 am Subject: DS1775 |
Hey
I cannot use the single byte read becaues i have to read two bytes, so i will have to use multiple read?
So my first code was correct, but i still get the wrong values.
0x80...
When i ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 2:18 pm Subject: DS1775 |
So the code will look much like this --->
unsigned int16 read_ext_temp()
{
unsigned int16 temp;
i2c_start();
i2c_write(0x90); // write the co ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 1:55 pm Subject: DS1775 |
Thanks for all the help,
If i may ask, can you maybe tell me way must i not use the read multiple bytes from current pointer location, because that is what i am currently doing |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 1:23 pm Subject: DS1775 |
Hey,
I understand, but if i use CCS commands i get the wrong values
unsigned int16 read_ext_temp()
{
unsigned char High_byte;
unsigned char Low_byte;
i2c_start(& ... |
Topic: DS1775 |
gordon111
Replies: 16
Views: 22250
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 12:20 pm Subject: DS1775 |
Hey,
I am trying to save the temprature values by using the i2c bus. I need help, because i am reading the wrong values, will it be wise to re-write the i2c_write and read functions for better fun ... |
Topic: eeprom! |
gordon111
Replies: 12
Views: 14182
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 12:15 pm Subject: eeprom! |
Hey,
Thanks for all the help, it finally work.I wrote the wrong control byte,
A2 = 0, A1 = 0 and A0= 0 was accually all pulled up high to VCC
Thanks again for all the help.
Gordon |
Topic: eeprom! |
gordon111
Replies: 12
Views: 14182
|
Forum: General CCS C Discussion Posted: Fri Jul 06, 2007 8:05 am Subject: eeprom! |
Thank you again for the advice, this was an obvious error, unfortuanetly this didn't fixs the problem! |
Topic: eeprom! |
gordon111
Replies: 12
Views: 14182
|
Forum: General CCS C Discussion Posted: Fri Jul 06, 2007 5:32 am Subject: eeprom |
Hey,
Obvious and well noted comment, thanx, but i checked i have 2k7 pull up to Vcc on both! |
|