gopintj
Member level 4
hi, i am very new to 8051. I have done some basic courses with pic micro controllers. Thereby, i would like to learn 8051.
I use Keil 4.10
Let me explain you how i created my first project.
I opened the keil 4.10 and selected new micro vision project from PROJECT menu and chose the destination folder. I, then selected intel 80c51 and also copied standard 8051 code and added file to my project.
Then, i got a blank space. I opened a new text document and saved my program with extension "*.c"
Then, i added that *.c file into my project and selected F7.
The program gets run and shows this message.
"Build target 'Target 1'
assembling STARTUP.A51...
compiling sample3.c...
linking...
Program Size: data=9.0 xdata=0 code=27
"sample3" - 0 Error(s), 0 Warning(s)."
But the problem is, i cant get the hex file.
This is my program
#include <reg51.h>
void main(void)
{
unsigned char z;
for (z=0;z<=255;z++)
P1=z;
}
Please anyone guide me.
I use Keil 4.10
Let me explain you how i created my first project.
I opened the keil 4.10 and selected new micro vision project from PROJECT menu and chose the destination folder. I, then selected intel 80c51 and also copied standard 8051 code and added file to my project.
Then, i got a blank space. I opened a new text document and saved my program with extension "*.c"
Then, i added that *.c file into my project and selected F7.
The program gets run and shows this message.
"Build target 'Target 1'
assembling STARTUP.A51...
compiling sample3.c...
linking...
Program Size: data=9.0 xdata=0 code=27
"sample3" - 0 Error(s), 0 Warning(s)."
But the problem is, i cant get the hex file.
This is my program
#include <reg51.h>
void main(void)
{
unsigned char z;
for (z=0;z<=255;z++)
P1=z;
}
Please anyone guide me.