PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ledsw1_timer.c File Reference
#include "pic24_all.h"

Go to the source code of this file.

Macros

#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_t 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.