chap9/ledsw1_timer2.c File Reference

#include "pic24_all.h"

Go to the source code of this file.

Defines

#define CONFIG_LED1()   CONFIG_RB14_AS_DIG_OUTPUT()
 LED1.

Functions

void CONFIG_SW1 ()
 Switch1 configuration.
void CONFIG_SW2 ()
 Switch2 configuration, does not have to be debounced.
int main (void)


Detailed Description

Demonstrates the use of a period interrupt to sample a switch input, removes the need for debounce delays. All of the FSM work is done in the ISR.

Definition in file ledsw1_timer2.c.


Function Documentation

int main ( void   ) 

PIO config

Configure the Timer

Definition at line 167 of file ledsw1_timer2.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8