Damm, so what you are sayins is that im out of luck either way? Spose the only way to do it is to bridge the jumper permanenetly and hardcode the ranges for these boards?
Damm, so what you are sayins is that im out of luck either way? Spose the only way to do it is to bridge the jumper permanenetly and hardcode the ranges for these boards?
Would be easier you to tell what you want to do with those " jumpers " ... a jumper is someting easily removable ... so, there's something I do not understand here ...
Alain
soft example:
Jumper is active LOW
Code:'****************************************************************************** ' check if programming jumper not forgotten ... '****************************************************************************** delay = 0 BUTTON Prog,0,255,0,delay,1,mesurav oubli: ' infinite loop ... jumper MUST be placed ... error = 1 ' Blink the led !!! PAUSE 50 error = 0 PAUSE 50 GOTO oubli '****************************************************************************** '****************************************************************************** ' Measure programming pulses '****************************************************************************** '****************************************************************************** '****************************************************************************** Mesurav: 'Measure Forward Max pulse '****************************************************************************** Show = 1 ' programming led ON Entree = 0 GOSUB Mes ...
Last edited by Acetronics2; - 7th May 2010 at 20:18.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Sorry, basically, all the jumper is doing is on boot it the Pic check if it is "on" and then goes into a setup mode to sense the Transmitter stick location.
What I have done this evening is resolder another board and manged to bridge accross on another PIN (one I had designed onto the same PCB for LED lighting) and got it to work. Its not "pretty" but now functional. I would still like to find a way to use the pins that are now unconnected untill the jumper is installed and then pulled up to +ve.
Worst case, is there any harm of leaving the pins floating if I am not using them for input or output? would mean I can use these PCBs for now and then fix the design in the next batch I have printed (sounds commercial, :-), not for sale but making some onboard glow / LED light drivers for some mates at the flying field.
Make all of the unused pins an OUTPUT and code them LOW near the beginning of your program.
Dave
Always wear safety glasses while programming.
Again, the method I outline above will allow you to determine if a pin is completely open, or else connected to one of the rails via a resistor.
I had exactly the same case, where a board layout was incorrect. I needed to figure out if a jumper was on or not. "Little green wires" or added resistors were not an option.
I'm not advocating this method for production. But it can fix a bad situation.
Charles Linquist
Hi Charles,
I will give your option a go tonight, :-), should work for what I need it to do. Was thinking to monitor the pin for a few cycles and if it floated to read it as open and if it was high to read it as closed / Jumper on.
had a closer look at the circuit and I may be able to squeeze a 0402 or 0805 under the PIC's socket from the pin to the GND track, although there are no pads it should solder to the track - 0.25mm track width - if i can get it in there then I would read the pin as LOW for "open / jumper off" and high for "closed / jumper on" :-)
I like your option though as it keeps the compnent count down which is what I was aiming for as hand soldering 0402's is quite a challenge, :-)
Many Thanks
Kind regards
Rob
Error, :-( looked at it last night and cant use the track under the PIC, will have to try the "Slam-read" option which seems viable or use the other PIN and leave that side empty until I have some more printed.
Question to Alain, have you manged to code a section in any programs you could share where you check if the user has a Futaba or a JR TX?
It seems the PIC reads Throttle low-high on a JR as +- 100-200 and a futaba as +- 200-100.
Cheers
Rob
Bookmarks