Hello ,
solved the issue by creating the asm in osho then using MPlab to create the hex. now RE.3 is active.
now i have a new problem
My program has a UART routine in ASM
ASM:ser_in: btfsc rcsta,oerr
ASM: goto overerror
ASM: btfsc rcsta,ferr
ASM: goto frameerror
ASM: andlw 0x00 'return 0 if no data
ASM: btfss pir1,rcif
ASM: goto end_call
ASM:uart_gotit: bcf intcon,gie 'clear gie before read
ASM: btfsc intcon,gie
ASM: goto uart_gotit
ASM: movf rcreg,w
ASM: bsf intcon,gie
ASM: goto end_call
ASM
vererror: bcf intcon,gie 'turn gie off
ASM: btfsc INTCON,GIE
ASM: goto overerror
ASM: bcf rcsta,cren
ASM: movf rcreg,w 'flush fifo
ASM: movf rcreg,w
ASM: movf rcreg,w
ASM: bsf rcsta,cren 'turn cren on, clear oerr flag
ASM: bsf intcon,gie
ASM: goto ser_in
ASM:frameerror: bcf intcon,gie
ASM: btfsc intcon,gie
ASM: goto frameerror
ASM: movf rcreg,w
ASM: bsf intcon,gie
ASM: goto ser_in
ASM:end_call: movwf serdata
Had to replace it with
hserget serdata
doing so all the following errors went
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 577 : Symbol not previously defined (status)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 579 : Symbol not previously defined (spen)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 579 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 581 : Symbol not previously defined (rx9)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 581 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 583 : Symbol not previously defined (sren)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 583 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 585 : Symbol not previously defined (cren)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 585 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 587 : Symbol not previously defined (ferr)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 587 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 589 : Symbol not previously defined (rx9d)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 589 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 592 : Symbol not previously defined (pir1)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 604 : Symbol not previously defined (txreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 607 : Symbol not previously defined (pie1)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10244 : Symbol not previously defined (oerr)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10244 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10248 : Symbol not previously defined (ferr)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10248 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10254 : Symbol not previously defined (rcif)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10254 : Symbol not previously defined (pir1)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10258 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10258 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10260 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10260 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10264 : Symbol not previously defined (rcreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10266 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10266 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10270 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10270 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10276 : Symbol not previously defined (cren)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10276 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10278 : Symbol not previously defined (rcreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10280 : Symbol not previously defined (rcreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10282 : Symbol not previously defined (rcreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10284 : Symbol not previously defined (cren)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10284 : Symbol not previously defined (rcsta)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10286 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10286 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10290 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10290 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10292 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10292 : Symbol not previously defined (intcon)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10296 : Symbol not previously defined (rcreg)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10298 : Symbol not previously defined (gie)
Error[113] I:\TEST\NEW FOLDER\18F2520.ASM 10298 : Symbol not previously defined (intcon)
Now the problem is the hserget does not read the data received .... ( i can see the data on hyper terminal)
any idea ?