By "frozen" on the startup, I really meant "I don't give a crap what happens there because I never mess with that part. haha (laughing intentionally in quotes)" So, feel free to adjust that to include delays for things that are needed so no extra delays are there. I just remember a few years back with the DC controller that when there wasn't at least 0.2 sec or so before A/D measurements happened, the microcontroller started up at probably 1.8v, and was doing A/D conversions WAY before it reached 5v. LOL. My poor beta tester said it felt like the discovered "zero current point" was NOT the zero current point. In fact it was off by 80 amps, which made the car feel like it was taking off by being hit with a small sledge hammer, and I always remembered that lesson.
There is no concern about confusing the throttle or resolver input in the code. YOu have to take a very deliberate step of saying "next time, you will have resolver!", or "next time you will have throttle". I think measuring throttle outside the A/D makes perfect sense. You are absolutely right that it is NOT time critical. Oh no! I just measured throttle position 0.0001 seconds ago, and that is WAY different from now. we are all going to die. hahaha. Awesome idea!!
Quote:
This may bring up an opportunity - again, just thinking aloud - would it be possible to have certain inputs changable in hardware via jumpers to account for different set-ups?
|
Yes that is certainly possible! I prefer that option to upgrading the micro. I have been using a through-hole micro, but there are very nice dsPICs where the code would not need to be changed (or almost not at all), and you could do 8 simultaneous A/D conversions instead of 4. The problem is they are TQFP-80, and a fully DIY kit then goes out the window. With my finances, it's not going to happen to have a surface mount board, and have a bunch of boards pick and placed. I can hand-solder down to 0.5mm pitch, but it's not very fun. I think fully DIY needs through-hole, from what I've come to know about people and all the emails I get.
If just that part was soldered, then there's a risk of it getting messed up in shipping, since it should be added after the capacitors. So, if you commit to adding the caps AND the chip, each board has maybe 30 minutes of labor attached.