Page 1 of 1
TMR0 (T0CKI) PIC Pin
Posted: Wed Nov 11, 2009 8:59 pm
by Ron
Hi,
In the TMR0 macro we select internal clock or pin on pic.
We then select low to high or high to low.
If I am using the internal CLK0 option (timer mode, not counter mode) can I still use the T0CKI pin on the PIC as a DI/DO without affecting the timer function?
Thank you,
Ron
Re: TMR0 (T0CKI) PIC Pin
Posted: Thu Nov 12, 2009 9:05 am
by Benj
Hi Ron
Yes if you have assigned the timer0 with the CLKO clock input then the T0CKI pin is free for your I/O purposes. On some targets the T0CKI pin cannot source current so a 4.7K -10K pullup to 5v is required if you need to be able to output a logic 1. The datasheet will give you more info on this in the porta, port I/O section.
Re: TMR0 (T0CKI) PIC Pin
Posted: Mon Nov 16, 2009 12:38 am
by Ron
Hi,
Here is the line from the data sheet you are talking about Ben.
The RA4/T0CKI/C1OUT pin is a Schmitt Trigger input. All other PORTA pins have TTL input levels. All PORTA pins have full CMOS output drivers.
This means it can sink or source as normal, correct??
Thanks
Ron
Re: TMR0 (T0CKI) PIC Pin
Posted: Mon Nov 16, 2009 9:09 am
by Benj
Hi Ron
Yes that sounds good to me. You should therefore be able to use the pin for your own purposes without effecting the running timer.