embeded/Cortex-M3 Ti2013. 8. 16. 17:21

2.2 Bit-Banding (bitband)
This example application demonstrates the use of the bit-banding capabilities of the Cortex-M3
microprocessor. All of SRAM and all of the peripherals reside within bit-band regions, meaning that
bit-banding operations can be applied to any of them. In this example, a variable in SRAM is set to
a particular value one bit at a time using bit-banding operations (it would be more efficient to do a
single non-bit-banded write; this simply demonstrates the operation of bit-banding).



제대로 이해한건진 모르겠지만..

비트 연산자를 사용할때 퍼포먼스향상을 위해 메모리를 왕창 쓰는 기술
비트 조작시 바이트 단위로 조작하고 그걸 하드웨어에서 지원하는 기술

이라고 하면 되려나?

비트 조작시
1. '바이트' 데이터 읽기
2. 쉬프트 연산
3. AND / OR / XOR 등의 연산
4. '바이트' 데이터 쓰기
이런식으로 최소 4 사이클 쓰게 되는데

bitband를 쓰게 되면
1. 주소 연산
2. 바이트 매핑된 '비트' 주소에 데이터 쓰기

이렇게 두번에 끝나게 된다.

[링크 : http://todayis.tistory.com/254]
[링크 : http://liminia.tistory.com/54]

'embeded > Cortex-M3 Ti' 카테고리의 다른 글

cortex-m3 ROM direct call  (0) 2015.09.25
LM3S Stellarisware - GPIOIntTypeSet  (0) 2015.08.03
LM3S1968과 H-JTAG(wiggler)  (0) 2013.06.28
cortex-m3 JTAG / X-LinkEx 1.1  (0) 2013.06.11
cortex-m3가 문제인가.. keil이 문제인가?  (2) 2013.02.05
Posted by 구차니