November 22, 2024, 02:11:43 PM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


Prop-2 Serial LCD display solutions.

Started by jukingeo, March 15, 2008, 11:38:22 PM

Previous topic - Next topic

jukingeo

Hello all,

Since I have been experimenting with serial communication with the Prop-2 with my purchases of the AP-8 and RC-4s...I am curious about display control capabilities.

For instance.  Can the Prop-2 control one of these:

www.crystalfontz.com/cart/pricing.php?product=632serial

It says that it is RS-232 serial.  I know the Prop-2 uses this for programming...but what about output?

Thanx,

Geo


livinlowe

It can definately be used by the prop-2, in fact the datasheet has an example program for the BS2.
Shawn
Scaring someone with a prop you built -- priceless!

JonnyMac

March 16, 2008, 07:18:34 AM #2 Last Edit: March 16, 2008, 07:34:15 AM by JonnyMac
To send your own serial data through the programming port you use pin 16 -- this is the only case where pin 16 is valid in a PBASIC program.  Note, though, that you can't define the programming port with the PIN keyword as we usually do; you have to use CON instead:

PgmPort         CON     16

Then in your program you can do this:

  SEROUT PgmPort, Baud, [{your data}]

This will send your data out the programming port.

Jon McPhalen
EFX-TEK Hollywood Office

jukingeo

Quote from: JonnyMac on March 16, 2008, 07:18:34 AM
To send your own serial data through the programming port you use pin 16 -- this is the only case where pin 16 is valid in a PBASIC program.  Note, though, that you can't define the programming port with the PIN keyword as we usually do; you have to use CON instead:

PgmPort         CON     16

Then in your program you can do this:

  SEROUT PgmPort, Baud, [{your data}]

This will send your data out the programming port.



Wow!  That IS cool.  So after I program the BS-2 with the computer, through use of that command, I can now hook up a display to the same port and output data to it? That's great!

But now this will only work with pin 16, right?   Is pin 16 the key to the command line above or is PgmPort a predefined constant?

With the display, could I do graphics along with alphanumerics or no.

Thanx,

Geo


JonnyMac

PgmPort was my definition -- you may use a constant of 16 if you prefer.
Jon McPhalen
EFX-TEK Hollywood Office