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

Lincoln Bit Banding Example

From Manuals

Revision as of 14:18, 10 April 2012 by Support (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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. The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal.