[PicForth] 16F87x config word

Jamie Lawson jlawson at ces.uoguelph.ca
Thu Nov 11 04:28:55 CET 2004


Hi,

I was just running an older PicForth file through PicForth-1.0.1 and
realized that the config word is not output correctly in the hex file.

The target chip is a 16F873/6 (I have two devices and checked both).
I last use this file with version 0.29 and all was well. Since then I
have only used 16F88s with newer versions of PicForth and these work fine.

PicForth-0.31 and up puts out 2 config words for the 16F87x which only
requires 1 and they appear reversed (location 2008 2007 rather than 2007
2008).

example:
For the config word 0x3F31 the hex hex entry should be (and
is generated by PicForth-0.29)

:02400E00313F     (minus the checksum)

I get (with versions > PicForth-0.29)

:04400E00FFFFFF3F (minus the checksum)

The hex files are identical apart from the config word entry.

I have attempted to "adjust" picforth.fs which results in either no
changes or something even worse than the original.....will keep trying
though.

I was wondering if anyone else has noticed this config word problem.

Regards,
Jamie Lawson



More information about the PicForth mailing list