Proteus 7.10 支援ARM Cortex-M3/LM3S*

來源:互聯網
上載者:User

 最新特性:

  • Proteus VSM for ARM Cortex-M3/LM3S* - Simulation support for this popular microcontroller family

    ARM Cortex-M3/LM3S*庫模組:

    LIBRARY: STELLARIS.LIB

    MODELS: cm3.dll ,cm3_lm.dll ,STELLARIS.LML

    在proteus 7.7 or 7.8中可用,ITFMOD.MDF中增加一行:

    CM3    : RSHI=20, RSLO=20,RWHI=100k,VUD=2,VTL=0.8,VHL=0.2,VTH=2.5,VHH=0.2,V+=VDD,V-=GND,TRISE=1n,TFALL=1n

    可以搜到的Microprocessor裝置名稱:

    LM3S300,LM3S301,LM3S308,LM3S310,LM3S315,LM3S316,LM3S317,LM3S328.

    測試代碼(點亮LED):

    ;----===----ARM Cortex-M3/LM3S* LED彙編測試(TUMB-2指令集);----===----By G-Spider @2012    AREA ARMcm3led,CODE, READONLYSYSCTL  equ 0x400fe000          ;baseRCGC2   equ 0x108               ;offsetGPIOD   equ 0x40007000          ;baseAFSEL   equ 0x420               ;offsetDIR     equ 0x400               ;offsetDATA    equ 0x000               ;offset    ENTRYStart;--------------------------------;enable GPIOA,GPIOB,GPIOC,GPIOD,GPIOE clocking for changing pin functions    ldr r0,=(SYSCTL+RCGC2)    mov r1,#0x1f    str r1,[r0]                 ;SYSCTL->RCGC2 |= 0x0000001F;--------------------------------;all pins are GPIO    ldr r2,=(GPIOD+AFSEL)    mov r0,#0    str r0,[r2]                 ;GPIOD->AFSEL = 0x00;--------------------------------;pin.0 is output    ldr r1,=(GPIOD+DIR)    mov r0,#1    str r0,[r1]                 ;GPIOD->DIR = 0x01;--------------------------------    ldr r2,=(GPIOD+DATA)    mov r0,#0    str r0,[r2]                 ;GPIOD->DATA = 0;--------------------------------loop    mov r0,#1    str r0,[r2]                 ;GPIOD->DATA = 1        b loop    END

    編譯:

    @echo offset path=D:\Keil\ARM\BIN40;%path%set FILE=testarmasm.exe  --cpu=Cortex-M3 -g -o %FILE%.o %FILE%.sarmlink.exe  -o %FILE%.axf  %FILE%.o fromelf.exe --i32 --base 0x00 -o %FILE%.hex %FILE%.axffromelf.exe -v -a -c -d -e -g -r -s -t -y -z  -o %FILE%.lst %FILE%.axfpause

     

    效果與下面一致(以片如果看不全,另存新檔,可看全):

     

     

     

     

     

     

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.