Shop OBEX P1 Docs P2 Docs Learn Events
BS2P40 polling followup — Parallax Forums

BS2P40 polling followup

ArchiverArchiver Posts: 46,084
edited 2002-09-15 18:34 in General Discussion
Thanks for bearing with me in this. I setup a test configuration and see that
my main loop (which simply writes an asteric to the debug screen) works fine in
that it writes the character in a loop as expected BUT only for a half second at
a time.

The run 1 program simply prints a couple characters to a serial LCD screen and
it runs fine the other half second, the two slots are "time sharing" 50/50. If
I can make the slot 1 program only execute one time per second and the slot 0
program do it's thing the 99% of the other time I will be in there.

SLOT 0 program
mainio

pollin 2, 1

pollrun 1

pollmode 4

main:

debug ibin1 in2

'pause 250

goto main


SLOT 1 program
pollmode 1

auxio


serout Display_Pin,n9600, [noparse][[/noparse]"*/+" ]

mainio

pollmode 4

run 0



Thanks

MIke B.



[noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.