eprom memory location


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Malcolm, you can start from location 150 with your RTC code, but you will need to add 150 to all the read instructions in the RTC code, otherwise it will not work.

    Al.

    Code:
    EEPROM Locations
    '	----------------
    	Data @150,74,97,110,70,101,98,77,97,114,65,112,114
    		' Jan Feb Mar Apr
    	Data 77,97,121,74,117,110,74,117,108,65,117,103
    		' May Jun Jul Aug
    	Data 83,101,112,79,99,116,78,111,118,68,101,99
    		' Sep Oct Nov Dec
    	Data 84,117,101,87,101,100,84,104,117,70,114,105
    		' Tue Wed Thu Fri
    	Data 83,97,116,83,117,110,77,111,110
    		' Sat Sun Mon
    All progress began with an idea

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Thank you for the prompt reply,

    There is only one lookup section in the rtc code

    Code:
    FindDays:
    	LookUp SetMonth-1,[31,28,31,30,31,30,31,31,30,31,30,31],CounterA
    I assume I change this to

    Code:
    FindDays:
    	LookUp SetMonth-150,[31,28,31,30,31,30,31,31,30,31,30,31],CounterA
    EDIT: Tried that, and which the PID code now runs fine, the month is shown as hieroglyphics 27 hieroglyphics 2010

    I also have this code which I gather would read the values

    Code:
    DisplayMonth:
    	CounterB=CounterB*3-3	' Convert BCD Month to EEPROM Start Address
    DisplaySequence:
    	For CounterA=CounterB to CounterB+2
    				' Read and Display Month
    		Read CounterA,CounterD
    		LCDOut CounterD
    		Next CounterA
    	Return
    What would I need to change ?
    Last edited by malc-c; - 27th March 2010 at 23:20.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Add just 150 to :

    Read (CounterA + 150),CounterD



    ... and see if it works.

    Al.
    Last edited by aratti; - 28th March 2010 at 00:05.
    All progress began with an idea

  4. #4
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Thankypu, works a treat....

    I guess it was obvious really... but it had been a long day !

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