Shop OBEX P1 Docs P2 Docs Learn Events
Syntax of setting WK registers — Parallax Forums

Syntax of setting WK registers

John KauffmanJohn Kauffman Posts: 653
edited 2006-11-14 12:27 in General Discussion
Syntax of setting WK registers
·
Is there a syntax to set WKEN and WKED at the time of declaring a pin?
In other words, can I add those settings to the end of the following line?
I have experimented, but not found a command that works.
·
'

' IO Pins
'

MyPin···· · PIN···· RB.0 INPUT CMOS SCHMITT
·
Thanks

Comments

  • BeanBean Posts: 8,129
    edited 2006-11-13 11:50
    John,
    Use "INTR_RISE" or "INTR_FALL" to enable interrupts on the rising or falling edge respectively.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
    ·
  • John KauffmanJohn Kauffman Posts: 653
    edited 2006-11-13 12:29
    Interesting. Doesn't turn blue, but does assemble.

    How did you know that? "Intr_Rise" does not show up in search of help or of Parallax site.

    How about for WKEN ?
  • John KauffmanJohn Kauffman Posts: 653
    edited 2006-11-13 12:51
    Interesting. Doesn't turn blue, but does assemble.

    How did you know that? "Intr_Rise" does not show up in search of help or of Parallax site.

    How about for WKEN ?
  • John BondJohn Bond Posts: 369
    edited 2006-11-14 12:16
    Hey Bean

    When are you going to amaze us with your next thrilling installment "The Release of the AMAZING power of the SX using SX/Basic". It's sure to be a Hitt (pun intended).

    Regards

    John Bond
  • BeanBean Posts: 8,129
    edited 2006-11-14 12:27
    John K.
    The INTR_RISE / INTR_FALL parameter sets both WKEN and WKED registers.

    John B.
    If you are referring to the next version of the compiler, there are some major enhancements that are still in the testing stage. Send me a PM if you want more info, or if you want to beta test it.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
    ·
Sign In or Register to comment.