Thanks Darrel.
I searched through my program, there is a "Hserout" command, I commented it out and there is no further warning.
I did copy
Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
DEFINE HSER_SPBRG 46 ' 256000 Baud @ 48MHz, -0.27%
SPBRGH = 0
BAUDCTL.3 = 1 ' Enable 16 bit baudrate generator
when compiled, i got warning message "error[113] \pbp\pbpic18.lib 580 : symbol not previously define(baudctl)
But anyway I don't need the those DEFINE lines above so I just commented out, and there is no warning. The program when loaded to the pic work fine.
Bookmarks