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 7 matches
CCS Forum Index
Author Message
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 1:35 pm   Subject: problem to receive uart message correctly
PrinceNai, thanks for the help.
With getc() and the correct buffer size all working now.

Also thanks to Ttelmah and temtronic for the help.
Here is the final code:




#include <teste3.h& ...
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 10:54 am   Subject: problem to receive uart message correctly
I really don't know, I'd never do it that way. Why using two names for the same thing? Does BUFF=0 clear idx? The way I understand it, it clears the interrupt flag. My guess would be you are staying ...
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 9:38 am   Subject: problem to receive uart message correctly
PrinceNai, thanks for answer.

i changed to test, with 5 have the same problem.
i put BUFF=0 to clear. This is not correct?

#BIT BUFF = getenv("bit:U4RXIF")

thanks for help
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 9:20 am   Subject: problem to receive uart message correctly
PrinceNai, thanks for answer.
I included that.

thanks for all the help so far. now works almost correctly.
the code this now:


#include <teste3.h>

unsigned char buffer[5]; ...
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 8:22 am   Subject: problem to receive uart message correctly
temtronic thanks for answer.
going to remove and try.

thanks

Ttelmah, i am reading ex_sisr, going to make some changes and try also.

thanks
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 8:03 am   Subject: problem to receive uart message correctly
Thanks Ttelmah for answer.

I have tested with the read receive character in the INT_RDA and the idx stays in 1, and didn't receive all the message.
this:


#INT_RDA4
void rda_isr(void ...
  Topic: problem to receive uart message correctly
diogodpg1

Replies: 13
Views: 29703

PostForum: General CCS C Discussion   Posted: Sun Jun 19, 2022 7:24 am   Subject: problem to receive uart message correctly
hi.
I am trying to receive uart data from a Nextion display.
I am new to this so i search forums and datasheet, made a lot of codes and this is the best i got so far:


#include <teste3.h> ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group