I have just spent 2 days trying to get a very simple program to run, to no avail.
I have modified the sample program BLINK to include a SEROUT2 instruction.
At first it runs ok.
If I then put an ARRAYWRITE before it, the program crashes.
I remove the ARRAYWRITE and the program runs, but there is no serial output. The LED pin toggles ok "around the SEROUT2 instruction", but the serout data pin does not change state.
The SEROUT2 takes up about 1mS (measured with a 'scope on the LED pin).
This is about right for 9600 baud. So it looks like the SEROUT2 code is running round its loops but not driving the data pin.
I am using the internal osc, set to 32MHz.
I have tried completely re-installing PBP and all files from the original installation disk, in case I had corrupted something. But still the problem persists.
Any ideas, please?
Thanks
![]()
Bookmarks