Go to Post Weight down low is a good thing. Weight up high is not. - s_forbes [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 10-06-2008, 23:02
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,520
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
PIC16F877 not executing?

I realize this is kind of a long shot, but I've got the PIC in a breadboard that worked perfectly fine yesterday, using the same code that worked yesterday. I pulled out a soldered contact carrying the power supply, and didn't bother to fix it until today. But after fixing it, I don't think the code is executing. For some unknown reason, the debugger is giving me an MCLR error which I can't seem to solve, but the ICD works. It downloads the code without a problem, but when I try and run it, nothing happens. When my original code (which is supposed to control the robot based on an ultrasonic sensor) did nothing, I figured perhaps I made a mistake, so I wrote something to make an LED blink, which didn't do anything either. I checked the pins with a voltmeter, just to make sure, and didn't see any change. Also, I checked the power rails, and those are fine (+5 volts). Just for kicks, I plugged the motor controller into +5 volts, and it worked fine. I checked multiple times for loose wires, and found none.

If I fried the PIC, the code wouldn't download would it?

Is this a symptom of some other error?

I thought the most likely thing would be that I just wasn't plugging things in the right places, on the breadboard, but I've checked that more times than I can count, and tried placing them in other slots just to make sure, and there was no change.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11
Not GP vs. GP Taylor Games/Trivia 37 27-10-2006 18:54
Interrupt timer, executing code asap? SeanCassidy Programming 10 07-03-2004 01:47
Match Pairings not random (not even close!) Norm M. General Forum 74 31-03-2003 08:22
To be or not to be Chubtoad Chit-Chat 17 19-03-2002 07:01


All times are GMT -5. The time now is 00:02.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi