Hello
I have a program written in assembler for 8051, I need to change it to a program in C for STM32F103. The old program has symbols for individual bytes in memory. e.g
in NFL byte: SAVED EQU 18H; SAVED = 1 when state was saved PRG EQU 19H; PRG = 1 when PROGR = 1 BWK EQU 1AH; BWK = 1 when FM = 1 PLUS EQU 1BH; button was '+' pressed MINUS EQU 1CH; button was '-' pressed FMERR EQU 1DH; FMERR = 1 when the FM memory is not resp. Inoc EQU 1EH; Inoc = 1 the minimum brightness of the LED
Does the C language for STM32 also have an equivalent mechanism that allows access to individual memory bits in a similar way to 8051?
Hello Karol,
You can find a link to "The Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors, Third Edition " and other good resources at:
keil.com/books
In the "ARM Microcontroller" section.
The "Definitive guide..." has a great section on bit banding.
====
Also, search on Youtube for "bit banding". There is a decent video here:
www.youtube.com/watch