Problem with DATA in PBP


Closed Thread
Results 1 to 12 of 12
  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.

  8. #8
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    dynamoben, I have used strings with data statements before w/16f88 processors without any problems. Here ia a line of code I have used with a current project: INTRO DATA @0,10,13,"WHITBOX3.BAS (05/19/2005)",10,13,0
    The word "intro" is the data location pointer for the program. I quess I'm only saying that the statement you had used is good.....

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    I'm not suggesting that the DATA statement won't work for that chip. I know DATA will work. However Screamer will not program the onboard eeprom (in my expirence). I'm currently working on a project with screamer and a 16F876A. When I program via the loader is doesn't reprogram my onboard EEProm values, I end up having to use a conventional programming method.

  10. #10
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    DynamoBen, I also have an set of Screamer radios that I've had for about 2 years and a while back saw some email somewhere about using it to bootload pic processors. I haven't used them for that purpose as of yet but I'm interested in what you find out as for using them to bootload code over the air to a pic controlled device. I have used them in the past for remote control of an lawnmower that I built. Please keep me informed....

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    Screamer is not a hardware device it is half of a bootloader system.

    See http://www.sparkfun.com/tutorial/Bloader/bloader.htm for more detail.

  12. #12
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    I've used the 900MHz Screamer radios for wireless boot-loading. Pretty
    handy for those hard to reach locations...

    Here's how: http://www.rentron.com/PicBasic/wireless.htm
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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