Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DM300019 Datasheet(PDF) 31 Page - Microchip Technology

Part # DM300019
Description  Starter Development Board Userís Guide
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DM300019 Datasheet(HTML) 31 Page - Microchip Technology

Back Button DM300019 Datasheet HTML 27Page - Microchip Technology DM300019 Datasheet HTML 28Page - Microchip Technology DM300019 Datasheet HTML 29Page - Microchip Technology DM300019 Datasheet HTML 30Page - Microchip Technology DM300019 Datasheet HTML 31Page - Microchip Technology DM300019 Datasheet HTML 32Page - Microchip Technology DM300019 Datasheet HTML 33Page - Microchip Technology DM300019 Datasheet HTML 34Page - Microchip Technology DM300019 Datasheet HTML 35Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 50 page
background image
Demonstration Program Operation
© 2006 Microchip Technology Inc.
DS51584B-page 27
3.4
DEMONSTRATION CODE OPERATION
The following sections describe in more detail how the demonstration programs
interact with and take advantage of key dsPIC DSC, DSP and peripheral features. Full
details on the peripheral functionality and associated tasks are presented later in this
document.
3.4.1
Interrupt Processing
The demonstration code samples switches S1 and S2 and uses their status to operate
the LEDs associated with processor ports RD4 and RD5, respectively. If S1 is pressed,
it sets program flag “LED1on”. If S1 is pressed again, it resets program flag LED1on.
Similarly, if S2 is pressed, it toggles program flag LED2on.
Another interrupt routine checks flags LED1on and LED2on every 500 milliseconds. If
the LED1on is true, the LED labeled RD4 is toggled on and off every 0.5 seconds,
causing the LED to blink. If LED1on is not true, the LED remains off.
This demo program is illustrated in Figure 3-1.
FIGURE 3-1:
INTERRUPT PROCESSING FLOW DIAGRAM
START
INIT TIMER 1
LED1on = LED1on
S1 Pressed?
S2 Pressed?
LED2on = LED2on
S1 Released?
S2 Released?
Yes
No
Yes
Yes
Yes
Yes
No
No
No
Start of 0.5 sec
Timer1 Init
LED1on Flag Set?
RD4 = RD4
Turn RD4 Off
LED2on Flag Set?
RD5 = RD5
Turn RD5 Off
Return
No
Yes
No
For 0.5 Sec Interval



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com