??? 09/16/06 00:29 Read: times |
#124389 - Should have stated.. Responding to: ???'s previous message |
Yes, this is a Silabs C8051F330.
And yes, the first thing I do when the interrupt is generated is disable interrupts, then the last thing is to re-enable. Regarding the IO setup, I can't figure out why push-pull or open-drain would have any bearing on the pin's behavior as an input. From the Datasheet: Step 1. Select the input mode (analog or digital) for all Port pins, using the Port Input Mode register (PnMDIN). Step 2. Select the output mode (open-drain or push-pull) for all Port pins, using the Port Output Mode register (PnMDOUT). To me this means that a given pin can be used as an input AND an output. During initialization we tell it what its input mode is AND what its output mode is..... Also, the internal weak pullups are enabled, so I thought that would be enough to stabilize the pin. Is additional external pullup required? |