+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: PIC16f690 Eread/Ewrite issues

  1. #1

    Default PIC16f690 Eread/Ewrite issues

    Hi all,

    I seem to have trouble reading & writing to PIC16f690 eeprom using Eread & Ewrite statements.
    Have been using these statements successfully with other PIC's i.e 12f675,16f676 etc.
    Does anyone know why this is happening? I desperately need a sulotion as I need to complete a urgent project a.s.a.p. Your help will be greatly appreciated.

    Here's a snippet of the way I use it.

    Dim Mintemp as word
    Dim Maxtemp as word
    .
    .
    .
    Mintemp = Eread 0
    Maxtemp = Eread 2
    .
    .
    .
    Ewrite 0, [Mintemp]
    Ewrite 2, [Maxtemp]

    The moment I include these read/write functions into my code, the whole program somehow becomes corrupt.


    Regards
    Deryck

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2


    Default Re: PIC16f690 Eread/Ewrite issues

    P.s. I've also tried the following without success:
    Mintemp.Lowbyte = Eread 0
    Mintemp.Highbyte = Eread 1
    etc.

    I only use the Eread statements at startup. Thereafter only use Ewrite within the Main loop (while 1=1/wend).

  4. #3
    Super Moderator joesaliba's Avatar
    Join Date
    Sep 2004
    Location
    Malta
    Posts
    1,543


    Default Re: PIC16f690 Eread/Ewrite issues

    Deryck,

    Welcome to the forum. I know that in past there was a problem of how the 16F690 handled it's internal memory and caused some problems to write to an LCD. However I do not know if this is related to Ewrite or Eread. If you do a search on the forum for 16F690 I think you might see what was the problem. The problem was related to this PIC and a few others, as I said, it was the structure of those PIC's. What compiler version you are using? I know a special update for those devices to address those PIC was released a few years ago.
    Regards

    Joseph

  5. #4


    Default Re: PIC16f690 Eread/Ewrite issues

    Hi there Joseph,

    Thanks a lot for the reply.
    Proton IDE version = 2.0.1.0
    Compiler = 3.5.2.7

    I also did as you said & the search didn't come up with anything of relevance, but I'll keep on trying by viewing all 16f690 related threads. Thanks once again.

    Deryck

  6. #5
    Super Moderator John Drew's Avatar
    Join Date
    Feb 2002
    Location
    Millicent, South Australia
    Posts
    911


    Default Re: PIC16f690 Eread/Ewrite issues

    Hello Deryck
    You have a copy of 3.5.2.7 and yet you are not showing as a licensed user. Please advise how you are using that BETA version.
    John

  7. #6


    Default Re: PIC16f690 Eread/Ewrite issues

    If you help my, I'll tell....LOL
    Recently bought PDS from Dizzy Enterprises (Your S.A. Distributor) and then updated to Beta.
    I went through the process to register as a licensed user via the website, but haven't heard anytnhing from anyone as yet. Maybe you can assist?

  8. #7
    Super Moderator John Drew's Avatar
    Join Date
    Feb 2002
    Location
    Millicent, South Australia
    Posts
    911


    Default Re: PIC16f690 Eread/Ewrite issues

    Fine Deryck
    Please go to "Community" at the top of the page and complete the licensed status request. Lester will attend to it.
    John

    I can see you've put your details in the registration screen, the 'licensed users form' seems to be a better way of attracting Crownhill's attention.
    Last edited by John Drew; 28th January 2012 at 11:30. Reason: added note

  9. #8


    Default Re: PIC16f690 Eread/Ewrite issues

    Thanks John, will do so. Do you perhaps think that there might be a glitch in the Beta version w.r.t. the 16f690? There seems to be a lot of people having trouble with this PIC. Maybe it lies with Microchip themselves. Would it help rolling back to the 'packaged' compiler and trying Eread/Ewrite again? Is it even possible to roll back?

    Thx
    Deryck

  10. #9
    Super Moderator joesaliba's Avatar
    Join Date
    Sep 2004
    Location
    Malta
    Posts
    1,543


    Default Re: PIC16f690 Eread/Ewrite issues

    If you take the same program into another PIC will it work?
    Regards

    Joseph

  11. #10


    Default Re: PIC16f690 Eread/Ewrite issues

    Haven't tried that yet. Been all over the internet and I seem to be the only one having this particular problem. As soon as I use the Eread command, it seems to somehow corrupt some of my other variables which is very strange indeed. Is there any other sensible way to save/read 2 Word sized variables. I think an assembly routine with direct addressing might do the trick. Unfortunately I'm not too handy with asm.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. EWrite/ERead
    By t0pP8uZz in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 11th December 2009, 15:47
  2. ERead and EWrite execution times?
    By muskut in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 11th December 2007, 14:43
  3. Eread Ewrite 18f2320
    By andyb in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 24th January 2007, 14:08
  4. ewrite/eread clarification
    By Latex in forum Proton Plus Compiler v3
    Replies: 4
    Last Post: 21st September 2005, 10:09
  5. EREAD & EWRITE syntax
    By John Lawton in forum Wish List / Product Feedback
    Replies: 0
    Last Post: 22nd June 2004, 11:40

Members who have read this thread since 2nd May 2012, 20:19 : 2

Actions :  (Set Date)  (Clear Date)

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