EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / I think i have replied to

I think i have replied to

|

Microcontroller › PIC › interfacing 16*2 LCD with pic 18F4550 › I think i have replied to

February 13, 2012 at 1:54 am #7155
faizal
Participant

I think i have replied to this topic before. I wonder why its not showing upfrown

 

anyway, i think the code is written for Mikro c, not c18.

 

if you’re using c18, there is a header file called “lcd.h”. this is where you set the required lcd pins.

use correct pragma directives for the configuration bits, oscillator,prescaler,wdt etc…

 

if you’re using MikroC, set the configuration bits in “project-> edit project”. the configuration bits are in the given code(commented). i’ve tested this code in MikroC and it works fine displaying on the lcd except for some glitches at the beginning.I use a 20Mhz crystal so i have to change the config bits. I add a 100ms delay at the beginning of my main() to overcome this.

 

pls correct me if i’m wrong and have a nice day smiley

RSS Recent Posts

  • Can I make two inputs from one?? July 9, 2025
  • The Analog Gods Hate Me July 9, 2025
  • How to make string LEDs? July 9, 2025
  • Fixing board, Easy question HEX SCHMITT July 9, 2025
  • It's Amazing What A Buck And A Quarter.... July 8, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise