PDA

View Full Version : Problem with DATA in PBP



kacho
- 17th March 2005, 12:11
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 !!

NavMicroSystems
- 17th March 2005, 12:58
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.

Archilochus
- 17th March 2005, 22:13
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 >

NavMicroSystems
- 17th March 2005, 23:14
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.

Archilochus
- 18th March 2005, 19:22
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

NavMicroSystems
- 18th March 2005, 20:14
This (http://www.picbasic.co.uk/forum/showthread.php?t=1015&highlight=eeprom)

is a workaround to assign (static) strings to arrays

DynamoBen
- 1st June 2005, 02:55
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.

Dave
- 1st June 2005, 12:04
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

DynamoBen
- 1st June 2005, 14:26
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.

Dave
- 1st June 2005, 20:41
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

DynamoBen
- 1st June 2005, 21:02
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.

Bruce
- 1st June 2005, 21:32
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