Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20873

BASCOM-AVR : Problem with Mid$ happens in chip but not in simulator. : REPLY

$
0
0
So very true, Evert. I have had so many "Eureka!" moments in the first waking moments in the morning after struggling with a problem into the wee small hours of the night(s) before. One minute of thought in the morning is worth 100 minutes at 3 am. Visovian. I can be accused of many things in this instance - sloppiness, laziness, over-eagerness to ask for others' help - but not of [b:5eb0f18c33]lying[/b:5eb0f18c33]. The program that my code was extracted from does not merely flash an LED. It is 10 kB long (and growing) and controls and communicates with a GSM module, scans 8 analogue and digital inputs hundreds of times a second, has 4 digital outputs doing some involved tasks and is the master in a 250-slave RS485 network. Why would I write such a thing if it was never flashed to a chip? To post the entire program would of course be pointless, as it would be confusing to read and would not work without the hardware. It is the practice of posters in this forum to post the relevant problematical extract of code and to attempt to present it in a working form, with dimensioned variables, etc. One of my mistakes was to cut down the code too much. If I had left in the 3 preceding lines, then other, helpful members would have spotted the problem immediately. Mea culpa. When you stand too close to the elephant, all you see are tree trunks and snakes. I have always found this forum to be a welcoming, friendly and helpful place. There are many generous, intelligent members who give willingly of their time - AdrianJ, for example, and Mark keeps a watchful eye over it all and steps in where necessary. Even you, Visovian, have been known to help out a struggling newbie or a more experienced member who has got tangled up in his program and has stopped being able to think clearly. We all share a love of coding. There is nothing to beat the satisfaction of writing tight, efficient code that works well. That is why we should all make an effort to keep the atmosphere friendly and welcoming. If a new member is discouraged from asking for help for fear of being branded a liar, that would be very sad. Please lets just see the best in others and believe that requests for assistance are made in good faith, that were are all human and that all of us, even you, Visovian, make mistakes.

Viewing all articles
Browse latest Browse all 20873

Trending Articles