chap8/ledflash_nomacros.c File Reference

#include "pic24_all.h"

Go to the source code of this file.


Detailed Description

A simple program that flashes the power LED, does not use I/O macros. RB15 is configured as an open drain output, and drives an LED at the junction between the LED and a pullup resistor to VDD. When RB15 is driven low, the LED is off. When RB15 is driven high, the RB15 output floats because of the open drain, and so the LED is turned on by the pullup resistor to VDD. This allows the power LED to function as a 'blinky' LED in addition to serving as a power indicator.

Definition in file ledflash_nomacros.c.


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