I need help on reading 8bit from port0 on receiving int0 interrupt.Based on the received data i want to send some data on port0. for this any one can help me programing ? I am using atmel 89c52 Mcu
void int_0 (void) interrupt 0 { P0 = 0xFF; // Setup P0 for input if (P0 == 0x34) // Read P0, if == 0x34 P0 = 0x45; // Write 0x45 to P0 }
Thanks for the pro. If i am correct the programe ge activated on sensing the int0 pin low.Then it writes 1 to the port and reads from port and latter writes to port.
Your specification is a bit vague. What do you actually have connected to PORT0? What mechanism allows you to both read from it and also write to it?
I am using pdiusbd12 at the other en of port0
dear keil I need to make programer for 8051SND1. PLZ help
I need to make programer for 8051SND1. WHY?, it is an ISP chip Erik