LCD MENU on Pic16f877a (asm code)

Discussion in 'Embedded Systems and Microcontrollers' started by noeynaajaa, Jan 23, 2013.

  1. noeynaajaa

    Thread Starter New Member

    Jan 23, 2013
    2
    0
    i have knowledge in asm as least.

    Can you help me about asm code?

    i want assembly code .............

    MY LCD 16*2
    *********************
    * >>1. SET HUMIDITY ------LCD PAGE1
    * 2. SET TIME
    *********************

    *********************
    * >>3. SET TEMP -----LCD PAGE2
    * 4. SET WATER
    *********************

    and have sub menu 4.1
    such as


    *********************
    * >>4. SET WATER
    * 4.1 SET WATER QUANTITY
    *********************
    i have 4 buttons UP / DOWN /OK /BACK



    Help Me plese
    i must present Project in senior year
     
    Last edited: Jan 23, 2013
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Ouch why the big font. And for sure we can help you. But do not expect a full solution just handed over to you. As a start tell us what you done so far. And why and how you struggle
     
  3. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    And it is your job to supply the code. You will get advice here but no one is going to do your work for you.


    Would you really want an engineer designing medical equipment that will be used on your family members, where the engineer had someone else do the work while in university?

    Would you put your family on an airplane designed by an engineer that never did his own school work?
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    First, you have to be able to write characters to the LCD. If you can do this, goto next step. If not, Google can be your friend as this is one of the most documented tasks out there.

    Then you have to be able to capture debounced button presses. Again, Google can be your friend. There are as many approaches as there are programmers, and they all work well.

    Finally, you combine the two. Keep a state variable to know where the cursor is, and when the state changes you also update the display.

    I recently wrote a module to do drill down menus such this, but unfortunately it's in C for the free PIC C18 compiler. Shucks!
     
  5. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Yes? What can I do for you?:)


    To get back on topic, Ernie's advice is sound. Start with the basics and work your way up.
     
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    I'm guessing the OP will not be back. We required that he/she do some work. Seems to be a familiar pattern with these posts.
     
  7. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Seems to be a common theme with people that are using the PIC16F877A...
     
  8. noeynaajaa

    Thread Starter New Member

    Jan 23, 2013
    2
    0
    thank you every post

    Now i can write message on LCD but i can not create MENU number 1 , 2 ,3 ,4
     
  9. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Excellent, you are part the hard frustrating part now.

    Can you now see your buttons and get their debounced state?
     
Loading...