pic of husky - PETS
It's best to just use BANKSEL to do your bank switching automatically. It is a special assembler directive the tells the assembler to switch to the correct bank. So, if you wish to access PORTB, just BANKSEL (PORTB) before using it.
Understanding the Context
PS: PORTB is in BANK0 on the PIC16 family, not BANK1 as in your code. I need to move a PIC X defined field that has numerics with a 2 position decimal to a numeric field to perform an arithmatic function involving a comp-3 field. What is the best way to do this? I d...
Image Gallery
Key Insights
How to REDEFINE and perform arithmetic on a PIC X clause in COBOL I'm currently developing an operating system that uses the limine bootloader and follows the limine boot protocol. However, I've encountered an issue: when I call init_PIC(), the CPU resets immedia... CPU Reset When Remapping the PIC Using Limine Bootloader in My OS MPLAB X IDE PIC assembly program throwing syntax error on lines containing labels Asked 5 years, 10 months ago Modified 5 years, 8 months ago Viewed 9k times MPLAB X IDE PIC assembly program throwing syntax error on lines ... 05 I-DATA PIC X(7). 05 I-NUMERIC REDEFINES I-DATA PIC 9999.99.
Related Articles You Might Like:
german shepherd hypoallergenic mix deer park vet clinic deer park wa animal humane society woodbury mnFinal Thoughts
. . MOVE I-NUMERIC TO O-DATA. You need to redefine you AlphaNumerc as a Display Numeric which can then be moved to the packed decimal variable. Be careful as this will bomb out with an OC7 if there is anything other than numbers or spaces plus the '.' in the data.