Forum Replies Created
-
AuthorPosts
-
speedoParticipant
thank you very much for the help. its already working its seems that the problems lies within my connections thank you again !!! ))))
speedoParticipantBuild target ‘Target 1’
compiling main.c…
MAIN.C(1): error C103: ‘<string>’: unclosed string
MAIN.C(1): error C141: syntax error near ‘<string>’
main.c(1): warning C318: can’t open file ‘<REGX51.H’
main.c(1): error C305: unterminated string/char const
LCD.H(17): error C202: ‘P2_0’: undefined identifier
LCD.H(18): error C202: ‘P2_1’: undefined identifier
LCD.H(19): error C202: ‘P2’: undefined identifier
LCD.H(20): error C202: ‘P2_2’: undefined identifier
LCD.H(22): error C202: ‘P2_2’: undefined identifier
LCD.H(30): error C202: ‘P2_0’: undefined identifier
LCD.H(32): error C202: ‘P2_1’: undefined identifier
LCD.H(35): error C202: ‘P2’: undefined identifier
LCD.H(36): error C202: ‘P2’: undefined identifier
LCD.H(37): error C202: ‘P2_2’: undefined identifier
LCD.H(39): error C202: ‘P2_2’: undefined identifier
LCD.H(42): error C202: ‘P2’: undefined identifier
LCD.H(43): error C202: ‘P2’: undefined identifier
LCD.H(44): error C202: ‘P2_2’: undefined identifier
LCD.H(46): error C202: ‘P2_2’: undefined identifier
LCD.H(50): error C202: ‘P2_0’: undefined identifier
Target not createdi just changed the include <AT89X52> to #include <REGX51.H> and then change the device from At89S52 to At89C51 is that the correct way to do that. im so sorry i really dont have any idea about mcu programming
speedoParticipanti understand but i have done it many times before but still error occurs. or am i missing something?
speedoParticipantoh i see, that settles it.also they belong to 8051 family. how about the “include <AT89X52> or the library ” do i need to change that if i will use AT89C51? if yes how can i do that? ive tried many times changing it but errors occurs whenever i convert it to hex file using KeilUvision. thanks again for your tym
speedoParticipantok sir i will try it tomorrow. By the way this is the schematic diagram that im using for the project. i have used AT89C52 here because AT89S52 is not available in Proteus(ISIS) which i used to simulate the circuit.and luckily it is working just fine.also the circuit and codes(i posted earlier) is working even if i use AT89C51. can i ask how it is possible? wysiwyg_imageupload:7217:thank alot for helping me
speedoParticipantSir Mohamed Abbas i am sure that i used the correct crystal frequency which is 11.0592MHz . thank you for the reply
speedoParticipantSir Ajish Alfred thank you for the reply. i would really like to check if the lcd/microcontroller is working but i dont how to program simple codes to test it. i only downloaded the codes l.can i just use this LED Blinker code i have downloaded in the internet?
#include <REGX51.H> // it is the header file of AT89S52 µcontroller
#define LEDPORT P2 // define PORT P2void Delay(void); //Function prototype declaration
void main (void) {
while(1) //End less while so that program never ends
{
LEDPORT = 0×55; //01010101 binary
Delay();
LEDPORT = 0xaa; //10101010 binary
Delay();
}
}
void Delay(void)
{
int j; int i;
for(i=0;i<10;i++) // for() loop
{
for(j=0;j<10000;j++); // delay loop
{
}
} }thank you again sir
-
AuthorPosts