TMR0 (T0CKI) PIC Pin

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

TMR0 (T0CKI) PIC Pin

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: TMR0 (T0CKI) PIC Pin

Post 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.

Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Re: TMR0 (T0CKI) PIC Pin

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: TMR0 (T0CKI) PIC Pin

Post 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.

Post Reply