Shop OBEX P1 Docs P2 Docs Learn Events
propeller serial output problem — Parallax Forums

propeller serial output problem

edited 2009-01-14 18:28 in Propeller 1
I have been working with the propeller prop stick for a couple of weeks now, and cant seem to get a serial signal out of it.· Im not very experienced with microcontrollers yet, but i have tried everything to solve this problem.· i've tried several different code scenarios, using SimpleSerial, FullDuplexSerial, and the BS2Functions code from the object exhange.· i've hooked the oscilloscope to the pin, run some tests, and see no signal.· all im trying to do right now is input a gps string, and then output it to an lcd or hyperterminal to see if the propeller is recognizing the string and outputting it correctly.· in the future·i need to be able to input gps data and do some calculations.

Some help please?

Comments

  • LeonLeon Posts: 7,620
    edited 2009-01-13 23:52
    Try this little test program for the Simple_Serial function in the Exchange:

    
    ''*****************************
    ''* Simple_Serial test        *
    ''*                           *
    ''*****************************
    
    CON
    
            _clkmode        = xtal1 + pll16x
            _xinfreq        = 5_000_000
    
    
    OBJ
    
            SS_test     : "Simple_Serial"
    
    
    PUB go
    
    '' Starts 'Simple_Serial'.
    '' Use a terminal program on the host machine to communicate.
    
      SS_test.init(31, 30, 9600)
      repeat
        SS_test.tx("*")
      while true
    
    



    I didn't have a board with an RS-232 driver on it, so it outputs via the Prop Tool to a comms program on the PC.

    I just checked it and it definitely works. If it doesn't work for you there must be something wrong with your hardware.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 1/14/2009 12:22:16 AM GMT
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-01-14 13:46
    hello,

    as a general advice. If something does not work reduce the complextity AS MUCH as possible
    to narrow down the problem. (Like it is done in democode above)

    As you say that you don't see any signal on a scope. For a good help you need to attach your code to a posting.
    Otherwise we - the forum - are guessing into the fog: it might be this - it might be that
    and it will take 10 or 20 postings to narrow down the problem.

    If you attach your code. In most cases it will be done in ONE answer

    best regards

    Stefan
  • edited 2009-01-14 18:28
    that little code snippet works, i recognize it in hyperterminal and an lcd. im going to have to play around with it a little to get the hang of it, and possibly get some strings sending. i dont know what i was doing wrong, my code was very similar to the one posted above. ill post if i need anthing more.

    thanks!
Sign In or Register to comment.