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

BASCOM-AVR : strange biniary output : REPLY

$
0
0
[quote:fd75ec55c3]Mark, without changing any pin/port definition or hw-wireing the decimal formatted output is correct while hex and bin failes.[/quote:fd75ec55c3] yes but you need to be aware that i do not have any knowledge about your hardware. only how you connected it. and since the simulator gives a correct result, i start with the HW. [quote:fd75ec55c3]How do I have to understand this? Do I make the remarkable error? [/quote:fd75ec55c3] no, than i would write that YOU made an remarkable error right? It is remarkable because you use a normal variable, and when i simulate it, it works properly. So i do not see a good reason why it would work different for you on your lcd. The simulator is using the object code the same way as the chip works through the code. [quote:fd75ec55c3]I allways try to keep my code as simple as possible. Your suggestion seems to be a workaround however - if one can make it simple one will do it simple - not knowing the consequences and beeing in the dark [/quote:fd75ec55c3] it is not a work around, i am just trying to determine where the error originates from. and your code is not simple as possible because your show other variables and you could also reduce the whole icr1 manipulation. and just assign it with a variable. now i took a better look : you use a register. and registers can change. instead of showing icr1, you could also try to show dummy like : dummy=icr1 Locate 1 , 1 : Lcd "IC " ; Bin(dummy) Locate 2 , 1 : Lcd "IC " ; Bin(dummy)

Viewing all articles
Browse latest Browse all 20608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>