I'll explain a bit further: I can load POSCNTH and POSCNTL, and they show up as correctly loaded, but as soon as the encoder moves, it jumps back to 5535 and rolls to 0 from there....
yep it sorted a few less if then statementslongpole001 Today, 02:14
Just a typo! What else if not shift left.
I'm a noob myself, but no... The VAR.0 syntax is a way of addressing each bit and, while it affects the value of the byte, the bits do not interact.
VAR= %00000000 : VAR.0 = 1...
Hmmm....Answer = answer < 1
If the above is meant to be a shift left operation then what you want is Answer = Answer << 1
However, since Answer is set to 0 at the entry point of the routine...
| PICBASIC PRO™ Compiler 3.0 PBP is a BASIC programming language for Microchip's PIC microcontrollers.
Version 3 is a major evolution of this popular product, making it even more capable, stable, and reliable. All the years of development culminate here, with many new capabilities and improvements. Come see why thousands of engineers, educators and hobbyists have depended on PBP for more than a decade.
Software activation keys are delivered electronically after purchase.
15 Day Trial Before Activation Key is Required
If installed without an activation code, the software will be fully functional for 15 days.
Read about Product Activation