Storing Data - 16f690


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    5

    Default Storing Data - 16f690

    I'm new to all this, a couple of questions.

    Using a 16f690 is it possible to store data to the program location so that it remains there and can be read back after a power cycle ?

    Also can someone point me to where I can find what the Device Declaration statements mean. I have looked on the datasheets but it's not exactly plain english to me.

    Example -
    @device pic16F690, intrc_osc_noclkout, BOD_OFF, PWRT_OFF, wdt_off,mclr_off,
    ' protect_off


    Cheers
    Adam

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In some case yes, but it's way more convenient/standard to use the internal EEPROM with READ/WRITE.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Is it possible to permenantly store data using the write command, even after a power cycle, if so how ?

    Cheers
    Adam

  4. #4
    Join Date
    May 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Told you I was new to this.

    I actually had the code correct but beacuse my test board is connected to the low count demo board and the PICkit2 programmer, it doesn't keep the saved eeprom values after a power cycle.

    Running it on a 3v battery instead of the PICkit2 usb power, it works as it should when using the Read and Write commands as you suggested.

    Cheers
    Adam

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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