Try to do this
hooktxu
Posts: 33
Can anyone try this program? It's just to test the serial port. I connect the serial port to MAX3232 and this MAX to propeller
CON
_xinfreq = 5_000_000
_clkmode = xtal1 | pll16x
OBJ
debug : "FullDuplexSerialPlus"
PUB main
debug.Start(0, 1, 0, 9600)
repeat
waitcnt(clkfreq*20 + cnt)
debug.str(string("Hello World!"))
Post Edited (hooktxu) : 4/22/2009 9:24:28 AM GMT
CON
_xinfreq = 5_000_000
_clkmode = xtal1 | pll16x
OBJ
debug : "FullDuplexSerialPlus"
PUB main
debug.Start(0, 1, 0, 9600)
repeat
waitcnt(clkfreq*20 + cnt)
debug.str(string("Hello World!"))
Post Edited (hooktxu) : 4/22/2009 9:24:28 AM GMT
Comments
It does work .
I just changed the pins to 31 RX and 30 Tx (normal prop-plug) and used FullDuplexSerial because I do not have the other one
Edit: After the repeat you should have a minimum of 1 space indent:
So, you attached the MAX to pins 0 and 1? Are you sure you did not mix up the RX and TX connection between MAX and PROP? Or maybe MAX and PC or whatever is connected there?
I assume that the indentation has been lost because you did not use the "Insert Formatted Code".
If that's the case everything looks fine.
Just a sidenote: be aware of the maximum factor you can multiply the clkfreq with. It's 53. If you go beyond that, your program won't wait as long as you'd expect.
31(prop)-->11(max)
30(prop)-->12(max)
13(max)-->3(rs232)
14(max)-->2(rs232)
El programa funciona. Pod
Gracias por el espa
If this does not work there is something wrong with the PC-MAX connection.
If this works - did you try it with a wrong setup before? Maybe you fried a pin of the propeller?
Unfortunately you switched language. Otherwise I bet a lot·more members could throw in some ideas or experiences.