chap8/ledtoggle.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.
int main (void)


Detailed Description

A program that uses a finite state machine approach for toggling an LED whenever a pushbutton switch is pressed and released. Demonstrates the use of debounce delays when polling a switch input.

Definition in file ledtoggle.c.


Function Documentation

int main ( void   ) 

GPIO config

Definition at line 79 of file ledtoggle.c.


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