hi all!
im new here. i would like to ask for programing a PIC16F877A for rpm measurement. the input is from the hall effect sensor which giving a pulse once for each rev. the output is on 16x2 characters LCD display.
the hall effect sensor
the output is a pulse (high to low) once for each rev.
connected on PORTB.0(int/RB0)
the PIC16F877A
using 20MHz crystal.
the LCD
16x2 characters.
data register on PORTD
control register on PORTB.5,6,7
rotary encoder
absolute type
127 position
i write the program in BASIC. now, im stuck on the RPM measurement. i refered on a site that measure RPM using interrupt here. btw, he is using PIC 16f84 and the program writen in C language.
i having difficulties on translate it to BASIC esp on the interrupt part. if u look at the site, the project giving an option to run in 1 ppr(pulse per rev), 6ppr and 60ppr. for my project there is no option for that. only 1ppr.
please give me suggestion or guide especially on the interrupt part.
im new here. i would like to ask for programing a PIC16F877A for rpm measurement. the input is from the hall effect sensor which giving a pulse once for each rev. the output is on 16x2 characters LCD display.
the hall effect sensor
the output is a pulse (high to low) once for each rev.
connected on PORTB.0(int/RB0)
the PIC16F877A
using 20MHz crystal.
the LCD
16x2 characters.
data register on PORTD
control register on PORTB.5,6,7
rotary encoder
absolute type
127 position
i write the program in BASIC. now, im stuck on the RPM measurement. i refered on a site that measure RPM using interrupt here. btw, he is using PIC 16f84 and the program writen in C language.
i having difficulties on translate it to BASIC esp on the interrupt part. if u look at the site, the project giving an option to run in 1 ppr(pulse per rev), 6ppr and 60ppr. for my project there is no option for that. only 1ppr.
please give me suggestion or guide especially on the interrupt part.