Shop OBEX P1 Docs P2 Docs Learn Events
Bell 202 modem object how to change the start bit detection — Parallax Forums

Bell 202 modem object how to change the start bit detection

RPLORPLO Posts: 8
edited 2011-11-21 11:18 in Propeller 1
How I can change the start and stop bit detection?
Actually the object detect a Low (1200Hz) as start bit and High(2200hz) as stop bits
I want to detect inverted data start bit as high(2200Hz) and data stop bit as Low(1200Hz)

how I can change it?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-10-15 11:43
    It's a kludge, but I think this will work. In the start_explicit method there are these two lines:
      frq1200 := 268_520_632
      frq2200 := 492_287_824
    

    Just swap the two values assigned. Please come back and let us know if it worked.

    -Phil
  • RPLORPLO Posts: 8
    edited 2011-10-15 19:20
    It work fine, thanks a lot Phil
  • RPLORPLO Posts: 8
    edited 2011-11-17 15:35
    Dear Phil,

    Related to Bell 202 modem, there is a way to clean the receive buffer before to put the modem in receive mode?

    RPLO
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-11-17 16:18
    That's really easy, and I'm not sure why I didn't think to include it. Just add the following method to the Bell 202 object:
    PUB clrinp
    
    { Clear the input character buffer }
    
      rdeq := renq
    

    -Phil
  • RPLORPLO Posts: 8
    edited 2011-11-21 11:18
    Thanks phil I wil try wit it

    RPLO
Sign In or Register to comment.