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

Odd setup_ccp1

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



Joined: 22 Feb 2007
Posts: 55

View user's profile Send private message

Odd setup_ccp1
PostPosted: Thu Jun 04, 2009 1:53 am     Reply with quote

Hello friends

I will just inform something odd I have observed in setup the CCP1 module.
I have wasted hours of solving a problem why my capture sometimes failed.
I'am an old ASM-programmer and I always have re-initialized my active modules in every program turnaround.
I this case I have re-initialized my CCP1 module and the list file shows:
Code:
.................... setup_ccp1(CCP_CAPTURE_RE);//Capture on rising edge
06F6:  CLRF   FBD
06F8:  MOVLW  05
06FA:  MOVWF  FBD
06FC:  CLRF   FB7

As you can see the the CCP1CON is first cleared before it's setup again.
This leaving a small time where the capture is not working, which where giving me a problem.
I'am wondering why CCS have done so in their translation.
I hope that I can save other programmers of wasting time of this problem with this information.
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