Download presentation
Presentation is loading. Please wait.
Published byLeslie McBride Modified over 9 years ago
1
ECSE436 Tutorial HWI Laurier Boulianne
2
L. Boulianne Questions
3
L. Boulianne Outline Polling vs Hardware Interrupts Interrupts Implement Interrupts on the C6713 Assignments
4
L. Boulianne POLLING vs HWI 2 ways to get information in and out Polling Hardware Interrupts HWI is more efficient
5
L. Boulianne Hardware Interrupts
6
L. Boulianne Hardware Interrupts
7
L. Boulianne Hardware Interrupts
8
L. Boulianne Interrupt Handler Create a project as usual, make sure to create a DSP/BIOS configuration file In order to enable interrupts, we need to do a few changes in the configuration file (.cdb).
9
L. Boulianne Interrupt Handler First, in the configuration manager, expand the scheduling folder Right-click on the “TSK - Task Manager” item, select “Properties”, and ensure that the Task Manager is NOT enabled
10
L. Boulianne Interrupt Handler Expand the “HWI - Hardware Interrupt...” item, and select any of the interrupts from HWI INT4 to 15. Right-click on it, select properties.
11
L. Boulianne Interrupt Handler Change the “Interrupt Source” to “MCSP 1 Receive”, and the “function” to the name of your interrupt handling routine, preceded by an underscore
12
L. Boulianne Interrupt Handler Still in properties, select the “Dispatcher” tab, and enable it. Leave the other values unchanged.
13
L. Boulianne Changes in your C code In your main function, after all other initializations are done (DSK6713 init(), AIC23 configs, etc.), write IRQ_enable(IRQ_EVT_RINT1); IRQ_globalEnable();
14
L. Boulianne Changes in your C code Finally, write your ISR. Do not forget to use the name that you entered in the configuration manager (minus the underscore) void myHandler(void) {...your code... }
15
L. Boulianne Double Buffering Remember that you need some way to process the data without it being overwritten with new data, so you need to implement some sort of double-buffering scheme B A Write Data Process Data
16
L. Boulianne Questions
17
L. Boulianne Assignments Read C6713 One-day Workshop from TI (chapter 2) (WebCT) Redo exercise given in the handout, but this time handle the I/O with interrupts instead of polling
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.