+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Full Member level 5
    Points: 2,755, Level: 12
    Achievements:
    7 years registered

    Join Date
    May 2010
    Location
    usa
    Posts
    277
    Helped
    0 / 0
    Points
    2,755
    Level
    12

    store value in eeprom before starting

    I have lcd connected to microcontroller, and i want to sore numbers using external push buttons, but i want to store values before entering the processing mode. for instance microcontroller is off then i want to push a button to enter (X mode) to adjust parameters then exit this mode and restart to enter the operation mode( like enter configuration mode of devices while they are turned off). How to do this?
    Last edited by mshh; 3rd December 2018 at 13:19.

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 28,658, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,532
    Helped
    1081 / 1081
    Points
    28,658
    Level
    41
    Blog Entries
    6

    Re: store value in eeprom before starting

    How to do this?
    By using state machine approach.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   AltAdvertisment

        
       

  3. #3
    Full Member level 5
    Points: 2,755, Level: 12
    Achievements:
    7 years registered

    Join Date
    May 2010
    Location
    usa
    Posts
    277
    Helped
    0 / 0
    Points
    2,755
    Level
    12

    Re: store value in eeprom before starting

    could you give me example ? or video for this process



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 28,658, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,532
    Helped
    1081 / 1081
    Points
    28,658
    Level
    41
    Blog Entries
    6

    Re: store value in eeprom before starting

    Quote Originally Posted by mshh View Post
    could you give me example ? or video for this process
    I think you will have no difficult looking for examples of state machine (SM) implementations, so instead I would suggest you just draw a draft of the whole process by focusing on the menu options where each SM state represents one menu option, and each subsequent sub-menu option, a state right below, at which you can go upon a combination of the previous state and pressing one key. On the code side, you can implement a state with the switch...case statements.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



--[[ ]]--