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

Go to the source code of this file.

Detailed Description

Generate a squarewave using output compare (OC1). Define the following clock configuration if you wish higher accuracy. Define CLOCK_CONFIG=PRIPLL_8MHzCrystal_40MHzFCY in the MPLAB project. Remove this macro if you wish to use the internal oscillator.

This example is implemented fundamentally different on the PIC24E/dsPIC24E

Definition in file outcompare_squarewave.c.