Hi all,
In the code below I use a simple DEC modifier to output a string and it works as expected.
But If I use "DEFINE RESET_ORG 1EC00h"
it doesn't work and the devices seems to reset continuously.
How is it possible ?
Code:
DEFINE OSC 8 DEFINE HSER2_RCSTA 90H DEFINE HSER2_TXSTA 24H DEFINE HSER2_BAUD 19200 DEFINE HSER2_CLROERR 1 CLEAR OSCCON =100000 ; Primary oscillator, internal 8MHz OSCCON2.0 =1 OSCTUNE.7 =1 Adr VAR WORD loop1: FOR Adr=1000 TO 1005 HSEROUT2 ["test1: ",13,10] ' -->>>> this works always HSEROUT2 ["test2: ", DEC4 Adr,13,10] ' -->>>> this works only if I comment the first line "DEFINE RESET_ORG 1EC00h" NEXT Adr PAUSE 1000 CLEARWDT goto loop1
Comment