Guest
This is kind of a repost, someone was extemely helpful in getting me
code but it was for 6800 assembler.......
Here is what I got.
My motorcycle has an output voltage on the gear position sensor as
follows;
1st gear = 1.782v
2nd gear = 2.242v
3rd gear = 2.960v
4th gear = 3.630v
5th gear = 4.310v
6th gear = 4.660v
Neutral = 5.000v
I am awaiting a PIC16F873A and programming board, that should arrive
soon.
What would the code be in order to take the voltage on an analog input
and convert it to the pinouts on the output side to display my various
numbers on a 7 segment LED display. I currently program in VBA so
understand the logic, jsut not sure about the specific syntaxes and
such.
Just like the link below, however I am only going to use a 7-segment
for simplicity. Maybe later I will try a 15 segment. I also will have
no reverse input and no button to reprogram as I am going to make the
code accept a reange of voltage for a given gear.
http://www.sportdevices.com/gearindi...schematics.htm
Any help would be appreciated, as I am quit new to this.
code but it was for 6800 assembler.......
Here is what I got.
My motorcycle has an output voltage on the gear position sensor as
follows;
1st gear = 1.782v
2nd gear = 2.242v
3rd gear = 2.960v
4th gear = 3.630v
5th gear = 4.310v
6th gear = 4.660v
Neutral = 5.000v
I am awaiting a PIC16F873A and programming board, that should arrive
soon.
What would the code be in order to take the voltage on an analog input
and convert it to the pinouts on the output side to display my various
numbers on a 7 segment LED display. I currently program in VBA so
understand the logic, jsut not sure about the specific syntaxes and
such.
Just like the link below, however I am only going to use a 7-segment
for simplicity. Maybe later I will try a 15 segment. I also will have
no reverse input and no button to reprogram as I am going to make the
code accept a reange of voltage for a given gear.
http://www.sportdevices.com/gearindi...schematics.htm
Any help would be appreciated, as I am quit new to this.