This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Lost

I just got the v4 of Keil. I am programming with a 8 bit 8051 micro controller. I was wondering if there are any good books or materials that will help me understand programing alot better. I look at the code and the memory information and I am clueless. I have been trying to read and talk to others and still no help. Please Help!

Thank You

Zack

Parents
  • Thank you so much! I will review over this, I have been having a problem with understanding what the code is actually doing... Im currently working on a problem trying to get an LCD display working and checking for a busy flag after each process or what not, i was given a flow chart to go off of.

    OPTREX LCD

    2.2.2.2 4 - Bit Initialization:
    Wait more than 100ms

    Power ON
    Wait more than 15ms after Vcc = 4.5V
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    0 0 0 0 1 0
    0 0 N F x x
    0 0 0 0 0 0
    0 0 1 0 0 0
    0 0 0 0 0 0
    0 0 0 0 0 1
    0 0 0 0 0 0
    0 0 0 1 I/D S
    0 0 0 0 0 0
    0 0 1 1 C B
    Wait more than 4.1ms
    Initialization Complete,
    Display Ready.
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 0
    No data should be transferred to or from the
    display during this time.
    Function Set Command: (8-Bit interface)
    No data should be transferred to or from the
    display during this time.
    No data should be transferred to or from the
    display during this time.
    Function Set Command: (8-Bit interface)
    Function Set Command: (8-Bit interface)
    After this command is written, BF can be checked.
    Function Set (Interface = 4 -bit, Set N and F
    for number of lines and character font)
    Display OFF
    Clear Display
    Entry Mode Set:
    Display ON (Set C and B for cursor/Blink
    options.)
    Note: BF should be checked before each
    of the instructions starting with
    Display OFF.

    This is the stuff in the flow chart above... but hopefully somewhere in what you posted will get me to understand.

    THank you again!
    Zack

Reply
  • Thank you so much! I will review over this, I have been having a problem with understanding what the code is actually doing... Im currently working on a problem trying to get an LCD display working and checking for a busy flag after each process or what not, i was given a flow chart to go off of.

    OPTREX LCD

    2.2.2.2 4 - Bit Initialization:
    Wait more than 100ms

    Power ON
    Wait more than 15ms after Vcc = 4.5V
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    0 0 0 0 1 0
    0 0 N F x x
    0 0 0 0 0 0
    0 0 1 0 0 0
    0 0 0 0 0 0
    0 0 0 0 0 1
    0 0 0 0 0 0
    0 0 0 1 I/D S
    0 0 0 0 0 0
    0 0 1 1 C B
    Wait more than 4.1ms
    Initialization Complete,
    Display Ready.
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 1
    RS R/W DB7 DB6 DB5 DB4
    0 0 0 0 1 0
    No data should be transferred to or from the
    display during this time.
    Function Set Command: (8-Bit interface)
    No data should be transferred to or from the
    display during this time.
    No data should be transferred to or from the
    display during this time.
    Function Set Command: (8-Bit interface)
    Function Set Command: (8-Bit interface)
    After this command is written, BF can be checked.
    Function Set (Interface = 4 -bit, Set N and F
    for number of lines and character font)
    Display OFF
    Clear Display
    Entry Mode Set:
    Display ON (Set C and B for cursor/Blink
    options.)
    Note: BF should be checked before each
    of the instructions starting with
    Display OFF.

    This is the stuff in the flow chart above... but hopefully somewhere in what you posted will get me to understand.

    THank you again!
    Zack

Children