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.
@tx as pc sends some character to zigbee @ rx zigbee receives and sends to controller ,already the code is written in controller so it works according to that
hai sir got output i modified the code as
void timer0()interrupt 0
{
//lcd_cmd(0x01);//
hr1=0;hr=0;
min=0;min1=0;
sec=0;sec1=0;
count=count++;
lcd_cmd(0xC0);
lcd_data_string("count=:");
value=(count/10);////////////for ascii conversion. it ll count upto 99...
sir i need the counter to count how many times i reset the time .i used lcd_cmd(0xc8)(i think that "conut=" ll take 6 or 7 positions in lcd after that my counting value ll be shown) to display counter value at that position but i don't know how to get that value to that position.......sir i am...
..... sir now implementing whenever i press switch(ground),the counter increment to 1.(sir i think external h/w interrupts are low level interrupt so its working when i connected to GND instead of switch).
for counting i changed the code like this
void timer0()interrupt 0
{
hr1=0;hr=0...
sir i tried my level...i put the code like this
void timer0() interrupt 1
{
min1=0;
hr1=0;
sec1=0;
}
and i initialized IE=0x84; for external hardware interrupt INT1 in the main program but didn't got output.
sir i got output to display time in lcd using 89s52.but i need the help whenever i press the switch in the board the time will start from beginning using external interrupt.
here is the code how to modify the code.
#include<reg51.h>
#define cont_port P3
#define port P1
#define dataport P2 //...
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.