Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 19th April 2008, 02:51 PM   (permalink)
Experienced Member
ahmedragia21 is an unknown quantity at this point
Default PIC cant blink LEDS

Hi, im using PIC16F877A , and im using the compiler MikroC example Blinking LEDS in portC and it doesnt blink the leds ...
I use a universal programmer , here's a pic of the configurations .. .
all the connections are correct MCLR tied to VCC, VDD to 5V,VSS to GND , i use 11MhZ osc
Attached Images
File Type: png confg.PNG (74.6 KB, 23 views)
ahmedragia21 is offline   Reply With Quote
Old 19th April 2008, 03:13 PM   (permalink)
Experienced Member
mister_e is on a distinguished road
Default

Could you attach your code and .HEX files in a .ZIP file format here?
__________________
Steve
______________________
info@mister-e.org
www.mister-e.org
mister_e is offline   Reply With Quote
Old 19th April 2008, 03:19 PM   (permalink)
Experienced Member
ahmedragia21 is an unknown quantity at this point
Default

hex and code
Attached Files
File Type: zip LED_Blinking.zip (747 Bytes, 8 views)
ahmedragia21 is offline   Reply With Quote
Old 19th April 2008, 03:39 PM   (permalink)
Experienced Member
mister_e is on a distinguished road
Default

Your .HEX file work for me, nothing really bad in your code. Double check your hardware and if your universal programmer is set to program the configuration fuses.
__________________
Steve
______________________
info@mister-e.org
www.mister-e.org
mister_e is offline   Reply With Quote
Old 19th April 2008, 03:41 PM   (permalink)
Experienced Member
ahmedragia21 is an unknown quantity at this point
Default

thanks for the check , but i dont know how my universal programmer works with PICs ... i posted a pic of the configuration , would you check it ?
ahmedragia21 is offline   Reply With Quote
Old 19th April 2008, 03:53 PM   (permalink)
Experienced Member
mister_e is on a distinguished road
Default

I don't know this programmer and they seems to use a weird syntax. What happen if you click on the ReadCFG button?

Doesn't seems he read/updae the config fuses automatically when you load the .HEX in your software... well from what i see on your picture...
__________________
Steve
______________________
info@mister-e.org
www.mister-e.org
mister_e is offline   Reply With Quote
Old 19th April 2008, 04:10 PM   (permalink)
Experienced Member
arhi is just really nicearhi is just really nicearhi is just really nice
Default

Quote:
Originally Posted by ahmedragia21
hex and code
works like a charm .. I tested it on mikroe easypic board and also programmed using: http://www.oshonsoft.com/picprog.html (simple 13V parallel port programmer )
arhi is offline   Reply With Quote
Old 19th April 2008, 04:18 PM   (permalink)
Experienced Member
ahmedragia21 is an unknown quantity at this point
Default

i dont know really where's the problem , im really so frustrated now
ahmedragia21 is offline   Reply With Quote
Old 19th April 2008, 04:20 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

Quote:
Originally Posted by ahmedragia21
i dont know really where's the problem , im really so frustrated now
Your problem appears to be the way your programmer is setup.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 19th April 2008, 04:24 PM   (permalink)
Experienced Member
eng1 is a glorious beacon of lighteng1 is a glorious beacon of lighteng1 is a glorious beacon of lighteng1 is a glorious beacon of light
Default

Quote:
Originally Posted by ahmedragia21
i dont know really where's the problem , im really so frustrated now
As pointed out by mister_e, it seems that the software is not configured to handle the config settings properly. Try reading the PIC as suggested; what value do you get?
The config word saved within the hex file is 0x3F7A (read with IC-Prog)

Last edited by eng1; 19th April 2008 at 04:32 PM.
eng1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
LEDs to blink with music Musicn00b08 Electronic Projects Design/Ideas/Reviews 3 27th March 2008 01:17 AM
Adding LEDs to ICs (PIC - MAX232) Suggestions? johankj Electronic Projects Design/Ideas/Reviews 2 18th February 2008 01:26 PM
Introduction to High Brightness LEDs and Thermal Management Ocelaris Electronic Projects Design/Ideas/Reviews 3 17th March 2007 05:35 AM
Problems with Dual Brightness (Current) LED Tail Lights? Eagle Schematics! Ocelaris Electronic Projects Design/Ideas/Reviews 12 31st December 2006 06:17 PM
LEDs to blink like lightning mattyfab General Electronics Chat 4 28th December 2005 08:08 PM



All times are GMT. The time now is 11:50 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.