Hi,
Then I don't know...
That can't be all of the code can it? Try to reduce the code to the bare minimum which still shows the issue, then post that code.
I've tried the following on a 18F25K20 running at 64MHz
Code:
DEFINE OSC 64
DEFINE LOADER_USED 1 ' We're using a bootloader.
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 138 ' 115200 Baud @ 64MHz, -0,08%
SPBRGH = 0
BAUDCON.3 = 1 ' Enable 16 bit baudrate generator
Name VAR BYTE[25]
pass var byte
Pause 200
HSEROUT["Program start.",13]
Gain:
HSERIN [STR Name\25\"*"] : Pause 250
HSEROUT [STR Name,"*"]
for pass=0 to 24
Name[pass]=0
next pass
Goto Gain
It seems to work fine using the serial communicator terminal built into MicroCodeStudio...
/Henrik.
Bookmarks