i am having difficulty getting the WRITECODE command to do anything at all. i have PBP 2.50a and a EPIC programmer. when i run the following code (found while trying to resolve this issue) i find all memory locations other than my code stuffed with 3FFF.

***************

'use the following when using the MP assembler
@ DEVICE PIC16F819, hs_osc, wdt_off, pwrt_on, mclr_on, bod_off, cpd_off, protect_off, lvp_off, WRT_3FOURTHS

'use the following when using the MPASM assembler
'@ __CONFIG _HS_OSC & _WDT_OFF & _CP_OFF & _CPD_OFF & _WRT_ENABLE_512 & _PWRTE_OFF & _MCLR_ON & _BODEN_OFF & _LVP_OFF

DEFINE OSC 10
clear

I var byte ' Loop count
D var word ' Data
A var word ' Address

A=$04F0
d=$1234

erasecode A
For I = 0 TO 63 STEP 2
Writecode A + I, D
Next I

stop
end

***************

i've tried both PM and MPASM and while both compile just fine with no errors neither one produces the results i'm expecting to see (32 words valued $1234 starting at memory location $04F0) when i read the memory.

i've tried two different chips just to make sure i obtain the same results on both. i do.

any ideas on this one?

thanks in advance

-=drew