Digital Output
This page contains examples of four program tasks using an enhanced mid-range PIC MCU. Each example page shows both the assembly and C language code needed to complete the task.
These examples were created with MPLAB X IDE. Information on the IDE, Project, and Configuration Bit settings for each of these examples is given below.
This example program turns on LED1 by outputting a logical '1' to RD1 (i.e. PORT D, bit 1).

