Detecting rising edge

Status
Not open for further replies.

dope40

Member level 4
Joined
Oct 3, 2011
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Bulgaria
Activity points
1,777
Hi , i'm building a tachometer for school and its using 5v pulses, and i need to :
1 count the rising edges in 1/10 of a second
2 multiply the result by 600 so i get the rev/min
3 display the result on a 16x2 lcd

i know how to display the result , but i don't know how to detect and multiply them.
 

Which microcontroller are you using? You should be able to use the external interrupt feature of the microcontroller to detect rising edge. Multiply by 600 can simply be done in software.
 

I'm using PIC16f628a to do that but i dont know what to write in the code, i want to write it in C or BASIC
 


i have never used the interrupt feature of the PIC16F628A , but i will see what i can find about it
 


witch mcu wants to use ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…