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.
Hello all,
I am trying to turn on and off a LED connected to RC5 pin of PIC18F4550. But, It is not working.
I read somewhere on the internet that we cannot use RC4 and RC5 pins of PIC18F4550 as Digital Output.
So, Is this true?
Is there any way by which I can connect a LED to the RC5 pin of...
Hello Everyone,
Can anyone tell me, How to implement the delay function for PIC18F4550? I tried the simple for loop for LED blinking, But, LED is not blinking it is simply in ON state.
I used below mentioned simple for loop for delay generation.
void delay1()
{
unsigned int q...
Thanks for replying to my query.
But, when I tested simple LED blinking program on the same breadboard, one thing I found in my breadboard circuit is that there is some problem with crystal,Because, when I touched that crystal, LED started blinking and as soon as I released that crystal, LED...
Hello Everyone,
I am trying to interface 16x4 LCD with PIC18F4550.The simulation in proteus is working fine.But,I am not able to display any characters on LCD (Hardware).
I am getting only Black boxes on LCD screen, and one more thing only two lines are showing black boxes.Other two lines are...
I want to see Virtual Terminal window get opened when I start simulation in proteus. So, that I will be able to see data that I want to send to COM port in virtual terminal (In this case, I want to see "Hello" which I have assigned in my program.)
sorry, I got one correction that is, in 'for...
I am new to serial communication.I am trying to send a string(characters) on RS232 to hyperterminal software. I have tried simulation in proteus but, it is not working at all.
Can you tell me what corrections should I do in my code? What are the wrong things in my code?
Plz, Help.
I am using...
Hello,
I am interfacing ultrasonic sensor with pic18f4550 and want to display my output(sensed value from ultrasonic sensor) on lcd(16x2).
I am using timer1 and crystal oscillator frequency of 20Mhz.
My code is as below:
#include<PIC18F4550.h>
#define _XTAL_FREQ 2000000
#include<xc.h>...
I am trying to generate delay of variable length using delay function in MPLAB X IDE for PIC18F4550.
Crystal Frequency=20MHz.
Basically, I am trying to generate delay of value which will be given as a parameter to delay_us function as shown below:
Such as, delay_us(10) function will generate 10...
Plz, Help me. Not able to get correct values on LCD.
I am interfacing LM35 temperature sensor with PIC18F4550 with 20Mhz frequency.
I tried a lot. But, not getting right output.
Below is my code:
#include<P18F4550.h>
#define RS PORTCbits.RC0
#define En PORTCbits.RC1
void delay()
{
unsigned...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.