I'm building a simple c program for the basys mx3,
I'm trying to have the screen blink every second, but with the ability to change operate in the meantime, for example blinking screen + hitting buttons for change letters on the screen.
Because i don't want the device to 'freeze' during the waiting period (blink each second) i don't want to use "sleep(1)"
Can i use the interrupts in the MX3 for this cause?
can i somehow tell the device to send an interrupt every second, and create an "interrupt handler" that does XYZ operations?
I've read the programming documentation, but without any example on that matter (callback functions for interrupts, etc.)
Question
dvg
Hi,
I'm building a simple c program for the basys mx3,
I'm trying to have the screen blink every second, but with the ability to change operate in the meantime, for example blinking screen + hitting buttons for change letters on the screen.
Because i don't want the device to 'freeze' during the waiting period (blink each second) i don't want to use "sleep(1)"
Can i use the interrupts in the MX3 for this cause?
can i somehow tell the device to send an interrupt every second, and create an "interrupt handler" that does XYZ operations?
I've read the programming documentation, but without any example on that matter (callback functions for interrupts, etc.)
thanks a lot for the help.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.