BS2_Functions with PropTerminal
stamped
Posts: 68
I have finally found the time to do some Propeller prototyping. I am having a bit of an issue with the BS2_Functions and specifically the debug methods such as DEBUG_STR. When I run the DEBUG_STR it does not come up on the PropTerminal. I have tried setting the baud in BS2_Functions CON declarations from 9600 to 115200 but no luck. I am running the output through the USB2SER (Parallax product) and the lights on it blink when I call the DEBUG_STR, so it appears it is transmitting from the Propeller but the PropTerminal is not outputting anything.
Note: I can get output on the PropTerminal with the exact same setup utilizing the PC_Interface object and calling the "str" method. I want to use the BS2_Functions for the other convenience methods within. I am trying to get to first base before trying out the other methods.. Any ideas what is going wrong?
Some code (note that the "term" code when uncommented works,·the BS2 code does not):
CON
··· _clkmode = xtal1 + pll16x
··· _xinfreq = 5_000_000
OBJ
··· BS2 : "BS2_Functions"
··· 'term : "PC_Interface"
PUB main
··· ' Time to open the PropTerminal
··· WaitCnt(320_000_000 + Cnt)
··· BS2.start(31, 30)
··· 'term.start(31, 30)
··· repeat
····· BS2.DEBUG_STR(string("Hello from Propeller!"))
····· 'term.str(string("Hello from Propeller!"))
····· WaitCnt(80_000_000 + Cnt)
Note: I can get output on the PropTerminal with the exact same setup utilizing the PC_Interface object and calling the "str" method. I want to use the BS2_Functions for the other convenience methods within. I am trying to get to first base before trying out the other methods.. Any ideas what is going wrong?
Some code (note that the "term" code when uncommented works,·the BS2 code does not):
CON
··· _clkmode = xtal1 + pll16x
··· _xinfreq = 5_000_000
OBJ
··· BS2 : "BS2_Functions"
··· 'term : "PC_Interface"
PUB main
··· ' Time to open the PropTerminal
··· WaitCnt(320_000_000 + Cnt)
··· BS2.start(31, 30)
··· 'term.start(31, 30)
··· repeat
····· BS2.DEBUG_STR(string("Hello from Propeller!"))
····· 'term.str(string("Hello from Propeller!"))
····· WaitCnt(80_000_000 + Cnt)
Comments
Andy
One additional issue is that I want to be able to perform Serial communication concurrently on two devices (USB2SER and RF Modules). Is this possible? The reason I ask, is that the start method in FullDuplexSerial takes pins, so how do I seperate instances of this FullDuplexSerial Object so I can perform concurrent serial communications on different pins?
Use just BS2 or Term, but not both with the same pins.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
The concatenation was because I was calling start more than once. I need to get some sleep!
Note: I found the answer to the second question regarding the separation of objects so please disregard this. And note that at this moment, I am trying to get the FullDuplexSerial.str to be reliable for the PropTerminal.