Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC18F4520 : LED Blinking

Status
Not open for further replies.

karan123

Member level 3
Member level 3
Joined
Feb 2, 2009
Messages
55
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,710
pic18f4520

ello,

I am new For PIC MICROCONTROLLER (PIC18F4520) Series.

I have successfully Write Program for Blink LED and Checked on
MPLAB Simulator.

Now I have to Check that with Actual Hardware.

I have Connected

C1 and C2 22 pF and X'Tal of 4.00 MHz

PIN 13 and 14 for Osc.

PIN 32 and 11 to VCC.

PIN 31 and 12 to GND.

RESET Switch ON PIN 1 with GND

LED CONNECTED ON PIN2 RA0.


I have successfully Program HEX file to PIC uC.

But Unable to Blink LED on Actual Hardware

Please Guide me How to Trouble shoot Above Problem?


Karan
 

led program code for pic18f4520

it should have the correct device configuration(both software and hardware)..

like if the MCLR (pin1) is not configured as digital input,
you should place a pull-up resistor from this pin to Vcc.
 
c18 blink led

Hello,

I am sending you Circuit and Code.

Please Check and Reply.


Karan
 

pic18f4520 blinking led code

I have seen the code, but I don't have C18 compiler..

I've noticed in the main code "hi.c" that there's no settings for what kind oscillator/clock is to be used.
You could change the settings either in the main code or in the IDE.
In the MPLAB IDE menu, choose "Configure" -> "Configuration Bits.."
under the "Oscillator" Category, Select either "XT" or "HS" (or whichever is applicable to your application)
 

c18 led blink

You need a cap of 100nF or more between VSS and VDD places (as close as possible to the pic).
 

pic18f4520 blinking led

Hi Mr. Karan,

I went through your post & corresponding replies.

In your schematic You have not mentioned LED positioning, connect LED with Series resistor of 1K on RA0 then try.
 

pic18f4520 code make led blink

THANKS MAN

hi everyone, im adam from france im 20
im in an internship now ,

im working on an interactive panel of monochrom leds, i have done the scheme on the electronic board using a pic18F4520 via TLC 5940 for driving 16 leds plus 2 IR leds "one transmits the signal while the second receives it" WITH MPLAB C18 in order to blink leds just by moving one's hand upon the panel, i have beeen inspired by the schemes with "arduino" micros already done on the web by other people , and i tried to do the same with the pic , i think im ready for the next level by programming the 16 leds ,I HAVE TO DO IT WITH c language, but as im not that good with C , i hope you could give me some help through this study,


I APPRECIATE ANY HELP OF THE PROGRAM I REALLY NEED IT THANKS IN ADVANCE

i have done the same with my pic **broken link removed**...

https://www.youtube.com/watch?v=Y3ulBf7NIl8 its the concept but that is analogic , im using microcontroler so as to be programmed in a digital way

THANKS FOR THE HELP GUYS
 

led blink schematic

hi all,

my problem is that i can't find eagle 4.09r2 libraries for tlc4950 and ARDUINO MINI, i've already tested some examples found on the net but all of them was conceived for eagle 5.6.0 and that wasn't accepted by the 4.09 version .so i'm really pissed off , it's making me sick ,lol, i don't know where to get them,

thank you for all suggestion
 

pic18f4520

i dont know if i can upgrade it or not i think it's not possible . have you any other suggestions ? thanks
 

c18 blink program

hi i ve done my eagle steps for my schematic and the board as well i ve got 100%, now i need to convert it to excellon and gerber formats in order to order an industrial panel with my schematic on it , how ?

thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top