Interrupt Procedure

Status
Not open for further replies.

jmmjvg

New Member
Dear All,

Is it possible to set an interrupt procedure within another interrupt procedure? For example, I am reading data from one sensor, and want to read data from a second sensor simultaneously.

Thanks in advance!
 
What processor?

You can normally read as many sensors as you wish during an interrupt routine. Are you asking about re-entrant interrupts? Multiple interrupt sources? A timed interrupt that poles sensors?

More information would be helpful.

Mike.
 
Counting

I'm working with an incremental encoder and a contact sensor, and need to keep count of both (I need to know the duration of contact until a critical angle is reached) I'm working with a PIC16F87XA. Apologies for my imprecisions. I remain available to supply you with what further information I can.

Thanks,
 
Not really, there's only one interrupt vector, and VERY limited stack size - but PIC's are so fast it would be VERY unusual not to be able to do it.
 
How fast, in pulses per second, could your encoder run at maximum speed?
Is your encoder 2 phase - can you tell which way it turns?
What time range can your contact sensor produce?
What speed are you running your 87X?

The reason I ask is that most mechanical systems are sooo slow compared to a pic that timed polling is normally sufficient.

Mike.
 
Thanks

I'm not sure what polled timing is, but we decided to use a potentiometer instead. It is easier to work with absolute angular position, and it offers enough precision for my application.

Regards,
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…