Shop OBEX P1 Docs P2 Docs Learn Events
getting P63 data from P60 — Parallax Forums

getting P63 data from P60

Wasn't sure this would work or not... But it does!

I just do a:
wrpin   pinset,#60
where:
                  ' %AAAA_BBBB_FFF_PPPPPPPPPPPPP_TT_MMMMM_0
pinset      long    %0011_0000_000_0000000000000_00_00000_0
and I can monitor the actual data on P63 when it's running SmartSerial in smartpin mode.

If you look at inb[63] you can't see the actual data because it's in smartpin mode...

Comments

  • RaymanRayman Posts: 13,900
    edited 2020-03-15 01:29
    I'm working on a 1080p digitizer app...
    Right now can display data on P63 via P60, triggered when it goes low.
    A lot of work still to do, but this could be useful for things like SPI, etc...

    For some reason, Graphics.spin is limited to x values less that 512. Not sure why, but need to fix that...

    Anyway, right now, you can hit a key in Propeller Serial Terminal and see the data waveform in this app
    2016 x 1512 - 1M
  • evanhevanh Posts: 15,192
    Rayman wrote: »
                      ' %AAAA_BBBB_FFF_PPPPPPPPPPPPP_TT_MMMMM_0
    pinset      long    %0011_0000_000_0000000000000_00_00000_0
    
    and I can monitor the actual data on P63 when it's running SmartSerial in smartpin mode.

    If you look at inb[63] you can't see the actual data because it's in smartpin mode...
    That's why I like to make the distinction between pin modes and smartpin modes when talking about those WRPIN config bits. Only the M field is smartpin exclusive.

  • Rayman wrote: »
    Wasn't sure this would work or not... But it does!

    I just do a:
    wrpin   pinset,#60
    
    where:
                      ' %AAAA_BBBB_FFF_PPPPPPPPPPPPP_TT_MMMMM_0
    pinset      long    %0011_0000_000_0000000000000_00_00000_0
    
    and I can monitor the actual data on P63 when it's running SmartSerial in smartpin mode.

    If you look at inb[63] you can't see the actual data because it's in smartpin mode...

    I'm surprised that the smart pin is hiding the input data. I can't think of a reason to do that right now.

    I assume you mean inb[31]. But I could see some pin access methods that would ignore bit 5 and give the correct answer anyway.
  • Roy ElthamRoy Eltham Posts: 2,996
    edited 2020-03-15 05:41
    SaucySoliton,
    When a pin is in a smartpin mode, the IN for the pin is used to signal events related to the mode.
  • evanhevanh Posts: 15,192
    When M != 0, IN and DIR stop doing their normal pin job and become special smartpin signals.

Sign In or Register to comment.