PE 5.3.4 and Serout/Sertxd Simulation

BillyGreen1973

Senior Member
I received my 28X2's today and quickly got to testing.

To check I have everything wired correctly I used this small test program

Code:
main:
	for b0=32 to 255
	sertxd (b0," ",#b0,cr,lf)
;	serout b.7,n2400, (b0," ",#b0,cr,lf)
	pause 150
	next b0
	goto main
Picaxe runs fine.
However the simulation doesn't do what you would expect.

Download cable unplugged from 28X2 test board.
Under OPTIONS select 'Simulate LCD on pin B.7'
Simulate the above prog and everthing looks OK.
comment out the SERTXD line and un-comment the SEROUT line, and simulate. Again no probs.
Now comment out the SEROUT line again, and un-comment the SERTXD line, and simulate again. This is where the problem occurs. The LCD is still simulated and NOT the serial receive buffer.

I've tried stopping the simulation and running SYNTAX, then simulating and no change (still simulates LCD).
I went back to the options tab and unchecked the 'Simulate LCD on output..' option, it then simulated fine. Go back to options and select 'Simulate LCD' again, changing nothing else, the LCD simulates again.
The only way I can see to 'reset' this mixup is to close the PE and open it again.

Can anyone else replicate this, or is it something to do with my PC.
I know this is only a small flaw, but could cause a bit of head scratching in a larger program.

Someone please shoot me down in flames if I'm wrong on this, I may be missing something dead simple:eek:
 
Top