| ??? 02/05/01 17:33 Read: times |
#8980 - RE: External Interupt 0 |
Hi everyone ,
Craig you are right in fact he was also angry with me that I always call simon and make fun out of him but I never want to hurt anyone intentionally or unintentionally so simon please wait!!! Ranjit try this code I have just now written it if you have troubles we'll see . ;tie your ttl transitions to pin 3.2 ;the r0 register will get incremented ;and will hold the no of count of your ;interrupts ea_byte equ 01h ;interrupt enabled org 0h sjmp start org 3h jnb p3.2,$ ; wait inc r0 ; use r0 to count # of int0's reti start: mov ie,#ea_byte mov r0,#00h setb it0 ; int0 is edge sensitive low level only end PS:I have not tested it you can test it and tell if it works or not some work has to be done with it like after a particular count make led glow find bug etc etc. sanjeev |
| Topic | Author | Date |
| External Interupt 0 | 01/01/70 00:00 | |
| RE: External Interupt 0 | 01/01/70 00:00 | |
| RE: External Interupt 0 | 01/01/70 00:00 | |
| RE: External Interupt 0 | 01/01/70 00:00 | |
| RE: External Interupt 0 | 01/01/70 00:00 | |
| RE: External Interupt 0 | 01/01/70 00:00 | |
RE: External Interupt 0 | 01/01/70 00:00 |



