The pin will have 1/4 of the PIC clock speed on it...
say the PIC is running at 4MHz, then the pin will have a 1MHz square wave as seen with an oscilloscope. It could be used as a 'clock source' for external peripherals or say another PIC.
Most PIC I/O pins have several uses, so you'll have to choose IF you want that function.
Joined: 04 Jun 2017 Posts: 110
Posted: Mon Jul 05, 2021 8:16 pm
You beat me to it about pin being multiplexed.
Datasheet pin description also says this.
For that pin 4
Clock input to TMR0
Seems like that would take some work on control register.
Timer0 module. To make it clock in. _________________ PIC Hobbyist
Joined: 11 Mar 2010 Posts: 18068
Posted: Tue Jul 06, 2021 7:21 am
You almost never have to touch a register in CCS.
To set that pin to be a clock input, you use the setup_timer_0 function,
with the setting T0_EXT_L_TO_H (or H_TO_L).
This sets it to clock on the high or low edge of the clock applied to this
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