C language C51 statements for single chip microcomputers

Publisher:zeta16Latest update time:2021-07-08 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere


(1) return;


(2) return (expression);


If the return statement is followed by an expression, the value of the expression is calculated and used as the return value of the function. If there is no expression, an indeterminate value will be returned when the function returns. Usually we use the return statement to return the value obtained by the calling function to the main calling function.


[1] [2]
Keywords:MCU Reference address:C language C51 statements for single chip microcomputers

Previous article:Functions of single-chip microcomputer C language C51
Next article:Input and output of single chip microcomputer C language C51

Recommended ReadingLatest update time:2024-11-16 15:55

PC computer and single chip microcomputer serial communication source program
The following is a program for a single-chip microcomputer to communicate with a PC. The PC program is written in C language, and the single-chip microcomputer program is written in assembly language. 1. PC programming PC uses Toubr C for programming. The program is as follows: #include stdio.h #de
[Microcontroller]
Design of image acquisition system based on STM32F417 microcontroller
    Video image acquisition and processing systems are widely used in industrial control, industrial detection, medicine, machine vision and other fields, and video communication is an important part of multimedia applications in the 3G era. Real-time image acquisition is the core technology of digital cameras, video
[Microcontroller]
Design of image acquisition system based on STM32F417 microcontroller
Summary of four methods to expand 51 MCU interrupts
Introduction: There are only two external interrupt source input terminals in the MCS-51 series microcontrollers. When there are more than two external interrupt sources, they must be expanded. The following introduces several simple expansion methods. 1. Use hardware request and software query method: This method i
[Microcontroller]
Summary of four methods to expand 51 MCU interrupts
51 single chip microcomputer-digital tube decimal point
1. Display decimal point We may have overlooked that there is a LED on the digital tube, which is in the lower right corner. Usually, we light up this little dot to indicate the decimal point of a number. Is there any way to keep this decimal point lit even if the displayed number keeps changing? We can't create a
[Microcontroller]
51 single chip microcomputer-digital tube decimal point
Hardware design of greenhouse intelligent controller based on single chip microcomputer
  In recent years, greenhouse environmental control has been studied and applied accordingly at home and abroad. Most of the existing intelligent greenhouse system hardware in China is imported from abroad. The foreign system has undergone years of development and improvement and is relatively mature and advanced in t
[Microcontroller]
Hardware design of greenhouse intelligent controller based on single chip microcomputer
Research scheme of photoelectric tracking servo system based on MSP430 single chip microcomputer
  The research design utilizes the principle that photosensors are sensitive to light signals in a specific wavelength range, combines a four-quadrant photoelectric position detector with an MSP430 series single-chip microcomputer, and based on the linear relationship between the output voltage of the four-quadrant ph
[Microcontroller]
Research scheme of photoelectric tracking servo system based on MSP430 single chip microcomputer
Programming to implement single chip microcomputer ds18b20 temperature measurement and display system
Use the ds18b20 sensor on the development board to measure the current temperature, and use the digital tube to output the current temperature value. Achievement results: The test results show that the current temperature is 25.3 degrees Celsius. Implementation principle: (1) Independent digital tube Digital tu
[Microcontroller]
Programming to implement single chip microcomputer ds18b20 temperature measurement and display system
Oscillator Configuration Method of PIC Series Microcontroller
PIC series microcontrollers can work in different oscillator modes. Users can choose one of the following four oscillation modes according to the needs of their system design. The oscillation frequency range is between DC and 20/25MHz, as shown in Table 1. Users can choose one of the four oscillation modes shown in
[Microcontroller]
Oscillator Configuration Method of PIC Series 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号