Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Let me guess - you were using RB0 because of the external 'INT' (interrupt). On that device you can't reassign functions to pins so you will need to use some other technique to detect the changes. It might be a little easier as you can only use the INT signal to detect either a raising edge or a falling edge (i.e. you can detect that a pulse appears but not how long for).
RA4 does NOT have 'interrupt on change' capability so any pulse detection (i.e. change of state on the pin) will have to come from you constantly monitoring the state of the pin and detecting the changes in software - won't let your MCU do much else then!
So yes, it is possible but there are many, MANY other factors that need to be taken into account before you can decide if it is practical.
Susan
Hi,
I want to use the input RA4 input.
I try several times I can not activate it.
to realize a led tachometer.
I am looking for a code example that uses this input RA4 on pic16f84.
frequency between 1 Hz to 300 Hz,
max.
Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.