Quick Question: Periodic Interrupts AND pin-triggered interrupt?
Unfortunately, I don't have my dev board with me, and I need to select a chip for a layout.
for a project, I need to do a PWM output, and I need to monitor a portB pin to trigger an interrupt.
Can I use the SX-28 and set the Interrupt to be periodic (to run a pwm) *AND* still trigger an interrupt from the PortB Pins (to execute other interrupt code)?...or do I need to use the SX-48 and have the·PWM running in a different section?
Sorry for asking.· I wish I had my chips in front of me to find out myself, but I don't.· [noparse]:([/noparse]
·
for a project, I need to do a PWM output, and I need to monitor a portB pin to trigger an interrupt.
Can I use the SX-28 and set the Interrupt to be periodic (to run a pwm) *AND* still trigger an interrupt from the PortB Pins (to execute other interrupt code)?...or do I need to use the SX-48 and have the·PWM running in a different section?
Sorry for asking.· I wish I had my chips in front of me to find out myself, but I don't.· [noparse]:([/noparse]
·
Comments
-Phil
Addendum: Here's the ISR structure I use to accommodate both kinds of interrupts (assumes turbo mode and 1:4 RTCC prescaler):
Post Edited (Phil Pilgrim (PhiPi)) : 9/18/2008 9:37:54 PM GMT
I forgot to note: my code example is for turbo mode with a 1:4 prescaler on RTCC. Other settings will entail changing some constants in the code.
-Phil