Shop OBEX P1 Docs P2 Docs Learn Events
Another smartpin question — Parallax Forums

Another smartpin question

Can someone please clarify the setup of the pin sensitivity. The doc states:
Y[1:0] establishes A-input high/rise/edge sensitivity:
%00 = A-input high
%01 = A-input rise
%1x = A-input edge

What is the definition for the rise and edge difference?
Is the rise when the low to high threshold is reached and the edge when the signal starts to rise after falling?

Comments

  • jmgjmg Posts: 15,148
    CRST1 wrote: »
    Can someone please clarify the setup of the pin sensitivity. The doc states:
    Y[1:0] establishes A-input high/rise/edge sensitivity:
    %00 = A-input high
    %01 = A-input rise
    %1x = A-input edge

    What is the definition for the rise and edge difference?
    Is the rise when the low to high threshold is reached and the edge when the signal starts to rise after falling?

    I think A-input edge here means any/either/both edges ( =\_ or _/= ) whilst input rise is just _/=
  • evanhevanh Posts: 15,209
    Yep, one edge vs both edges.
  • Ok, so then the high is when the signal goes above the low-high threshold voltage.
    Is that correct?
  • evanhevanh Posts: 15,209
    Yep.
  • evanhevanh Posts: 15,209
    edited 2019-12-17 04:02
    There is similar options for the SEx events too. Chip has used the word "changes" instead of edge but the others are a match.
    %001_PPPPPP = INA/INB bit of pin %PPPPPP rises
    %010_PPPPPP = INA/INB bit of pin %PPPPPP falls
    %011_PPPPPP = INA/INB bit of pin %PPPPPP changes
    %10x_PPPPPP = INA/INB bit of pin %PPPPPP is low
    %11x_PPPPPP = INA/INB bit of pin %PPPPPP is high
    
    EDIT: The smartpins don't need all the combinations internally because the %AAAA_BBBB_FFF logic input block between the custom pin circuit and the smartpin contains optional inversions to make a low into a high.
Sign In or Register to comment.