I see pins 4 and 5 toggling, but pin 2 doesn't do anything. Does someone know why?
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
Posted: Tue Nov 14, 2017 11:19 am
A quick look at the datasheet says that if bit T0CS are set (default value) then it overrides the TRIS registers anf the pin are an input. Try clearing the T0CS bit in the OPTIONS register.
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