Shop OBEX P1 Docs P2 Docs Learn Events
RTCC — Parallax Forums

RTCC

Armored CarsArmored Cars Posts: 172
edited 2005-08-31 14:11 in General Discussion
Can I use RTCC to trigger an interrupt and hold the intterupt routine until RTCC is cleared.· (RTCC is connected to an external source.)

This is basically what I am thinking of,

Interrupt
program stuff....
loop
jb·RTCC,loop············· ;hold until RTCC is cleared.
ret

Comments

  • BeanBean Posts: 8,129
    edited 2005-08-31 13:47
    You cannot read the state of the RTCC pin like that.
    It doesn't work like a normal I/O pin.
    You could tie the RTCC pin to another "normal" I/O pin and check the status of that pin.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    Product web site: www.sxvm.com

    "One experiment is worth a thousand theories"
    ·
  • Armored CarsArmored Cars Posts: 172
    edited 2005-08-31 13:55
    Just hard wire it?
  • BeanBean Posts: 8,129
    edited 2005-08-31 14:11
    If you already have a current limit resistor going to the RTCC pin, then yes just connect the RTCC pin the I/O pin.
    Because the RTCC can never be an output so there should never be a conflict.
    Otherwise I would use a reasonable value (1K ?) resistor to the I/O pin.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    Product web site: www.sxvm.com

    "One experiment is worth a thousand theories"
    ·
Sign In or Register to comment.