Author |
Message |
Topic: fprint don´t work with array of characters |
biomo
Replies: 4
Views: 5902
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2012 9:40 am Subject: Thaks |
Thanks for all.
I thought that if I can send the final output format in a string from a PC and then save this in a EEPROM memory (or so), I could minimize then program memory (with no a priori des ... |
Topic: fprint don´t work with array of characters |
biomo
Replies: 4
Views: 5902
|
Forum: General CCS C Discussion Posted: Tue Mar 27, 2012 6:19 am Subject: fprint don´t work with array of characters |
Hi, in the manual (and in C ,in general), say about the function sprint (also sprintf):
Syntax: printf(string) or printf(cstring, values)...
Parameters: String (or CString) ia a constant string or ... |
Topic: Problems with RS232. Strange behavior |
biomo
Replies: 12
Views: 11435
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 6:08 am Subject: Problems with RS232. Strange behavior |
I found the answer. It is similar to the proposed Douglas with a buffered reading and management in the Main. Forgetting of the functions get_string () and gets (), which, in the end, are the ones tha ... |
Topic: Problems with RS232. Strange behavior |
biomo
Replies: 12
Views: 11435
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 2:42 am Subject: Problems with RS232. Strange behavior |
Thank for all,
Douglas, I will probe your recommendations.
if I undertand well, this maybe a program
byte s[20];
int cont=0;
# Int_rda / / INTERRUPCIÓN DE UART
void MyIntFuncti ... |
Topic: Problems with RS232. Strange behavior |
biomo
Replies: 12
Views: 11435
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 7:20 am Subject: Problems with RS232. Strange behavior |
The problem possibly with this is when you are doing the check
if (inst > 10)
you are making sure that you have the start of your data before reading the string, when you are not doing the check ... |
Topic: Problems with RS232. Strange behavior |
biomo
Replies: 12
Views: 11435
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 1:53 am Subject: Problems with RS232. Strange behavior |
Thank you for your interest.
I do not think the problem is the character string. Function get_string () is a function that comes with the examples of CCS in the file input.c. This function runs a rea ... |
Topic: Problems with RS232. Strange behavior |
biomo
Replies: 12
Views: 11435
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 9:26 am Subject: Problems with RS232. Strange behavior |
Hi, I have a question.
I am working with the PIC16F876A (4 MHz). The pic reads data from various analog sources through adc_read function () and send to PC via RS-232. So far so good.
The program a ... |
|