The first program of ARM (based on LPC2134)

Publisher:Heavenly999Latest update time:2016-05-03 Source: eefocusKeywords:ARM  LPC2134 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
#include "config.h"

//Flowing light value table
int Led_Table[]={
    0x00fe0000,0x00fd0000,0x00fb0000,0x00f70000,0x00ef0000,
    0x00df0000,0x00bf0000,0x007f0000};     


//Main function

int main()
{
    int i=0;
    PINSEL1=0x00000000;     
    IO1DIR=0xff<<16;    //This writing is very clear, recommended
    while(1)
    {
        IO1SET=Led_Table[i];    //Set high level pin
        IO1CLR=~Led_Table[i];     //Set low level pin
        delay(60);
        i++;
        if(i==8)
        {
            i=0;
        }
            
    }
    return 0;
}
Attached figure:
Keywords:ARM  LPC2134 Reference address:The first program of ARM (based on LPC2134)

Previous article:SDRAM \ NOR FLASH \ NAND FLASH address allocation in S3C2440 development board
Next article:The calculation principle of the program counter (PC) when returning when an ARM exception occurs

Recommended ReadingLatest update time:2024-11-16 07:52

TI enhances Arm-based controller/processor product line layout
Recently, Texas Instruments (TI) announced the addition of two new series of products, namely the MCU MSPM0 using Arm Cortex-M0+ and the AM6xA series AI vision processing SoC using Cortex-A53 or Cortex-A72. A series of products show that Texas Instruments continues to expand its layout in the embedded field and extend
[Embedded]
What is the difference between ARM and embedded?
There are some clear differences between ARM and embedded systems. First of all, ARM is an embedded processor architecture, and an embedded system is an integrated software and hardware system that runs multiple applications at the same time, usually embedded in larger systems, such as portable electronic devices and
[Microcontroller]
Learn ARM development(11)
Because the compiled UBOOT written to FLASH always failed to run several times before. So what should I do? After thinking for a long time and checking the source code, I still didn't find the problem. Maybe the source code of the UBOOT is too large, there are many compilation switches, and many driver options, so I
[Microcontroller]
Learn ARM development(14)
Since it is still troublesome to develop under LINUX, is there a more convenient and simple development method under WINDOWS? The answer is yes. Of course, we cannot choose a development tool like ADS, because it is too expensive. Even if we use pirated software, we will not feel at ease, so we have to adopt other s
[Microcontroller]
Windows on ARM helps IoT solution builders achieve digital transformation
Windows on ARM helps IoT solution builders achieve digital transformation Advantech has been working closely with Microsoft and NXP to test and adapt Windows on ARM devices. Microsoft is now ready to release Windows IoT Enterprise Edition for NXP i.MX8M and i.MX8M Mini BSP GA. The market has been call
[Embedded]
Windows on ARM helps IoT solution builders achieve digital transformation
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号