chap9/ledsw1_timer.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)

Variables

volatile uint8 u8_pnrSW1 = 0
 True when SW1 has been Pressed-N-Released.


Detailed Description

Demonstrates the use of a period interrupt to sample a switch input, removes the need for debounce delays. Uses a semaphore for press & release.

Definition in file ledsw1_timer.c.


Function Documentation

int main ( void   ) 

PIO config

Configure the Timer

Definition at line 144 of file ledsw1_timer.c.


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