??? 02/25/09 16:11 Read: times |
#162825 - Yes, 3.3V is right and works correctly Responding to: ???'s previous message |
Kai Klaas said:
1. In the scheme, is this 3.3V at the supply of 74LS02? Yes, this 74LS02 uses 3.3V for the Rail Kai Klaas said:
2. The speedometer is (very probably) always connected to the battery and the battery is only removed from the vehiclce when the vehicle isn't driving, so when no speed is to be measured at all. Maybe you can free this INT input somehow then? Kai No, the sensor toggles between 12V and GND, but the interrupt is set to edge trigger to watch for the negative signal transistion so I'm not stuck in a continual ISR routine. This is the hardware as it stands, no room or ability to change it. One method I found is that using the 5Khz fixed reference, a log function is created as frequency of the signal drops, if I can find a way for the 8051 to use linear interpolation on that function, I might be able to keep everything as is, and have a working reliable solution..... If anyone has a tip on how to do this, that would be very helpful. As it stands, my testing in simulation shows this for counts.....if I could linearize this, it would be a done deal, here is the testing using the INT toggle at fixed frequencies and the next pulse count from the fixed 5KHz reference. 1MPH = 1344h 5MPH = 380h 10MPH = 1C0h 30MPH = 96h 60MPH = 4Ah 120MPH = 26h 150MPH = 1Dh 200MPH = 16h Does anyone think that linear interpolation will solve this? Looks like a simple log to linear conversion, but is there a way to have the 8051 do this and then use the function result to a lookup table for fast conversion? Any pointers would be great........and by the way, thanks to all thus far for taking the time to help me. This is a great learning part for me. Regards, Chris |