27-02-07

Running Led Program for CoreABC

I did a new sample program for the CoreABC from Actel (I progammed this on my M7A3PE600 FPGA. This program is a running led be sure to press the NSYSRESET button to run the program.

 

In your CoreConsole Project You just have to put a CoreABC softcore CPU and bring out IO, PCLK and NSYSRESET to the Top Level.

 

On the ARM7 Board you can connect PCLK to Pin W17, IO to the Led's and for instance NSYSRESET to pin U3

 

$Main
    WAIT WHILE INPUT0

// Running LED
$LedOff    IOWRT 0
    CALL $Wait500ms
$LedOne    IOWRT 1
    CALL $Wait500ms
$LedTwo    IOWRT 2
    CALL $Wait500ms
$LedThree  IOWRT 4
    CALL $Wait500ms
$LedFour   IOWRT 8
    CALL $Wait500ms
$LedFive   IOWRT 16
    CALL $Wait500ms
$LedSix    IOWRT 32
    CALL $Wait500ms
$LedSeven  IOWRT 64
    CALL $Wait500ms
$LedEight  IOWRT 128
    CALL $Wait500ms
    JUMP $LedOff

$Wait500ms
    CALL $Wait100ms
$Wait400ms
    CALL $Wait100ms
$Wait300ms
    CALL $Wait100ms
$Wait200ms
    CALL $Wait100ms
$Wait100ms
    CALL $Wait20ms
$Wait80ms
    CALL $Wait40ms
$Wait40ms
    CALL $Wait20ms
$Wait20ms
    CALL $Wait10ms
$Wait10ms
    NOP
    LOADLOOP 34998
$Wait10msInner
    DECLOOP
    JUMP IFNOT LOOPZ $Wait10msInner
    RETUR

08:58 Gepost door Mobile blogger in Algemeen | Permalink | Commentaren (0) | Tags: coreabc, actel, fpga, code, arm7 |  Facebook |