Hyperterminal resetting stamp program
agentile
Posts: 101
Hello,
·· I have a BS2 data acquisition program which is intended to dump all the stored data onto my computer via hyperterminal.· At the end of my program, after all the data has been collected, I have a loop which waits for input from a keypad.· Upon keypad input, the program enters a loop where it reads stored data and sends it out to hyperterminal using SEROUT.· There is one glitch which occurs when I connect the stamp to hyperterminal.· Upon making the connection, my program is somehow reset to the start.· The program is not being reloaded, but the program starts over as if it had just begun.·
·· Can someone explain what is going on between hyperterminal and my stamp such that a connection to hyperterminal is restarting my program?
thanks,
agentile
·
·· I have a BS2 data acquisition program which is intended to dump all the stored data onto my computer via hyperterminal.· At the end of my program, after all the data has been collected, I have a loop which waits for input from a keypad.· Upon keypad input, the program enters a loop where it reads stored data and sends it out to hyperterminal using SEROUT.· There is one glitch which occurs when I connect the stamp to hyperterminal.· Upon making the connection, my program is somehow reset to the start.· The program is not being reloaded, but the program starts over as if it had just begun.·
·· Can someone explain what is going on between hyperterminal and my stamp such that a connection to hyperterminal is restarting my program?
thanks,
agentile
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Now, if you DON'T have the capacitors, Hyperterminal will HOLD the BS2 in reset, so the capacitors certainly do something useful. But they're not going to prevent the reset entirely.
Some people get around this by putting in a SERIN with a time-out in the beginning of their program. This lets you input a character using hyperterm, which your program can use to jump to the data output routine. If no hyperterm is connected, the time-out lets your program run normally.
Even if Hyperterm was NOT pulling DTR low, there's a large chance that it will get 'glitched' when plugging in your DB-9 connector to get the data, which again will reset your BS2. The time-outed SERIN is a good solution.