Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: ARM Cortex M3/M4 bit-banding (Thumb2 issue)

$
0
0
[quote]ARM Infocenter sais: "It enables individual bits to be toggled without performing a read-modify-write sequence of instructions." :)[/quote] Not sure if I understand this correctly, but only certain address ranges are supported, but no peripheral registers, and certainly not Flash programming. [quote]Thumb2 seems do not to have direct data write instructions. All such manipulation seems needs to do through CPU registers. And such instructions seems cost 2 clock cycles. Address bus uses 32 bit access for bit-banding. So address point costs 4 bytes. So, in the end it should be pretty expensive operation to modify an 1 bit only.[/quote] If you include all those "preparatory" instructions -yes. But that is not different for any other address, so there is no special "burden" for bitbanding.

Viewing all articles
Browse latest Browse all 62309

Trending Articles