SEARCH
TOOLBOX
LANGUAGES
modified on 10 April 2012 at 14:18 ••• 9,842 views

Lincoln Bit Banding Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== This example applicatio…')
(Compatibility Lincoln 60, Lincoln 60E)
Line 1: Line 1:
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
-
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).
+
This example application demonstrates the use of the bit-banding capabilities of the Cortex-M3 microprocessor. Some of SRAM and all of the GPIO registers reside within bit-band regions, meaning that bit-banding operations can be applied to any of them. In this example, a location in SRAM is read then bit-banding is used to clear and set bit 3 of the SRAM location. The example then changes the SPI control register at address 0x40020000 using bit banding.
[[Image:Lincoln_bit_banding.png|center|]]
[[Image:Lincoln_bit_banding.png|center|]]

Revision as of 14:00, 10 April 2012

Compatibility Lincoln 60, Lincoln 60E

This example application demonstrates the use of the bit-banding capabilities of the Cortex-M3 microprocessor. Some of SRAM and all of the GPIO registers reside within bit-band regions, meaning that bit-banding operations can be applied to any of them. In this example, a location in SRAM is read then bit-banding is used to clear and set bit 3 of the SRAM location. The example then changes the SPI control register at address 0x40020000 using bit banding.