Problem getting FullDuplexSerial start routine to return
![CannibalRobotics](https://forums.parallax.com/uploads/userpics/935/nDKB1D6DBLH3C.jpg)
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
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
ser.start(rxpin, txpin, mode, baudrate)
or am I using an old version?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔