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

PIC16F1619 Timer2 HLT

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



Joined: 26 Sep 2020
Posts: 55

View user's profile Send private message

PIC16F1619 Timer2 HLT
PostPosted: Mon Sep 20, 2021 12:06 am     Reply with quote

Hello!
Is it possible to tie the output "TMRx_postscaled" from Timer2 to an external pin without using a logic cell. Logic cells are used for other purposes.
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Mon Sep 20, 2021 12:46 am     Reply with quote

Don't think so.
Obviously with a lot of overhead, you could just generate a pulse in a
routine using TMR2IF, but there doesn't seem to be any way to output
this signal, except using the CLC.
dmitrboristuk



Joined: 26 Sep 2020
Posts: 55

View user's profile Send private message

PostPosted: Mon Sep 20, 2021 1:04 am     Reply with quote

Thanks. I had the idea to try to use PWM3 or CCP in PWM mode for this purpose in a duty cycle close to 1, but here need to experiment, since it is not completely clear how PWM will perceive a single pulse mode.
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Mon Sep 20, 2021 6:18 am     Reply with quote

Yes, A PWM, was a thought I had, but of course the minimum count
would be two, so half the frequency of this clock.
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