Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

pic24 basic data type, uint8_t or uint16_t

$
0
0
Hi guys

First time using a pic24 here, I know what I should use uint8_t on a pic18 where possible, because pic18 is a 8bit mcu, and this is most efficient. It's the basic data type in 8bit mcu, eg the ALU can manipulate 8bit data in one instruction. Where if I need to use an uint16_t, it's actual combining two uint8_t, and it take more cycles.

Now if I understand correctly, pic24 is a 16bit mcu, should I be using uint16_t where possible? For the same reasons mention above, or can I use...

pic24 basic data type, uint8_t or uint16_t

Viewing all articles
Browse latest Browse all 4923

Trending Articles