Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
whiz115 said:ok!!!
i added this line "count4 equ 10" over the cblock 0x20 opcode and the error went away!
nigel dfo you think i can use the internal oscillator for what i'm trying to do?
Nigel Goodwin said:I'm not very clear what you're trying to do?, but the internal oscillator is fine for the vast majority of things - all my tutorials use it.
cblock 0x20
count1
count2
count3
count4
afisaj
endc
blueroomelectronics said:Before doing fancy LCD stuff you should spend some time learning MPASM
decfsz count1
decfsz count2
decfsz count3
decfsz count4
decfsz count1, 1
decfsz count2, 1
decfsz count3, 1
decfsz count4, 1
That's technically correct, but to be clearer for you (not for the assembler) use W or F instead of 1 or 0. If you put W, the result is placed in the W register. If you put F, the result is placed in the countX register. The equates for W and F are in the "p16F628A.inc" include file.whiz115 said:is this correct so the compiler stops giviving the above message?
Code:decfsz count1, 1 decfsz count2, 1 decfsz count3, 1 decfsz count4, 1
futz said:That's technically correct, but to be clearer for you (not for the assembler) use W or F instead of 1 or 0. If you put W, the result is placed in the W register. If you put F, the result is placed in the countX register. The equates for W and F are in the "p16F628A.inc" include file.
blueroomelectronics said:You can supress warnings when you are familiar with MPASM. It won't assemble if there are any errors.