This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bitadressable area migrates from C51 to ARM7

Hello to everyone,
if have some assembler-programms for 8051-family.
There are about 60 LED's to control. All these LED have a corresponding Bit in the Bit-adressable area of the 8051-family:

                ORG     20H     ; 16 Byte bitadressable area
Digit0:         DS      1
Digit1:         DS      1
Digit2:         DS      1
Digit3:         DS      1
Digit4:         DS      1
                *
                *
                *

Led_01: BIT Digit3.6
Led_02: BIT Digit3.5
Led_03: BIT Digit3.4
Led_04: BIT Digit3.3
Led_05: BIT Digit3.2
Led_06: BIT Digit3.1
Led_07: BIT Digit3.0
Led_08: BIT Digit3.7
Led_09: BIT Digit4.7
Led_10: BIT Digit4.0
Led_11: BIT Digit5.6
Led_12: BIT Digit5.5
Led_13: BIT Digit4.6
Led_14: BIT Digit4.5 * * *
Fan: EQU Led_01
Boost: EQU Led_29
Manual_control: EQU Led_08
Remote_control: EQU Led_59
Batterie_low: EQU Led_02 * *

All this Led's have proper names and can be controlled by the following 8051-assembler-commands:

        SETB    Batterie_low
        CLR     FAN
        CPL     Boost
        MOV     Led_40,C


Finaly here's the question:
How can i replace these 8051 assembler code by ARM7 C?

Have a nice day to everyone!!!!!!!!!!!!!!!

Parents Reply Children
No data