Getting STARTed with AVR® - Ep. 6 - Trigger Conversions on Event for ADC in Window Comparator Mode | Videos
Getting STARTed with AVR® - Ep. 6 - Trigger Conversions on Event for ADC in Window Comparator Mode
- Reconfigure the AVR START project, enabling an outside window comparator configuration, as well as enabling the Window Comparator IRQ.
- View diff in driver_isr.c, copying the generated code we want to keep.
- Add a graph in the Data Visualizer, confirming we now have a window in which we get no ADC results.
- Reconfigure the AVR START project, adding the Event System component. Then using the drag and drop functionality of the Event System configurator, in order to use the RTC overflow event to trigger an ADC conversion.
- Remove the RTC overflow ISR, since we are now using an event.
- View diff in driver_isr.c, noting the code we need to delete.
- Demonstrate equivalent functionality to the first half of this video, now without IRQs, completing the project.
http://start.atmel.com/