Find out how to setup your programmer's software and how to solve many common problems.
- Posts: 1
- Joined: Mon Jun 02, 2014 9:13 pm
Code: Select all
/* Main.c file generated by New Project wizard
* Created: Tue Jun 3 2014
* Processor: PIC16F877A
* Compiler: HI-TECH C for PIC10/12/16
#define _XTAL_FREQ 20000000
any idea why the led not on?
- Support Volunteer
- Posts: 2823
- Joined: Tue Sep 08, 2009 12:07 pm
- Location: Philadelphia, USA
Where are the CONFIG bits set?
Try stepping through your code in the MPLAB Simulator.
Try just setting the LED on without reading an input first.
Does port B & D have any other features (analog) that you must disable, enable Digital IO.