[quote:d0c1447123="albertsm"]
logic tells me that this is a hardware problem.[/quote:d0c1447123]
maybe it is hardware however after changing the display order from:
Do
Cls
Locate 1 , 1 : Lcd "IC " ; Bin(icr1)
Locate 2 , 1 : Lcd "IC " ; Bin(icr1)
Locate 3 , 1 : Lcd "pw " ; Bin(pwm1a)
Locate 4 , 1 : Lcd "co " ; Bin(compare1a)
Wait 4
Loop
to:
Do
Cls
Locate 1 , 1 : Lcd "pw " ; Bin(pwm1a)
Locate 2 , 1 : Lcd "pw " ; Bin(pwm1a)
Locate 3 , 1 : Lcd "IC " ; Bin(icr1)
Locate 4 , 1 : Lcd "IC " ; Bin(icr1)
Wait 4
Loop
it is still the same. Notice all I have done is moving the two {LCD "IC";Bin(icr1)} statements from line 1 and 2 to line 3 and 4. The very first display of icr1 in line 1 or 3 (depends on what code I am runnig) shows the wrong value (shifted two bit right fillt up with two leading zeros (perfect correct output for a byte variable). Between 1st and 2nd LCD-statement nothing seems to happen in my BASCOM code what changes the value of icr1 variable. In addition the display of pw variable (replacing ICR1 in line 1 and 2) looks fine from start opposite to displayig ICR1 in line 1 and 2
As Changing the logic flow and still receive false output in my limited understanding error couldn't be hw related. remember the display looks pretty fine, if there is an hw problem I expext messed up characters and / or false display staying at a fixed location e.g. at the first display line and this all over the time. however the false display change to the 3rd line after changing software flow and disappears after a first display.
As I mentioned before my computer lacks a serial port.
Pls be spcific of what and how to handle/change sda scl usage
It's really confusing :(
Thanks and best regards
notice the "screen shots" where you can see what happens with ICR1
↧