75 Threads found on edaboard.com: Lcd Display pic18f4520
nandhu015 is right, initialisation of lcd are don't done well.
Try to add some "NOP" lines or some delay before and after all sending data to lcd, so signals will have time to stabilise on lcd.
All best,
Mr.Cube
Microcontrollers :: 09.10.2010 00:25 :: mrcube_ns :: Replies: 4 :: Views: 695
Hi...
I have interfaced the lcd with pic18f4520 as...
EN - RA1
RW- RA2
RS - RA3
D4-D7 - RD0-RD3
The code I wrote, goes as follows...
#define PIN_ENABLE_lcd PORTAbits.RA5
#define PIN_RW_lcd PORTAbits.RA2
#define PIN_RS_lcd PORTAbits.RA3
#define DATA_lcd (...)
Microcontrollers :: 28.12.2010 10:10 :: scorrpeio :: Replies: 13 :: Views: 625
Hi, I am unable to initialise this 16x2
lcd display, could any one here help please? Went through past threads and still unable to solve :(
Using a
pic18f4520 with 4Mhz crystal
First line is filled with black boxes, second line is clear
#include
#include
#include
#include
#pragma confi
Microcontrollers :: 12.06.2012 10:04 :: Elekid :: Replies: 12 :: Views: 396
xjimmy, check on this page
I think 3210 has the same lcd controller as 3310.
Regards
:D
Microcontrollers :: 05.12.2003 15:23 :: zekabra :: Replies: 34 :: Views: 48187
Using ADC & display voltage value to lcd display:
result= ADRESH*256+ADRESL; // ADC Monitor
x=result/204.6; // Calculate & result in INT (x = ??)
y=result/204.6; // Calculate & result in DOUBLE (y = ??.????)
z=y-x; // Resulting z = ??.???? - ?? = 0.????
a=z*100;
hi tahmid,one last question,thanks alot by the way
i have doubt why i (...)
Microcontrollers :: 19.01.2010 01:56 :: falcoz :: Replies: 10 :: Views: 2847
Hello,
Does anyone know how to set time in RTC? We're using pic18f4520 in MikroC Pro. We tried the code below but the output in our lcd is one that is counting very fast that we cannot see the data anymore. Please help me on this endeavor. Any help is greatly appreciated. Thank you.
char seconds, minutes, hours, day, month, year; // Glob
Microcontrollers :: 01.07.2011 05:20 :: sarah.sanchez :: Replies: 0 :: Views: 477
Hi all,
I'm working on a project that makes use of RTC and the pic18f4520's ADC module on MikroC. The code that I drafted (please see below) builds in MikroC but doesn't work on breadboard. The RTC counts up but does not have a display in the lcd the whole time. Instead, it follows the delay of the ADC so the output in the (...)
Microcontrollers :: 12.07.2011 12:08 :: sarah.sanchez :: Replies: 2 :: Views: 759
Hai,
The program will be a big one, Here i post a program for RTC and lcd using pic 16f877a
So make necessary will be working one.
void write();
void read();
void read1();
void disp( int temp,int i,int j);
void main()
{
trisc.f4=0;
trisc.f3=0;
lcd8_Config(&portb,&portd,0,2,1,7,6,5,4,3,2,1,0);
Delay_ms(10
Microcontrollers :: 28.07.2011 07:05 :: ansarmytheen :: Replies: 2 :: Views: 643
Hi guys,
I have remodified the code from user manual MMC's example by interfacing to my 16x2 lcd instead UART.
sbit Mmc_Chip_Select at LATC0_bit; // for writing to output pin always use latch (PIC18 family)
sbit Mmc_Chip_Select_Direction at TRISC0_bit;
// eof MMC module connections
sbit lcd_RS at RB4_bit;
sbit lcd_EN at R
Microcontrollers :: 03.09.2011 07:03 :: Linspire :: Replies: 125 :: Views: 7626
I have several problem for my coding.
1.lcd cant display correctly when shifting my keypad input after 8 inputs from keypad.
2.lcd cant display correctly when I output the 8's keypad input with append of ".txt".
Example: when I key in ABCDEFGH with keypad.
lcd display just show (...)
Microcontrollers :: 08.10.2011 16:02 :: Linspire :: Replies: 2 :: Views: 423
Hi, I am working on a project to display the temperature from a thermistor on a lcd display. Here is a list of components I am using.
HD44780
pic18f4520
LM35cz
I am working in assembly language and my question is how to take the 10 bit ADC result my PIC gives me in the ADRES register and display it in (...)
Microcontrollers :: 26.04.2012 23:54 :: ark55800 :: Replies: 3 :: Views: 639
thank u al for replying....
i've written C code. can you guys tell me whether my code is right or not.. plz let me know any changes i should make to the program.
thank u...
////////////////////////Include Header Files/////////////////////
#include
#include
#includelcd.h>
#include
//////////
Microcontrollers :: 19.07.2012 01:41 :: 105adarsh :: Replies: 23 :: Views: 1167
Hi,
Im currently doing my school project. My task is to read the battery voltage and to display on lcd in percentage.
I'm using P18f4520 ADC AN0 channel to get the voltage from the batteries. And I'm using 4 LifePO4 batteries connected in series.
Total voltage of the batteries is about approx. 14.5V. Min V is 2.5V, and Max V is 3.7V.
I
Microcontrollers :: 07.08.2012 10:43 :: applecrepe :: Replies: 5 :: Views: 331
my maximum voltage range is 440mv and min will be 1 or 0 mv.i want to display 99% if my voltage range is 440mv else 1% for 1mv.i want to display it in lcd using pic18f4520 and i got my input from pulse oximetry sensor.please send me the coding
Microcontrollers :: 01.12.2012 05:12 :: sudhag :: Replies: 1 :: Views: 157
Hi guys, my final year project require me to program a tiny thermal sensor on the board . But i have totally no idea how to begin with. i am not planning to ask for the whole code, i only need a small tutorial on how to display word on the lcd and if there is any ways to light up the LEDs.
83954
Microcontrollers :: 05.12.2012 05:28 :: InNeedOfHelp :: Replies: 123 :: Views: 2156
Hi
I have problem in pic18f4520 lcd display.
(1) The physical set up with PCI18F4520 and lcd is using PORTDbits.RD4 and RD5 as RS and Enable. RW pin is connected to ground.
(2) I use MPLAB V8.9 and C18 compiler. 4-bit mode lcd data using PORTD.
(3) The problem is I use PICkit2 to program and use Vdd (...)
Microcontrollers :: 11.04.2013 18:00 :: eiphan :: Replies: 8 :: Views: 131
I'm using TC1602A lcd and pic18f4520 microchip. the lcd display square black box when I tried to display something. When i connect 5V from the fixed 5v power supply, it can display what I want. Can anyone tell me what wrong with it ? I tried to use potential meter to reduce the current but (...)
PCB Routing Schematic Layout software and Simulation :: 02.05.2013 04:40 :: caramelz :: Replies: 2 :: Views: 126
Hi guys, my pic18f4520 have a crystal circuit of 20mhz.
connections
DB4 to RD0
DB5 to RD1
DB6 to RD2
DB7 to RD3
RA1 to E
RA2 to R/W
RA3 to RS
lcd pin 1 to Gnd
lcd pin 2 to +5V
lcd pin 3 to GND
Please tell me what is wrong here. Is any resistor needed?
Here is the code:
//20MHZ OSCILLATOR
#include (...)
PCB Routing Schematic Layout software and Simulation :: 06.05.2013 10:31 :: caramelz :: Replies: 0 :: Views: 89
Hi guys, my pic18f4520 have a crystal circuit of 20mhz.
I want to have a 4 bit lcd.
connections
DB4 to RD0
DB5 to RD1
DB6 to RD2
DB7 to RD3
RA1 to E
RA2 to R/W
RA3 to RS
lcd pin 1 to Gnd
lcd pin 2 to +5V
lcd pin 3 to GND
Please tell me what is wrong here. Is any resistor needed?
Here is (...)
Microcontrollers :: 06.05.2013 12:45 :: caramelz :: Replies: 2 :: Views: 79
hi i'm using mcc18 compiler. I need to
display the voltage on my
lcd (tc1602A) using microcontroller (
pic18f4520). I'm stuck after while(ADCON0bits.DONE), and i dunno how to
display the value on
lcd.
Please help!
#include
#include
#include
ADCON0=0b00000001; (...)
Microcontrollers :: 15.05.2013 09:18 :: caramelz :: Replies: 5 :: Views: 132
Hi All!!!
I have one problem. I must create a schematics with lcd display and my friend make a library with this lcd with Eagle 4.11 and use this library with his schematics without any problem. Then my friend send me this library and when I try to create a new schematics I have error "Load error 290 ...bla bla bla"
I have legal Eagle (...)
PCB Routing Schematic Layout software and Simulation :: 17.06.2004 12:16 :: AndyV :: Replies: 673 :: Views: 151798
hi whiz pic....
i have pic18f4520 on hand and would like to create voltmeter, current, power and temperature to display it on 16x2 lcd for my car.
i've googled it but it doesnt help[ that much.
do u have any links?
thnx
Hobby Circuits and Small Projects Problems :: 23.11.2009 11:49 :: stereo :: Replies: 12 :: Views: 9295
is it good to have a fm transmision from the sensor to the micocontroller or from the MC to the lcd display
The answer would entirely depend on what type of sensor you have. What I would do is use a small cheap MCU (8 pin avr or something) to receive the sensor data and send the data wirelessly to the other mcu that
Microcontrollers :: 18.03.2009 03:31 :: ctownsend :: Replies: 45 :: Views: 17527
I am having the PIC dem 2 plus board. The lcd is Ocular make OM16214 and connected in 4-bit mode.
Can any provide me the datasheet of the lcd or the interface code/technique, as i have tried a lot but not successful.
Microcontrollers :: 18.09.2008 14:27 :: csr1981 :: Replies: 1 :: Views: 3738
just write "HD44780" "lcd" and "pic" on will give u a lot of information.
Microcontrollers :: 05.12.2008 01:19 :: xjackal :: Replies: 3 :: Views: 1786
I am making a real time clock. I cannot figure out how to convert the values to display in decimal form on my lcd.
example:
If I have 0x14 in my minutes variable how do I convert it to 20 decimal and display it on the lcd?
Microcontrollers :: 18.07.2009 12:12 :: Big Homey :: Replies: 6 :: Views: 1749
please, i need help on displaying characters on nokia3310 lcd screen. The best i could have were 2 or 3 layers of lines drawn at the bottom of the screen. I interfaced it with pic18f4520 and i am using 8MHz oscillator to drive the PIC. Could that be a problem because most projects use 20MHz.
My codes and circuit design runs on proteus but (...)
Microcontrollers :: 10.01.2010 08:44 :: senatorsegun :: Replies: 2 :: Views: 1678
i have LM35 and would like to display temperature on the lcd. im able to display current and voltage using ADC with pic18f4520.
on the lcd, it displays voltage and current. how can i blank the lcd, put 0.5sec delay and display temperature using LM35 (...)
Microcontrollers :: 02.02.2010 03:12 :: stereo :: Replies: 2 :: Views: 930
hi
i am working with pic18f4520 and i have some issues with the uart interfacing
i have simply made a receiver which uses virtual terminal for pc input and then displays it on an lcd. the simulation runs perfectly but i have lots of issues when i try to implement it on the development board...
the main problem is that the PC doesnt (...)
Microcontrollers :: 20.08.2010 10:48 :: fuuton :: Replies: 4 :: Views: 1171
Hello,
I have connected 16x2 lcd module to pic18f4520.
Pin configuration->
EN - RA1
RW- RA2
RS - RA3
D4-D7 - RD4-RD7
I have written this code...
void Initialisedisplay(void)
{
Resetdisplay();
SendCommandTolcd(0x28); //4 bit interface 2 line First Initialise
Delay(1); (...)
Microcontrollers :: 13.12.2010 13:20 :: scorrpeio :: Replies: 5 :: Views: 966
hi...
I have interfaced the GSM modem with pic18f4520 using UART interface.
I send the command "AT" to GSM modem. In response it sends reply "OK"
Now... RCREG in PIC18 is of 8bit. so it will only accept 'O' for the first RX interrupt. In the next RX interrupt RCREG will receive 'K'.
I want to store this whole response sent by the GSM mode
Microcontrollers :: 10.01.2011 13:51 :: scorrpeio :: Replies: 10 :: Views: 3292
Hi...
I have interfaced Pulraj GSM modem with pic18f4520 using UART. I send the command "AT\n\r" to the modem but dont receive "OK" on RX pin of PIC.
I have tested both PIC and Modem individually on hyperterminal.
PIC works absolutely fine...sends AT on hyperterminal and displays the key hit from computer on the lcd.
Modem also (...)
Microcontrollers :: 14.01.2011 13:34 :: scorrpeio :: Replies: 32 :: Views: 1357
these days if I need a QEI device I use a dsPIC33. However the PIC18F4431 has a Motion Feedback Module with a QEI interface, see section 17 of
however, if you already have a microcontroller without a QEI interface you can adapt the code
Microcontrollers :: 09.03.2011 19:08 :: horace1 :: Replies: 3 :: Views: 701
need help with digital alarm clock p18f4520 in C
hi all... Can somebody help me the source code for digital alarm clock using pic18f4520 in C language and lcd display. i m using mplab ide. thanks! :D
Electronic Elementary Questions :: 10.03.2011 16:56 :: shazanee :: Replies: 6 :: Views: 1412
Hi,
I'm trying to interface a pic18f4520 to a SED1335 based lcd. Using the provided CCS C driver and this code:
while(TRUE) {
glcd_fillScreen(ON);
delay_ms(1000);
glcd_fillScreen(OFF);
delay_ms(1000);
glcd_pixel(10,10,1);
delay_ms(1000);
glcd_pixel(10,10,0);
delay_ms(1000);
} (...)
Microcontrollers :: 31.03.2011 21:48 :: Gepard1973 :: Replies: 0 :: Views: 397
I am Using pic18f4520 And want to Transmit Binary 8 bit data serially (when i press a button on the keypad ) through TWS434. Also at the other end i need to receive the same data On pic18f4520 with RWS434..
If I Press A Button of Keypad I need To transmit and display The Code on lcd simultaneously....
I am weak in (...)
Microcontrollers :: 04.04.2011 17:26 :: Kulkarnitejas :: Replies: 0 :: Views: 647
On the lcd problem, can you try and add on the lcd.c init librarie ( i haven´t posted it but i guess you are using one ^^) something like:
__delay_ms(200);
right after enable the ADCON, and the ports and before setting up the RS,EN and RW pins, this helped me out alot, i used to have a problem similar to yours.
This delay on the init routine of
Microcontrollers :: 28.06.2011 16:19 :: Zwilorg :: Replies: 12 :: Views: 1390
Hi,
This sample of code is for an 8 bits interface.
You just need to change the initialization sequence and send two times the data. (one quarter and another)
Sorry i have problems with files attachements.
Hope it helps you.
Regards
JoseMiguel
#include
#include // Prototypes de l'interface série
#include
Microcontrollers :: 28.06.2011 10:26 :: joseMiguel :: Replies: 2 :: Views: 864
hi,
i am currently working on a project using pic18f4520 in MikroC. it has to read the LM35s connected to each of the 6 ADC channels (AN0-AN5). also, we wanted to display those values in the lcd. please see code below. but the output in the lcd shows the same value for all of the ADC channels even if the LM35 is exposed (...)
Microcontrollers :: 02.07.2011 11:41 :: sarah.sanchez :: Replies: 1 :: Views: 647
Explain the general purpose of your project.
I realize the RFID reader will be connected to the PICs UART. What will become of the RFID value once it is received by the PIC, displayed on lcd, etc?
You will obviously use MikroC's UART library, what other libraries will be utilized depends on your projects other tasks.
BigDog
Microcontrollers :: 12.09.2011 05:22 :: bigdogguru :: Replies: 59 :: Views: 2693
Ok.Here 's the mikroC keypad library example codes:
unsigned short kp, cnt, oldstate = 0;
char txt;
// Keypad module connections
char keypadPort at PORTD;
// End Keypad module connections
// lcd module connections
sbit lcd_RS at RB4_bit;
sbit lcd_EN at RB5_bit;
sbit lcd_D4 at RB0_bit;
sbit (...)
Microcontrollers :: 27.09.2011 16:34 :: Linspire :: Replies: 2 :: Views: 652
First of all you have missed something i.e.. the visual part. I understood it like this ,your system is going to take a file name from user and create one file with that name , then again it is going to take user input and save the data in that file. That file may be stored in a sd card or in any other memory that’s not the problem and input
Microcontrollers :: 09.10.2011 17:13 :: debjit625 :: Replies: 5 :: Views: 687
Does anyone here ever write a code for power saving mode for pic18f4520 ?
I'm trying to say is, in power saving mode; the PIC is in "IDLE" mode, which also turn off the lcd also, so that the consumption of current flow from power source / battery will not be that much.
Regards
Linspire
Microcontrollers :: 14.10.2011 13:18 :: Linspire :: Replies: 24 :: Views: 1749
is there any way to display floating point numbers on an lcd display or should i change it to a graphical lcd?
Microcontrollers :: 29.10.2011 22:23 :: gigo_gigo88 :: Replies: 7 :: Views: 454
Dear all members thanx for helping everyone too much
I am using dsPIC30F3014 for my algo.
I want to see my results on a simple 16x2 lcd.
Can someone help me in this regards ?
Thanks in advance.
Microcontrollers :: 28.12.2011 07:30 :: shahbaz.ele :: Replies: 4 :: Views: 638
Good morning, I'm new here ... =)
Using the library T6963c and a pic18f4520 has crafted a program that reads and displays pictures and text into a graphic lcd (240x128) 21-pin.
The program works well and the images are printed correctly, but sometimes fails to boot and reset takes too long to restart the program, something at least (...)
Microcontrollers :: 13.03.2012 15:36 :: gicristhie :: Replies: 3 :: Views: 552
hi all,
i want to use a pic and a keypad to display a description on a lcd.
when you press a certain code the corresponding description of that code must be displayed.
the code must be 2 digits, ranging from 00 to 99.
can any one help me with a sample code for reading the 2 digit code that has been enterd into keypad.
note: after (...)
Microcontrollers :: 05.04.2012 11:39 :: isabella :: Replies: 5 :: Views: 694
Hi can anyone provide some assistance
I'm having trouble implementing A to D on a pic18f4520 and displaying it on a Nokia 3310 screen.
The screen code that I have works (Tested), its just the A to D code that I'm having trouble with.
All I need is to display the voltage from a sensor seen on RB0 (Volts to 3 decimal places) and would like (...)
Microcontrollers :: 06.04.2012 15:15 :: Soprano64 :: Replies: 1 :: Views: 341
hi Shyam. My sch is asking us to do a security system. so I need a code to display the keypad numbers on the lcd screen. And to key in the password and led will light up.
Microcontrollers :: 19.07.2012 13:37 :: caramelz :: Replies: 2 :: Views: 188
i want to measure the oxygen rate of person using pulse oximeter sensor and display it in lcd using pic giving input in the form of voltage to pic controller.According to the voltage level,i want to vary display in maximum voltage will be 440mv and min will be 1/0mv.i want to display 99% if my voltage is 440mv else 1% for
Microcontrollers :: 09.12.2012 14:02 :: roselin :: Replies: 0 :: Views: 93