- What this example do?
- How I must configure my ORbit16™ to work with this example?
- Where I can learn more about this?
- Download this example!
What this example do?
This example will flash the led L2 on your ORbit16™ with a period of 500mS (2Hz). In other words, the led will stay 250mS ON and 250mS OFF. This result is achieved using a more efficient Interrupt tecnique. Timer1 is configured to generate an interrupt every 2.5mS. Multipling this values by 100, we achieve a precise 250mS timer. Please read the notes in the settings.h header file for further informations.
How I must configure my ORbit16™ to work with this example?
Nothing to configure. Only remember to set the jumper for USB in device mode in order to make bootloader work.
Where I can learn more about this?
My advice is to read the following free documents:
- dsPIC30F_dsPIC33F_PIC24H_Timers_Help.htm (english language)
This is an HTML file you’ve got with MPLAB C30 installation. Usually this document is located in the following folder:C:\Program files\Microchip\MPLAB C30\docs\periph_lib
Reading document this will give you extra skills in the usage of timers.
- MPLAB C Compiler PIC24 dsPIC (english language)
This is a PDF you’ve got with MPLAB C30 installation. Usually this document is located in the following folder:C:\Program files\Microchip\MPLAB C30\docs
Read the Chapter 8 – Interrupts to learn more about interrupts
- La gestione degli interrupt sui pic (italian language)
This article talks about interrupt on various picmicros family. Is located here. You can translate this page using Google Translate, but beware of the translation since Google translates the code too!