craigwllee
Newbie level 4
c18 byte char int bit
Hi all, I'm working on a project that use Microchip PIC18 series. The only compiler I have is the C18 provided freely from microchip
Anyway it is a simple question. I have an unsigned int that I wish to break it into 2 char that I could send through UART using the putcUSART function. I'm thinking of using the union struct or something, but I can't find references online.
Anyone knows how to do it? Thanks
Hi all, I'm working on a project that use Microchip PIC18 series. The only compiler I have is the C18 provided freely from microchip
Anyway it is a simple question. I have an unsigned int that I wish to break it into 2 char that I could send through UART using the putcUSART function. I'm thinking of using the union struct or something, but I can't find references online.
Anyone knows how to do it? Thanks