Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Slide 10
Product List
Instruction width is not the only factor that determines eventual code size. Code size can also be affected by the width of the data the processor has to work with. Consider an example where an 8-, 16- or 32-bit microprocessor is receiving data from an integrated 10- or 12-bit analog-to-digital converter. To support basic filtering of the 10- or 12-bit ADC data, a microcontroller typically uses a 16-bit multiple. The table shown here is sample code for 8- and 16-bit microcontrollers and the 32-bit LPC1100 for 16-bit multiplies. The Cortex-M0 uses only one 16-bit instruction for the operation, and executes it in just one clock cycle, while the 8-bit and the 16-bit require more instructions. It is clear from this comparison that the code size for the LPC1100 will be much smaller than the 8- and 16-bit microprocessors.
PTM Published on: 2011-03-10