Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
now after takes ur advices the cursor is only moving on lcd and there is nothing displayed, so any one can please check out the subroutine "CONVERT" which is used to get the ASCII code for the number to display it on LCD.
Re: why this code desn't work
i try it but it still not work i guess that the problem in the initialization of LCD , may be the routine"LCDCMD" isn't in the right position.
Re: why this code desn't work
i mean that this program must take the counter value and display it on LCD but it's display any thing , so can u help me to find the problem in this code.
thanks for ur answer i try it and it's work correct , but if i get this error "MISSING FUNCTION PROTOTYPE"
what does it mean????
here is my new code
#include<reg52.h>
#define lcd P2
sbit en=P3^0;
sbit rs=P3^1;
sbit rw=P3^2;
void main(void)
{
unsigned char z;
lcdcmd(0x38);
delay(250)...
hi,
iam a beginner in c programming , when i type this simple code on keil i found about 15 errors .
here is my code and also here is a list with the types of errors.
code:
#include<reg52.h>
void delay(unsigned int)
void main(void)
{
P2=0X55;
delay(250);
P2=0xAA;
delay(250);
}
void...
i have connected my gsm modem with computer using hyper-terminal but here is a problem on windows xp the hyper-terminal when i opened the window when i try to write any command there is no letters wrote on screen..
i.e; if i try to write any thing the screen is white always , so i try another xp...
Re: 8051 hang up problem
I have servery my code an i am sure that is right but , when i changed it , it's output still not correct, but sorry i want to correct something when i said hang up i mean that the out put is not correct , because am using a LCD 2x16 and the output on it is wrong , so i...
i have already set up my project but the controller always hang up after power on , why it's hang up , and what is the resources affects on 8051 to hang it up????
and how can i solve this problem?????
first thank u for your reply
but i have already do these previous steps
but i asked for how can i sub the number from 65535 and then take this number to load the counter.
hi , sorry for my English
i have connected my project (8051 interface with keypad), the keypad output is in decimal,
so by example (if i write 800 using keypad)i want to take this number and then subtract this number from (65535) and then load the counter (TH0 , TL0) with the output result from...
how to increment six digits in 8051 ????
by example if i have 123456 (how can i increment the first number "6" to reach to 9 and then became "0" and became 123460 and so on for all numbers)
i want to use a pnp phototransiotr to get the photo light pulse from a device and get then the output from the photo transistor the device is an electronic digital meter produce it's pulses from a led which gives a pulses light for each turn and then i want to take these pulses with a photo...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.