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: PS/2 keyboard driver/decoder, interrupt driven, 16F and up
Dimlow

Replies: 14
Views: 135729

PostForum: Code Library   Posted: Tue Sep 30, 2008 10:44 am   Subject: Parity bit
I think the parity bit in the send byte is wrong. Your Sending and even parity, not and odd parity!!! Probably why it don't work on all keyboards
output_bit(DATA, p&0x01);

should read ...
  Topic: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
Dimlow

Replies: 17
Views: 153262

PostForum: Code Library   Posted: Wed Jan 09, 2008 1:24 pm   Subject: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
No Comments ?

Gary
  Topic: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
Dimlow

Replies: 17
Views: 153262

PostForum: Code Library   Posted: Wed Jan 02, 2008 1:29 pm   Subject: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
Just wanted to add that if you look close at the READ FROM PORT and WRITE TO PORT line in these figures it explains it all. Also the note on the bottom of figure 12 Transfer of data can be stopped at ...
  Topic: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
Dimlow

Replies: 17
Views: 153262

PostForum: Code Library   Posted: Wed Jan 02, 2008 1:17 pm   Subject: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
I interpreted from figure 11(Write) that data 1 is valid after the Acknowledge from the slave and is valid until the data2 acknowledge after this data2 is valid.

As for figure 12 (Read) this tells ...
  Topic: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
Dimlow

Replies: 17
Views: 153262

PostForum: Code Library   Posted: Tue Jan 01, 2008 7:13 pm   Subject: i2c routines for dallas ds1624, philips pcf8574, and 24cXX
In this section of code, can you explain why you read and write the data twice


i understand the io_field=i2c_read(0); but why the io_field=i2c_read(); ???

int i2c_pcf8574_get_io(int de ...
  Topic: Output assumption
Dimlow

Replies: 4
Views: 4905

PostForum: General CCS C Discussion   Posted: Sun Nov 25, 2007 3:29 pm   Subject: Output assumption
because the compiler set the tris for you automatically see #use standard_io in the manual.

Gary
  Topic: USB and I2C Wont work at that same time.
Dimlow

Replies: 16
Views: 14919

PostForum: General CCS C Discussion   Posted: Sun Nov 25, 2007 3:24 pm   Subject: USB and I2C Wont work at that same time.
Just thought id give a little update and some info for people that may get stuck with this them self's.

In my main code, not the test code i was still having trouble with the usb, where on some com ...
  Topic: Question about glcd_text57 routine
Dimlow

Replies: 11
Views: 20194

PostForum: General CCS C Discussion   Posted: Sat Nov 24, 2007 7:05 am   Subject: Question about glcd_text57 routine
Yep will do, i was assuming you would reuse the text variable for other texts.

Gary
  Topic: Question about glcd_text57 routine
Dimlow

Replies: 11
Views: 20194

PostForum: General CCS C Discussion   Posted: Sat Nov 24, 2007 4:13 am   Subject: Question about glcd_text57 routine
try something like this


adc_value=read_adc();
volts=(float)(adc_value*5)/1023.0;
sprintf(text,"%04.3fv %4LU Value",old_volts,old_adc ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group