??? 08/25/08 09:55 Read: times |
#157730 - P3.2= INT0..1 Responding to: ???'s previous message |
Dear priyam,
When u are using interrupt, ur software need not to check the status of pin. Whenever, there will be interrupt, Program will automatically go to ISR( in ISR u neednot to check status of interrupt pin). Also ISR is called in two cases only: 1. P3.2 changes status from high to low( in edge triggered mode).( it is actually -ive edge triggered not just any edge triggered so transactions from high to low will trigger and trasaction from low to high wont.) 2. P3.2 is at low (in level triggered mode), when interrupt is enabled. If ur system is practicle one. I think u can directly drive LED from Sensor (whatever u r using )output as you want LED to glow when output of sensor is high and turn LED off when sensor output is low. Why do u need microcontroller at all? I guess some objectives are missing. I am not able to catch, why are r u doing this? Mail me for anymore details. |
Topic | Author | Date |
pls help....8051 external interrupts | 01/01/70 00:00 | |
show definition of "a" variable | 01/01/70 00:00 | |
definiton : sbit a=P3^2; | 01/01/70 00:00 | |
Need more information | 01/01/70 00:00 | |
the entire code | 01/01/70 00:00 | |
keyscan | 01/01/70 00:00 | |
How the LED are connected? | 01/01/70 00:00 | |
One tip | 01/01/70 00:00 | |
P3.2= iNT0 | 01/01/70 00:00 | |
P3.2= INT0 | 01/01/70 00:00 | |
pin 3.2 | 01/01/70 00:00 | |
P3.2= INT0..1 | 01/01/70 00:00 | |
Obvious Reason | 01/01/70 00:00 | |
time duration | 01/01/70 00:00 | |
mistake | 01/01/70 00:00 | |
ok thanks alot | 01/01/70 00:00 | |
? | 01/01/70 00:00 | |
GATE0/1 ? | 01/01/70 00:00 | |
no | 01/01/70 00:00 | |
try | 01/01/70 00:00 | |
Debounce maybe? | 01/01/70 00:00 | |
Solution | 01/01/70 00:00 | |
interrupt flag bit clear | 01/01/70 00:00 | |
Detecting Both Edges - A very old trick![]() | 01/01/70 00:00 |