wannaBinventor
Member
Birdman's thread on the PIC16F193X got me thinking more about the 1934s I have sitting around that I haven't play with yet. I've tried to find some tutorials on the net for what some of the extended instructions do, but I haven't found anything, so I've turned to you guys for help:
1)
What is the functional difference in CALLW and BRW?
2)
Should MOVLP be used to jump to another memory page in the program, just like moving a number to W and then ADDWF PCALTH?
3)
What is the advantage to MOVLB over just changing status register bits or using the BANKSEL directive?
4)
MOVIW and MOVWI throw me for a loop when trying to understand anything about them from the datasheet. I understand that they are used for indirect addressing and can be used to read or write, respectively, to/from the register pointed to by the FSR, but beyond that I'm lost. Can some one show how the syntax actually looks in a snip of code with the increments and decrements? I just need this explained in general.
Thanks!
1)
What is the functional difference in CALLW and BRW?
2)
Should MOVLP be used to jump to another memory page in the program, just like moving a number to W and then ADDWF PCALTH?
3)
What is the advantage to MOVLB over just changing status register bits or using the BANKSEL directive?
4)
MOVIW and MOVWI throw me for a loop when trying to understand anything about them from the datasheet. I understand that they are used for indirect addressing and can be used to read or write, respectively, to/from the register pointed to by the FSR, but beyond that I'm lost. Can some one show how the syntax actually looks in a snip of code with the increments and decrements? I just need this explained in general.
Thanks!