Author |
Message |
Topic: Using SIO program |
bill147
Replies: 2
Views: 3467
|
Forum: General CCS C Discussion Posted: Mon Jul 12, 2010 5:46 pm Subject: Using SIO program |
When using the SIO program there is a line call ASCII. I can type a line of text to send out the serial port when I click send. Is there any way to append a 'return' char at the end of the line of t ... |
Topic: Start up problem |
bill147
Replies: 6
Views: 12833
|
Forum: General CCS C Discussion Posted: Sat Oct 14, 2006 11:24 am Subject: Start up problem |
Some years ago I had this same problem. There was a note on the Microchip web site that said when using a crystal the 2 bypass capacitors should not be the same value. For example if you use a 18pf ... |
Topic: Mutiple RS232 Port problem !!! Help!! |
bill147
Replies: 1
Views: 4616
|
Forum: General CCS C Discussion Posted: Sat Jul 16, 2005 11:56 am Subject: Mutiple RS232 Port problem !!! Help!! |
I am not able to understand what your problem is.
I would offer comments as to your code.
I have tried to use external interrupt with a software serial port and could not get it to work for me.
... |
Topic: Multiple RS232 Port (16F877A) |
bill147
Replies: 3
Views: 5719
|
Forum: General CCS C Discussion Posted: Fri Jul 15, 2005 8:11 am Subject: Multiple RS232 Port (16F877A) |
One thing the errors keyword should only be used with Rdata stream since it is using the hardware port. The software port would not use errors.
I would reccomend using a timer function instead of ... |
Topic: Recent compiler versions broken ? |
bill147
Replies: 4
Views: 6999
|
Forum: General CCS C Discussion Posted: Fri Jul 15, 2005 7:43 am Subject: Recent compiler versions broken ? |
I have code that uses i2c and it does not work right with newer versions.
I have now found out why. The fast i2c speed is now faster than it was with compilers before 3.226. For instance the i2c_ ... |
Topic: CCS compiler/linker question |
bill147
Replies: 6
Views: 7062
|
Forum: General CCS C Discussion Posted: Sun Jul 10, 2005 7:49 pm Subject: CCS compiler/linker question |
I had a similar problem using printf when using a long int. The memory space used by printf was across a page break. By adding a dummy variable the memory space for the printf was changed.
This ... |
Topic: printf |
bill147
Replies: 3
Views: 6308
|
Forum: General CCS C Discussion Posted: Mon May 23, 2005 9:53 am Subject: printf |
I have found that this problem must be a bug in the Compiler.
When the printf(%03lu) does not work right the compiler has assigned to printf memory from 0xfc to 0x104. It is strange because printf ... |
Topic: printf |
bill147
Replies: 3
Views: 6308
|
Forum: General CCS C Discussion Posted: Fri May 20, 2005 9:28 am Subject: printf |
My program had been working.
I have a function where I delare 2 long int and when
I added 2 more long int to this function was when the
problem started.
The problem even caused %lu to not work ... |
Topic: printf |
bill147
Replies: 3
Views: 6308
|
Forum: General CCS C Discussion Posted: Thu May 19, 2005 4:56 pm Subject: printf |
I have the following problem using printf.
The device I am using is 18F252
Code example
long j;
j=244;
printf("%03lu",j);
The output I get is 4a0.
I have the proble ... |
Topic: Problem using i2c with 24lc256 |
bill147
Replies: 18
Views: 31877
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2004 1:05 pm Subject: Problem using i2c with 24lc256 |
What I meant was that there was a problem with the program code in the 16f870 that caused the problem.
Bill |
Topic: Problem using i2c with 24lc256 |
bill147
Replies: 18
Views: 31877
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2004 8:25 am Subject: Problem using i2c with 24lc256 |
I have now found my problem. The 16f870 processor had a problem which caused it output pulses to the eeprom every couple of seconds.
After this was corrected it all works fine now.
Thankyou for a ... |
Topic: Problem using i2c with 24lc256 |
bill147
Replies: 18
Views: 31877
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2004 1:34 pm Subject: Problem using i2c with 24lc256 |
I have used the code from the file 24256.c
It seems that from the posts that this is not good code.
I gather from what is written that the first i2c_write after the start bit should make sure an ACK ... |
Topic: Problem using i2c with 24lc256 |
bill147
Replies: 18
Views: 31877
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2004 10:34 am Subject: Problem using i2c with 24lc256 |
Thankyou for the replies.
My compiler version is 3.180
What makes this hard is that the unit runs ok for an hour or more before the problem shows up.
This unit has a LCD display that is used to s ... |
Topic: Problem using i2c with 24lc256 |
bill147
Replies: 18
Views: 31877
|
Forum: General CCS C Discussion Posted: Tue Oct 26, 2004 10:39 am Subject: Problem using i2c with 24lc256 |
I am using a 18f452 with a 24lc256 eeprom. The i2c code is basically from the 24256.c file except it is modified to do a sequencial read of 64 bytes.
The unit will run ok for several hours then wh ... |
|