MCU C_FILE_MARQUE

Publisher:reaper2009Latest update time:2015-12-22 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
#include"reg51.h"

#define uchar unsigned char
#define uint unsigned int

sbit LED=P3^6;
//delay for 1ms
void delay1ms(uint t)
{
  uint i;
  uchar j;
  for(i=0;i     for(j=0;j<120;j++);
}

//main
void main()
{
 uint m,n;
 LED=0;
 for(m=0;m<256;m++)
    {
     P0=m;
     delay1ms(300);
    }
  P0=0xff;
 for(n=0;n<256;n++)
    {
     P0=n;
     delay1ms(300);
    }
  while(1)
   {
    P0=0xf0;
    P1=0x0f;
    delay1ms(500);
    P0=0x0f;
    P1=0xf0;
    }
}

Keywords:MCU Reference address:MCU C_FILE_MARQUE

Previous article:MCU SOURCE FILE_digital tube
Next article:MCU SOURCE FILE_marquee

Recommended ReadingLatest update time:2024-11-16 16:03

Three-phase bridge fully controlled rectifier circuit for multi-chip microcomputer system
The main converter circuit of the multi-MCU DC power supply control system is a three-phase bridge-type fully controlled rectifier circuit . The primary-side control and protection devices of the rectifier transformer include relays, control switches, fuses, power indicator lights, etc. The primary side is connected
[Microcontroller]
Three-phase bridge fully controlled rectifier circuit for multi-chip microcomputer system
Types of MCU Development Systems
The microcontroller development system can be divided into four categories: general development system, practical development system, general machine development system, and simulation development system. The characteristics of the practical development system for single-chip microcomputers are: the hardware of
[Microcontroller]
STM8 MCU Engineer's Path III - The Difference Between .C and .H Header Files
I am a fool who is learning MCU. Today I finally understand a little bit of programming ideas. I understand some things I didn't know before. I want to record my journey to become a MCU engineer. It is only suitable for beginners. First of all, I am the dumbest rookie in the world. The following is just my own under
[Microcontroller]
Adding NOP instruction to MCU C language
Adding NOP instruction to MCU C language There are no null statements in standard C language. But in C language programming of microcontrollers, it is often necessary to use several null instructions to produce a short delay effect. This is very easy to achieve in assembly language, just write a few nops. In AVR-
[Microcontroller]
51 MCU Learning——9--Temperature Sensor DS18B20
DS18B20 Introduction The DS18B20 digital temperature sensor is easy to wire and can be used in a variety of occasions after packaging, such as pipeline type, threaded type, magnet adsorption type, and stainless steel packaging type. Its appearance is mainly changed according to different application occasions. The p
[Microcontroller]
51 MCU Learning——9--Temperature Sensor DS18B20
Infineon’s AURIX™ and TRAVEO™ series of microcontrollers expand support for IEC 61508 software and hardware specifications
Infineon AURIX™ and TRAVEO™ series microcontrollers expand support for IEC 61508 software and hardware technical indicators to help achieve SIL-3 industrial safety Industrial control systems must maintain the lowest error rate even in harsh environments, so safe and reliable system development is crucial. The AUR
[Embedded]
Infineon’s AURIX™ and TRAVEO™ series of microcontrollers expand support for IEC 61508 software and hardware specifications
Serial communication design between ARM and microcontroller under Linux
0 Introduction In the data acquisition system, since the single-chip microcomputer focuses on control and has weak data processing capabilities, it is cumbersome to operate the collected data. If the communication with the host computer is carried out through the serial port, the design efficiency can be im
[Microcontroller]
Digital Temperature Servo Control System Based on Microcontroller
1 Introduction Indoor climate is an artificial climate that is most closely related to human health. With the improvement of people's material living standards, various electrical appliances that adjust indoor climate have increasingly entered ordinary people's homes. Indoor climate has become more and more
[Microcontroller]
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号