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

CCP1-interrupt and RS232-data

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jjude
Guest







CCP1-interrupt and RS232-data
PostPosted: Fri Apr 21, 2006 8:04 am     Reply with quote

Sorry bad english!
I measure RPM (tachometer) in CCP1-port falling edge interrupts (and timer1). This work OK, but when RS232 RX-pin comin data at same time,
RMP result is not stabil. I dont read RX-data, but GPS-module sen data every second. RS232 interrupts in disabled.
If i release RX caple, result is stabil.
Whereform result is not stabil?
What i can do?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 21, 2006 11:36 am     Reply with quote

Quote:
I dont read RX-data.
RS232 interrupts in disabled.
If i release RX caple, result is stabil.

So you don't have any getc() or fgetc() statements in your program ?

If not, then there should be no effect on the program operation
by the incoming RS-232 data.

So in that case, the problem could be electrical noise. Make sure
you have a good power supply and ground for the PIC.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group