DATA on a PIC18F252


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289

    Default DATA on a PIC18F252

    Hello Melanie ;-)

    What have I to do in order to get the DATA-statement work ?
    Every second byte is lost. I think the Assembler (MPASMWIN 3.5 & 4.01) produce the wrong hex-file.
    Compiling for a PIC16F872, there are zero-bytes inserted between every single byte of a DATA-Statement, but they are gone when compiling for a PIC18F252.

    btw: the search-function is down, I think I have read of it before...
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/showthread.php?t=547

    There are no current issues with DATA and internal EEPROM.

    I can't vouch for MCS because I don't use it.

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Hello Melanie,

    thank you for your answer. I've found the long thread from you too.

    I think the conclusion is - buy a programmer from Melabs !
    And this is not realy my solution - I will look inside the Assembler vom Microchip.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I don't use any MeLabs programmers. If your programmer and its software is good it should work. It's all down as to how the HEX file is created... that's down to PBP and MPASM... if you're up-to-date you should have no issues.

    As an aside, the 16F872 I've been using since at least PBP 2.42 with the MeLabs PM Assembler by default (that's a good three/four years now)... never any problems with internal EEPROM.

  5. #5
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Hello Melanie,

    I think the problem is the program IC-Prog !
    The 16Fxxx and the 18Fxxx uses another syntax to store the EEPROM-data into the hexfile.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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 : 1

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