Problem with DATA in PBP


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    kacho's Avatar
    kacho Guest

    Default Problem with DATA in PBP

    Hi ,
    I`m using PBP ,16F88 and Screamer bootloader.
    I try to store messages in the Eeprom but the sentence DATA @100, " HOLA GENTE " is ignored in the program

    I try to read the PIC con IC prog,and the eeprom don`t store the message ?.
    The rest of the program work perfect.WRITE and READ commands working OK,but DATA don`t work ??
    Here is an extract..

    FLAGS=0
    include "88.inc"
    define inthand myint
    DATA @100, " HOLA GENTE "
    ...................
    ...............
    Any help? ,thanks !!

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    kacho,

    the DATA statement in PBP works fine with the F88.

    have you viewed the HEX-file generated by PBP in MPLAB (or ICprog)?
    is there any EEPROM Data?

    case yes:

    Try to program the chip using ICprog, read it back and let us know the result.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hi kacho,
    I don't know if "DATA" can be used to write a string like that.
    Maybe try:
    DATA @100,72,79,76,65,32,71,69,78,84,69 ;ASCII values for " HOLA GENTE "
    (hope I got the ASCII codes right).

    Arch

    < EDIT >
    Hmmm... the manual says "DATA" can handle strings - strange.
    < EndEDIT >
    Last edited by Archilochus; - 17th March 2005 at 22:23.

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Arch,

    DATA can handle strings, and kacho's code example is ok.

    The problem must be with his loader.

    I don't know this loader, so I cant tell wether or not there are options like

    - write code only
    - write data only
    - write code and data

    so far it looks like there has just no data been written.

    Let's wait for kacho to get back with his results from the test I have suggested.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  5. #5
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hi Ralph,
    Yup - noticed that once I took a peek at the PBP manual (that's why I added the < EDIT > line to my original post).

    Now only if we could assign strings to arrays :-)

    Arch

  6. #6
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    This

    is a workaround to assign (static) strings to arrays
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  7. #7
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    The bootloader doesn't seem to program the onboard EEProm. I'm not entirely sure that it is supposed to.

    Post to the forum on the sparkfun site...sparky is pretty good about responding to posts.

Similar Threads

  1. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  2. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  3. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  4. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  5. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02

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