Shop OBEX P1 Docs P2 Docs Learn Events
Problem getting FullDuplexSerial start routine to return — Parallax Forums

Problem getting FullDuplexSerial start routine to return

CannibalRoboticsCannibalRobotics Posts: 535
edited 2008-06-27 13:44 in Propeller 1
I'm trying to use FullDuplexSerial and when ever I call Ser.Start control never returns to my Top Object code. I know it's getting through all of the ser.start steps by watching the scope markers I put in.

Here's my Top Object start code. If I de-remark the SerCog :=...·line, the control goes 'elsewhere'.

PUB Start
··· ' ========================== Initialize Number handling routines ====================
··· Num.Init·················· 'Initialize Numbers - No cogs started but left for consistancy
··· ' ========================== Start TV & Graphics routines ====================···
··· TVCog := TV.Start(12) -1···
··· ' ========================== Start AD Converter routines ====================
··· ADCog := AD.Start··· ' This includes AD - Axcelerometer and compass
··· ' ========================== Start Serial Communications ====================
··· ' ========================== Set up ports for RF communication and prep Tx & Rx in Start
··· 'SerCog := Ser.start(rxPin, txpin, 0, 4800,txPDN,rxPDN) - 1 ' Initialize Serial (rxpin, txpin, mode, baudrate, Tx~Enable, Rx~Enable)
··· 'Ser.rxflush···················· ' Flush the serial buffer
··· ' ========================== Start PWM - Servo drivers ===================
··· ServoCog := Servo.Start(ServoBottom,ServoTop)
··· repeat Temp from 16 to 23····· 'Preset servo's to center position
······· Servo.Set(Temp,1500)
' ======================= Initialize Av Suurce selection bits =====================····
··· AVsetup
··· Av0················ ' Select Controller as Source
··· StartUpDisplay······ ' Show Cog assignments for 2 sec
··· DisplayBase········· ' Build Display labels
··· Main················ ' Start the Main loop



<Subject line added by moderator>

Post Edited By Moderator (Paul Baker (Parallax)) : 6/26/2008 10:17:30 PM GMT

Comments

  • Ken PetersonKen Peterson Posts: 806
    edited 2008-06-27 13:44
    I'm a bit confused. Isn't the syntax for FullDuplexSerial as follows?:

    ser.start(rxpin, txpin, mode, baudrate)

    or am I using an old version?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.