Hi everyone!
I have been programming a PIC18F458 with PICBasic Pro and so far everything has gone nice and easy except for changing the oscillator configuration but I got the hang of that already. So I've been printing menus on an LCD, doing pauses, responding to keyboard interrupts, etc but I've now gotten to the point where I actually have to process data and bits. My question is: is there a way of working with groups of bits? (I haven't found anything on this subject in any book on PBP). What I mean is, is there the PBP equivalent for Verilog command lines that involve groups of bits such as PortA[3:1] for example? It would really make my life easier if I could do things like Datum[6:4] = 2 for example or others like IF PORTB[5:1]=3 THEN .... etc. But like I said I haven't seen anything on this anywhere.
If it's not possible, is there at least a way to concatenate bits and stuff into variables without using OR masks? Thanks to all, I hope I was clear in my question because I need help with that. God bless you.
Bookmarks