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 both uint8_t and uint16_t, because the MCU will just treat uint8_t as a uint16_t??
Thanks 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 both uint8_t and uint16_t, because the MCU will just treat uint8_t as a uint16_t??
Thanks guys.