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
TMR0 (T0CKI) PIC Pin
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: TMR0 (T0CKI) PIC Pin
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
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
- 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
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.
Yes that sounds good to me. You should therefore be able to use the pin for your own purposes without effecting the running timer.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel