Society of Robots - Robot Forum
Software => Software => Topic started by: canatan on July 04, 2009, 09:04:58 AM
-
hi,
i was wondering if one can use external interrupts and the timer interrupt together... ?? i was trying and it didnt work out .. anyhoo...
do all registers have to be defined in the beginning?? like tcon and tmod??
the timer interrupt is enabled in the beginning
but i want to enable the external interrupt later in the code...
is that possible?
what am i missing here ?
please help.
thankyou
-
Hi canatan,
You should definitely be able to use the interrupts together.
Are you enabling the interrupts globally?
Try using the sei command on an AVR chip.
sei();
Hope this helps,
Mike
-
Hi canatan,
You should definitely be able to use the interrupts together.
Are you enabling the interrupts globally?
Try using the sei command on an AVR chip.
sei();
Hope this helps,
Mike
He is not using an AVR but an Intel 8051.
Do you have a link to the datasheet? You should be able to do it, but I guess 8051 supports interrupts priorities and this might be tricky.
Chelmi.