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 / Topics / THIS IS ABOUT “GENERATING CUSTOM CHARACTERS ON LCD”

THIS IS ABOUT “GENERATING CUSTOM CHARACTERS ON LCD”

|

Microcontroller › 8051 › THIS IS ABOUT “GENERATING CUSTOM CHARACTERS ON LCD”

  • This topic has 1 reply, 1 voice, and was last updated 13 years, 2 months ago by nikhil.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 31, 2012 at 3:22 am #3822
    nikhil
    Participant
    heres my program to generate one custom character ('+' sign)on LCD using 8051 microcontroller, using CGRAM concept(assembly language only).here is my untested program.can anyone detect any error .pls locate(port P0 is connected to command port of lcd ,P1 to data port and pin 2.0,2.1,2.2 to RS,R/W,E respectively)
     
    MOV A,#38H
    ACALL COMMAND
    MOV A,#0Eh
    ACALL COMMAND
    MOV A,#01H
    ACALL COMMAND
     
    MOV A,#40H
    ACALL COMMAND
     
    MOV A,04H
    ACALL SEND
    MOV A,04H
    ACALL SEND
    MOV A,04H
    ACALL SEND
    MOV A,1FH
    ACALL SEND
    MOV A,04H
    ACALL SEND
    MOV A,04H
    ACALL SEND
    MOV A,04H
    ACALL SEND
     
    MOV A,#02H
    ACALL COMMAND
     
    ACALL DISPLAY
     
    DISPLAY:
    ACALL READY
    MOV A,#00H
    MOV P1,A
    SETB P2.0
    CLR P2.1
    SETB P2.2
    NOP
    CLR P2.2
    RET
     
     
    COMMAND:
    ACALL READY
    MOV P0,A
    CLR P2.0
    CLR P2.1
    SETB P2.2
    NOP
    CLR P2.2
    RET
     
    READY:
    SETB P1.7
    CLR P2.0
    SETB P2.1
    BACK:CLR P2.2
    NOP
    SETB P2.2
    JB P1.7,BACK
    RET
     
    SEND:
    ACALL READY
    MOV P1,A
    SETB P2.0
    CLR P2.1
    SETB P2.2
    NOP
    CLR P2.2
    RET
     
    END
    March 31, 2012 at 3:35 am #7361
    nikhil
    Participant

    pls ignore the error of not including # before data at some places

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • PIC KIT 3 not able to program dsPIC June 19, 2025
  • Back to the old BASIC days June 19, 2025
  • using a RTC in SF basic June 19, 2025
  • what's it's name June 19, 2025
  • What is correct names for GOOD user friendly circuit drawing program? June 18, 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