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.
The code is show below.
Is there any error in code, please let me know.
#include<AT89X52.h>
#include<stdio.h>
SP_ISR(void) interrupt 4 {
unsigned char p2_data=0x01;
p2_data=P1;
SBUF=p2_data;
while(!TI);
TI=0;
}
char bdata pcond=0x00;
sbit p=pcond^7;
void main (void)...
The problem of flickered data of TX pin no. 11 is still existing even when pull up resistor circuit at Port P1 is attached. Is it hardware poblem or software problem???
can any one suggest me the solution.......
I have included the pull up resistance circuit as you sent. But the porblem still existing with some flickering.
Also when switches are on/off at random the flickering present but no flickering present when switches are ON in an order from switch 1 to switch 8 and vise versa OFF in reverse order...
for taking input from switches on port 1, IC 74LS245 is used.
i.e IC 74LS245 takes input from switches and sends these outputs to port 1 of microcontroller AT 89C52. Nothing else (push up or pull up) is used.
hmmmmmmmm! I think I should use pull up resistors to kill flickering??
IF it is yes...
I have a simple program that reads data from port 1 of AT89C52 and writes it to TX serial pin. Data bits corresponding to Pin 1,2, 5, and 8 of port 1 are stable but on pins 3,4,6 and 8 of port 1 flickering or unstable data bits are coming. I have tried many tests to kill the problem in which I...
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.