Home > other >  Questions about the C51 modular programming
Questions about the C51 modular programming

Time:11-21


Eldest brother, I just contact with single chip microcomputer is a small white white, want to put their own code specification point recently, result just started trying to come out, want to CSDN with guy to help the younger brother have a look at, very grateful

CodePudding user response:

There is no main program main function, the original poster to build one. C file, the main function is added and then call the delayms went,

CodePudding user response:

reference 1st floor yishumei response:
there is no main program main function, the original poster to build one. C file, the main function is added and then call the delayms,


At the same time also lack of microcontroller corresponding header files

CodePudding user response:

Create a new main. C and main.. H file, add the c # include "delayms. H" # include "STARTUP. A51" and void main (void)

CodePudding user response:

First of all, can be seen in the police, you do not have the program main function (int main (void)); All of the C language starts running, the main function without the main function of the program, system is don't know what to from local compile, second, in your delay. H inside need this statement: externa void delayms (unsigned int XMS);
  • Related