LCD Data on portA and portB


Results 1 to 32 of 32

Threaded View

  1. #3
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    You can also manually control the LCD.. .with out using LCDout.

    http://www.geocities.com/SiliconVall...d/commands.htm

    YOu would send a
    hex 13 to turn on the LCD,
    Hex 01 to clear
    and everything else will be close to the same as a LCDout.

    You would send it in 4 bit mode, thus I can't remember if you send the MSB or LSB first...This may seem like a lot of work, but in reality, it is fairly simple.

    You can assign the whole PortB.0- PortB.3, then assign A.3 to Port b.3 and trigger your clock.

    Psuedo code:

    Turn your LCD into 4 bit mode:
    send Hex 13 to turn it on.

    // one way to do it:
    routine:
    Portb.0 - POrtb.3=MSB
    Porta.3=Portb.3
    toggle clock

    // another way to do it.
    Portb.0 - Portb.2=LSB
    Porta.3=Bit...(whatever it is)
    toggle clock
    Return


    Yeah, you are sending in 4 bit mode, but it will work. But you are not using LCDout. You will also have to put your own pauses in, so that the data will not be sent too fast. (similiar to Character spacing command in LCDout)
    Last edited by Dwayne; - 4th May 2005 at 16:06.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. Matrix Keypad routine
    By mister_e in forum Code Examples
    Replies: 134
    Last Post: - 18th September 2022, 20:30
  2. PICs can do more if use others than delays instructions
    By hardcore in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th February 2010, 19:52
  3. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  4. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts