Shop OBEX P1 Docs P2 Docs Learn Events
Serial Comms with Puter — Parallax Forums

Serial Comms with Puter

heathclfheathclf Posts: 43
edited 2008-10-23 12:36 in Propeller 1
I got my computer to work with the prop chip over serial comms, but only bc I took the computer's logic to an inverter first. I'm using the serial libraries that come with the chip (Simple, FullDuplex, etc), and am wondering how to do this without the inverter, as it seems extremely silly to need to use such a chip when I have a processor.

In the "Debug.start(31, 30, 1, 57600)", there's the option to mess wit the 3rd bit, which I thought would reverse the logic and such, but I can't seem to get it to work.

Did anyone else have this problem? I haven't seen it posted?

thanks.

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2008-10-22 21:28
    hello heathclf,

    it might be a problem of not loading your new version of the program into the eeprom
    third parameter zero does work for me in many programs without inversion as it is normal mode

    BUT

    if you just load a new version of the program to RAM and reopen the comport.
    the reopening of the com-port causes a reset of the propeller and the reset makes the propeller
    boot. In the bootprocess the content of the EEPROM is loaded into RAM and overwrites your new version
    which was only loaded to RAM
    This is the case if in the EEPROM is still a version using third parameter "1" instead of zero

    If you use PINs 30,31 for the serial connection you HAVE TO load every new program-version to the EEPROM

    best regards

    Stefan
  • BradCBradC Posts: 2,601
    edited 2008-10-23 05:18
    StefanL38 said...
    hello heathclf,

    If you use PINs 30,31 for the serial connection you HAVE TO load every new program-version to the EEPROM

    If you are using the right serial terminal you should not get a reset when you close/re-open the port.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!
  • Cluso99Cluso99 Posts: 18,069
    edited 2008-10-23 10:24
    Please describe your circuit so we can answer informatively. The FDX (FullDuplexSerial) object allows for inversion of the pins if you require, but this depends on your circuit used. Set the third parameter to 3 for rx and tx inversion e.g (31, 30, 3, 57600). Note "1" only inverts the rx pin.

    I do not load to EEPROM. My EEPROM contains code that flashes a LED on my PCB, so I know that this code is running. I change the frequency (flash rate when I load other test code.

    Post Edited (Cluso99) : 10/23/2008 11:23:44 AM GMT
  • StefanL38StefanL38 Posts: 2,292
    edited 2008-10-23 12:36
    hello,

    @Cluso and BradC you are right PST.EXE and PropViewer in PST-emulation-mode
    do NOT reset the propeller

    best regards

    Stefan
Sign In or Register to comment.