pubo
Newbie level 4
Hi there.
I'm doing a project using pic 16F chips and was just wondering if its possible for me to "stitch" some scattered I/O pins into a new custom port?
For example, I have bit 1, 3 5, 7 of Port A; and bit 0, 2, 4, 6 of Port B spares.
Effectively, I'm looking to "stitch" them into a new 8 bit port, lets call it Port Z which will have port structure of [RA1 RA3 RA5 RA7 RB0 RB2 RB4 RB6]; with RA1 being the MSB and RB6 being the LSB
If so, any idea how to implement it? I'm coding in MPLab using HiTech C btw.
Any inputs would be great. :smile:
I'm doing a project using pic 16F chips and was just wondering if its possible for me to "stitch" some scattered I/O pins into a new custom port?
For example, I have bit 1, 3 5, 7 of Port A; and bit 0, 2, 4, 6 of Port B spares.
Effectively, I'm looking to "stitch" them into a new 8 bit port, lets call it Port Z which will have port structure of [RA1 RA3 RA5 RA7 RB0 RB2 RB4 RB6]; with RA1 being the MSB and RB6 being the LSB
If so, any idea how to implement it? I'm coding in MPLab using HiTech C btw.
Any inputs would be great. :smile: