November 22, 2024, 05:56:32 AM

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.


Multiple baud rates on the prop-2

Started by LPFreak1283, May 20, 2008, 07:53:59 AM

Previous topic - Next topic

LPFreak1283

I plan on using an RC-4 and a VMusic 2 on my project and was wondering if two seperate baud rates were going to work on the prop-2.  The RC-4 uses 38.4K baud and the VM2 uses 9600 baud.  Do you call them different in your program?

' -----[ Constants ]-------------------------------------------------------

T9600           CON     84
T38K4           CON     6
Open            CON     $8000
BaudRC4         CON     Open + T38K4            ' B/R in RC4
BaudVM2         CON     Open + T9600            ' VM2 baud rate

It is confusing me a bit.  Any help?
Thanks!  Cory

livinlowe

Shawn
Scaring someone with a prop you built -- priceless!

LPFreak1283


JonnyMac

May 20, 2008, 09:30:46 AM #3 Last Edit: May 20, 2008, 09:32:58 AM by JonnyMac
You have it exactly right.  Let me suggest the following I/O pin configuration:

P15 - use for the RC-4 (SETUP = out; no ULN)
P14 - trigger input (SETUP as required, no ULN)
P13 - TX to VMUSIC (SETUP = UP; no ULN)
P12 - RX from VMUSIC (SETUP = UP; no ULN)

This is how I do it.  You'll want to pull the ULN2803 that's connected to P8-P15 and cut off pins 1 - 4; this will prevent interference with serial comms to all devices, and the trigger pin (P14) is not an output so it doesn't need the ULN.

I have a full Prop-2/VMUSIC demo that uses the above configuration in this thread: http://www.efx-tek.com/php/smf/index.php?topic=597.0
Jon McPhalen
EFX-TEK Hollywood Office