On-Chip eeprom problem DATA READ command


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50

    Angry On-Chip eeprom problem DATA READ command

    AM i going nuts ?! srly until yesterday EVEYTHING was good. Im doing a project with some Led dot matrix and i need to store some fonts. I used on-chip eeprom of my 18F26K22. I dont know if i did something wrong i can't recall but i can't write on the eeprom. I used an other 18F26K22 but still same results. Is there any specific number of times that you can write on Eeprom ?? I remember that you can write many many many times until it gets destroyed...

    SO i tried to write 2 bytes on the eeprom and recall them to 1 Hserout to check where the problem is. BUT still !!! all data i got back was $FF ....
    Doesn't $FF mean eeprom is empty ??

    Here are the registers i set.
    Code:
    '----REGISTERS---------
    TRISA= %00000000  
    TRISB= %00000010
    TRISC= %11000000
    'CMCON= 7 'Comparator module OFF
    INTCON.6= 1 'Set Pheripheral Interrupts
    PIE1.5= 1
    ANSELA=0
    ANSELB=0
    ANSELC=0
    
    clear
    pause 250
    Here is an image from the simply data-read command i tried with an Hserout indicator.

    Name:  Code.jpg
Views: 754
Size:  31.7 KB
    Name:  Communication.jpg
Views: 659
Size:  25.1 KB

    If you see anything i miss please let me know !! Im heading out to get some fresh air, can't stand this any more !!

  2. #2
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: On-Chip eeprom problem DATA READ command

    I found it !! it was stupid as ALL misstakes with programming PICs :P :P
    My mistake was this
    Name:  NotWorking.jpg
Views: 463
Size:  10.6 KB and afterName:  Working!!!.jpg
Views: 464
Size:  11.0 KB !!!!

Similar Threads

  1. read command of EEprom errors
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th April 2012, 12:25
  2. How to read stored data from MCU EEPROM into PC?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2009, 15:26
  3. PIC18 (452) DATA or EEPROM Command
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th August 2007, 16:14
  4. Bootloader + EEPROM / DATA Command Question
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th September 2005, 20:01
  5. 18F252 internal EEPROM / DATA, READ
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 1st June 2004, 14:01

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