Debug and LCD
Hello Stampers,
Just a taught......
I frequently use the BPP-420 4x20 Serial LCD module (Scott Edwards) in
combination with the basic stamps.
Wat I want to do is to use an LCD module as a debug output screen, connected
on the dedicated "program-debug" port 16 .
I 'll to put several debug statements in the program, and if the LCD module
is connected it must display the debug output strings, when the LCD isn't
connected, the program simpy runs blind.
I think this will be helpfull for "in the field" problem solving.
Has anybody already done this, or can sombody give me a few hints..........
Thanks in Advance
Met vriendelijke groetjes,
************************************************
Michel De Meester
Biotechnisch Onderhoud
Universitair Ziekenhuis Antwerpen
Wilrijkstraat 10
2650 Edegem - B
tel: ++32 (0)3 821 36 47
e-mail: michel.de.meester@u...
*************************************************
Just a taught......
I frequently use the BPP-420 4x20 Serial LCD module (Scott Edwards) in
combination with the basic stamps.
Wat I want to do is to use an LCD module as a debug output screen, connected
on the dedicated "program-debug" port 16 .
I 'll to put several debug statements in the program, and if the LCD module
is connected it must display the debug output strings, when the LCD isn't
connected, the program simpy runs blind.
I think this will be helpfull for "in the field" problem solving.
Has anybody already done this, or can sombody give me a few hints..........
Thanks in Advance
Met vriendelijke groetjes,
************************************************
Michel De Meester
Biotechnisch Onderhoud
Universitair Ziekenhuis Antwerpen
Wilrijkstraat 10
2650 Edegem - B
tel: ++32 (0)3 821 36 47
e-mail: michel.de.meester@u...
*************************************************
Comments
You shouldn't use the 'DEBUG' statement, though,
as it is NOT included in code compiled for 'running'.
You should use:
SEROUT 16, 16384 + 84, "Debug Statement", 13
This does exactly what a DEBUG statement does,
except it is included in running code.
Oh, and the '16' above indicates to use the
'programming port'. You can actually use ANY
I/O pin 0 through 15. If you get a 'serial
back-pack' for your LCD, you are good to go.
If you MUST use the physical pin 1 and 2 on
the module (the programming port) you should
be aware that these pins implement a pseudo
max232 circuit, which modulates the -12 volts from
the PC TX line to make a good RX-Out signal.
You may have to do something to get this to
work -- like connecting -12 to the TX pin.
Now all you need is a
--- In basicstamps@yahoogroups.com, "De Meester, Michel"
<Michel.De.Meester@u...> wrote:
> Hello Stampers,
>
>
> Just a taught......
>
> I frequently use the BPP-420 4x20 Serial LCD module (Scott Edwards)
in
> combination with the basic stamps.
>
> Wat I want to do is to use an LCD module as a debug output screen,
connected
> on the dedicated "program-debug" port 16 .
>
> I 'll to put several debug statements in the program, and if the
LCD module
> is connected it must display the debug output strings, when the LCD
isn't
> connected, the program simpy runs blind.
>
> I think this will be helpfull for "in the field" problem solving.
>
> Has anybody already done this, or can sombody give me a few
hints..........
>
> Thanks in Advance
>
>
> Met vriendelijke groetjes,
>
> ************************************************
> Michel De Meester
> Biotechnisch Onderhoud
> Universitair Ziekenhuis Antwerpen
> Wilrijkstraat 10
> 2650 Edegem - B
> tel: ++32 (0)3 821 36 47
> e-mail: michel.de.meester@u...
> *************************************************
SEROUT with slightly different formatting (and devoted to pin 16 at 9600
baud). I routinely create programs that use DEBUG and ultimately end up
communicating with a generic terminal program. With PBASIC 2.5 you can
also use DEBUGIN (a simplified version of SERIN on pin 16 at 9600 baud)
to get information from a terminal.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Allan Lane [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=MHd1OZ66awlzW6m_cqSjhveP6WsjTwhfn6AoAvbBFiq_EmqPX5PYySfb8cqVwmQ7AHgxz9bV09gKpSSe6lu_QbgIpQ]allan.lane@h...[/url
Sent: Friday, June 25, 2004 9:16 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Debug and LCD
yes, you can do something like this.
You shouldn't use the 'DEBUG' statement, though,
as it is NOT included in code compiled for 'running'.
You should use:
SEROUT 16, 16384 + 84, "Debug Statement", 13
This does exactly what a DEBUG statement does,
except it is included in running code.
Oh, and the '16' above indicates to use the
'programming port'. You can actually use ANY
I/O pin 0 through 15. If you get a 'serial
back-pack' for your LCD, you are good to go.
If you MUST use the physical pin 1 and 2 on
the module (the programming port) you should
be aware that these pins implement a pseudo
max232 circuit, which modulates the -12 volts from
the PC TX line to make a good RX-Out signal.
You may have to do something to get this to
work -- like connecting -12 to the TX pin.
Now all you need is a
--- In basicstamps@yahoogroups.com, "De Meester, Michel"
<Michel.De.Meester@u...> wrote:
> Hello Stampers,
>
>
> Just a taught......
>
> I frequently use the BPP-420 4x20 Serial LCD module (Scott Edwards)
in
> combination with the basic stamps.
>
> Wat I want to do is to use an LCD module as a debug output screen,
connected
> on the dedicated "program-debug" port 16 .
>
> I 'll to put several debug statements in the program, and if the
LCD module
> is connected it must display the debug output strings, when the LCD
isn't
> connected, the program simpy runs blind.
>
> I think this will be helpfull for "in the field" problem solving.
>
> Has anybody already done this, or can sombody give me a few
hints..........
>
> Thanks in Advance
>
>
> Met vriendelijke groetjes,
>
> ************************************************
> Michel De Meester
> Biotechnisch Onderhoud
> Universitair Ziekenhuis Antwerpen
> Wilrijkstraat 10
> 2650 Edegem - B
> tel: ++32 (0)3 821 36 47
> e-mail: michel.de.meester@u...
> *************************************************
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> DEBUG is indeed compiled into the code -- it's basically as
shortcut to
> SEROUT with slightly different formatting (and devoted to pin 16 at
9600
> baud). I routinely create programs that use DEBUG and ultimately
end up
> communicating with a generic terminal program. With PBASIC 2.5 you
can
> also use DEBUGIN (a simplified version of SERIN on pin 16 at 9600
baud)
> to get information from a terminal.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Allan Lane [noparse][[/noparse]mailto:allan.lane@h...]
> Sent: Friday, June 25, 2004 9:16 AM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Debug and LCD
>
>
> yes, you can do something like this.
> You shouldn't use the 'DEBUG' statement, though,
> as it is NOT included in code compiled for 'running'.
>
> You should use:
> SEROUT 16, 16384 + 84, "Debug Statement", 13
>
> This does exactly what a DEBUG statement does,
> except it is included in running code.
>
> Oh, and the '16' above indicates to use the
> 'programming port'. You can actually use ANY
> I/O pin 0 through 15. If you get a 'serial
> back-pack' for your LCD, you are good to go.
>
> If you MUST use the physical pin 1 and 2 on
> the module (the programming port) you should
> be aware that these pins implement a pseudo
> max232 circuit, which modulates the -12 volts from
> the PC TX line to make a good RX-Out signal.
> You may have to do something to get this to
> work -- like connecting -12 to the TX pin.
>
>
> Now all you need is a
>
> --- In basicstamps@yahoogroups.com, "De Meester, Michel"
> <Michel.De.Meester@u...> wrote:
> > Hello Stampers,
> >
> >
> > Just a taught......
> >
> > I frequently use the BPP-420 4x20 Serial LCD module (Scott
Edwards)
> in
> > combination with the basic stamps.
> >
> > Wat I want to do is to use an LCD module as a debug output screen,
> connected
> > on the dedicated "program-debug" port 16 .
> >
> > I 'll to put several debug statements in the program, and if the
> LCD module
> > is connected it must display the debug output strings, when the
LCD
> isn't
> > connected, the program simpy runs blind.
> >
> > I think this will be helpfull for "in the field" problem solving.
> >
> > Has anybody already done this, or can sombody give me a few
> hints..........
> >
> > Thanks in Advance
> >
> >
> > Met vriendelijke groetjes,
> >
> > ************************************************
> > Michel De Meester
> > Biotechnisch Onderhoud
> > Universitair Ziekenhuis Antwerpen
> > Wilrijkstraat 10
> > 2650 Edegem - B
> > tel: ++32 (0)3 821 36 47
> > e-mail: michel.de.meester@u...
> > *************************************************
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...