| ??? 01/24/07 05:22 Read: times |
#131349 - External Interrupt triggering on initialization |
I have some 8051 assembly that utilizes several interrupt sources including UART/SPI/external interrupt. I'm using a SiLabs C8051F330 (http://www.silabs.com/public/do...1F33x.pdf). I have an initialization function which among other things handles the interrupt setup. That portion of the code is:
Interrupts_Init: mov IE, #0D1h mov IP, #0D0h mov IT01CF, #007h //active low on P0.7 ret Why is it that directly after mov IE, #0D1h that the external interrupt triggers despite the fact that the actual signal used as the source for the interrupt doesn't EVER go low (it's active low)? Is there a way to avoid this? I've tried doing: clr EA clr EA before the mov IE instruction, but that doesn't do the trick which strikes me as strange... Thanks in advance... D |
| Topic | Author | Date |
| External Interrupt triggering on initialization | 01/01/70 00:00 | |
| Simple! | 01/01/70 00:00 | |
| yes, but..... | 01/01/70 00:00 | |
| There's probably a good reason. | 01/01/70 00:00 | |
| worth a shot...but | 01/01/70 00:00 | |
| Understanding interrupts | 01/01/70 00:00 | |
| Yes, I Know | 01/01/70 00:00 | |
| terse response | 01/01/70 00:00 | |
| tried clr IE0... | 01/01/70 00:00 | |
| clr IE ?? | 01/01/70 00:00 | |
| I do not use the SILabs deviates, but | 01/01/70 00:00 | |
| Interesting.... | 01/01/70 00:00 | |
| AH, now we get a good guess at the reason. The ex | 01/01/70 00:00 | |
| Maybe it is the part | 01/01/70 00:00 | |
| are you sure | 01/01/70 00:00 | |
| hmmm..... | 01/01/70 00:00 | |
| Hardware bug | 01/01/70 00:00 | |
| down memory lane | 01/01/70 00:00 | |
INT0 is assigned to P0.1 as the default | 01/01/70 00:00 |



