??? 08/13/07 16:36 Read: times |
#143185 - Read what the message tells you! Responding to: ???'s previous message |
Rodrigo Lamounier Teixeir said:
I'm having problems when i try to run the program using the softwate Keil. You need to understand that this is not running your software! At this point, you are running the Keil Compiler, which is the first step in converting your human-readable source code into a machine-executable format. ...reports a buch of errors on the output window. The messages are there to enable you to identify the error, and fix it - so read them carefully! eg, The Keil Compiler said:
PROGRAMA#1.C(13): error C202: 'TMOD': undefined identifier From your 'C' (not C# - though it's probably the same) textbook, you should know that an "identifier" is the name of a variable, function, etc; You should also know that an identifier must be defined before it can be used - and the compiler is telling you that this particular identifier has not been defined (ie, it is undefined) So the solution to this error is to provide a definition for the identifier "TMOD" Similarly for all the rest. As Andy Curda said, these are probably supposed to be definitions for the 8051's SFRs (Special Function Registers), and these are normally supplied in a so-called "Header" File by the device manufacturer amd/or the compiler supplier... Again, Header Files are a standard part of the 'C' language, so are covered in any 'C' textbook |
Topic | Author | Date |
Programming in C# | 01/01/70 00:00 | |
looks like C to me | 01/01/70 00:00 | |
Me too! | 01/01/70 00:00 | |
Thanks! | 01/01/70 00:00 | |
Back to basics! | 01/01/70 00:00 | |
project! | 01/01/70 00:00 | |
Have you discussed this with your supervisor(s)? | 01/01/70 00:00 | |
Problem! | 01/01/70 00:00 | |
no problem | 01/01/70 00:00 | |
know problem | 01/01/70 00:00 | |
correct | 01/01/70 00:00 | |
re: thanks | 01/01/70 00:00 | |
Read what the message tells you! | 01/01/70 00:00 | |
not Keil C | 01/01/70 00:00 | |
the Nops | 01/01/70 00:00 | |
Gee .. I thought that was for BIG prorgams. | 01/01/70 00:00 | |
Gee.that is a big problem but im not at that level | 01/01/70 00:00 |