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

simple question about flash memory of 8-bit/16-bit/32-bit MCU

$
0
0
Hi guys

Just an simple question, say I have a constant
Code (Text):
  1. char str[] = "HELLO";
In a 8-bit MCU, it will take 6 bytes flash memory. Now my question is, how many bytes will it take in a 16-bit/32-bit MCU. Will that take 12 bytes flash memory in a 16-bit MCU and 32 bytes flash memory in a 32-bit MCU? Or does it still take only 6 bytes?

I mainly use 8-bit MCU, but there is a project that I will need to use 16-bit MCU, and it looks like the flash memory in a 16-bit MCU is used up a...

simple question about flash memory of 8-bit/16-bit/32-bit MCU

Viewing all articles
Browse latest Browse all 4924

Trending Articles