PIC16F677 and READ/WRITE


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Talking Problem solved?

    I guess this was a tough one and don't feel so bad now. After researching and more searching it became obvious.
    Even though the PIC16F677 has 256 bytes of EEPROM availble but I can't use it because it seems the compiler is trying to use EEPGD that is only used in the rest of the series... Don't use it!
    The PIC16F685, 687, 689 & 690 are only around $0.25 more. Problem solved.
    Louie

  2. #2
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default The need was sure to come back...

    Well as it turns out, just avoiding the problem did not solve it.
    The PIC16F685 does not provide the SSP hardware I'll be needing now so more searching found Darrel's guidance (thanks again Darrel!) http://www.picbasic.co.uk/forum/showthread.php?t=12424
    So comparing both INC files shows that the PIC16F677 was missing the EEPGD in the BANK 3 Register:

    portion of PIC16F685 INC file:
    Code:
    ;----- BANK 3 REGISTER DEFINITIONS ----------------------------------------
    ;----- EECON1 -------------------------------------------------------------
    
    EEPGD                        EQU     H'0007'
    WRERR                        EQU     H'0003'
    WREN                         EQU     H'0002'
    WR                           EQU     H'0001'
    RD                           EQU     H'0000'
    same section of PIC16F677 INC file:
    Code:
    ;----- BANK 3 REGISTER DEFINITIONS ----------------------------------------
    ;----- EECON1 -------------------------------------------------------------
    
    WRERR                        EQU     H'0003'
    WREN                         EQU     H'0002'
    WR                           EQU     H'0001'
    RD                           EQU     H'0000'
    Updated to:

    Code:
    ;----- BANK 3 REGISTER DEFINITIONS ----------------------------------------
    ;----- EECON1 -------------------------------------------------------------
    
    EEPGD                        EQU     H'0007' ; Added 11/8/2010
    WRERR                        EQU     H'0003'
    WREN                         EQU     H'0002'
    WR                           EQU     H'0001'
    RD                           EQU     H'0000'
    Compiled without errors and I can now use the EEPROM in the PIC16F677!

    A big Thank You! to all who contribute their expertise and time to help others along.
    Louie

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Louie,

    I'm glad you got it working, although I'm not sure how my other post helped.

    Would it help if I mentioned that 2.47 was the first time that family was included in PBP.
    And the 677 EEPROM issue was fixed in PBP version 2.50?

    OK, probably not ...
    ________________
    DT

  4. #4
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default

    Would it help if I mentioned that 2.47 was the first time that family was included in PBP.
    And the 677 EEPROM issue was fixed in PBP version 2.50?
    Actually it does...
    It confirms I need to stop dragging my feet and dig out my receipt for Bruce so I can update!
    Louie

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