Hi all,
On 8-bit Microchip PICs the I/O ports are typically 8-bits wide which is great for controlling LCDs via a parallel interface for example because you can do things like this:
porta = data;
But, what if you're working with a wider port instead? For example, I am now working with a device that has I/O ports that are 16-bits wide. If I want to section off some bits of a port and allocate them for a specific task, can I group them as a name somehow so that I can only write to the bits of the port I am interested in?
I hope this question makes sense!
Cheers, and thanks in advance for any advice,
Brian
On 8-bit Microchip PICs the I/O ports are typically 8-bits wide which is great for controlling LCDs via a parallel interface for example because you can do things like this:
porta = data;
But, what if you're working with a wider port instead? For example, I am now working with a device that has I/O ports that are 16-bits wide. If I want to section off some bits of a port and allocate them for a specific task, can I group them as a name somehow so that I can only write to the bits of the port I am interested in?
I hope this question makes sense!
Cheers, and thanks in advance for any advice,
Brian