Skip to main content
Visitor II
April 13, 2005
Question

T0OC1_IRQChannel referring to OCAIE?

  • April 13, 2005
  • 2 replies
  • 571 views
Posted on April 13, 2005 at 23:17

T0OC1_IRQChannel referring to OCAIE?

    This topic has been closed for replies.

    2 replies

    ongth60Author
    Visitor II
    April 13, 2005
    Posted on April 13, 2005 at 11:11

    8.5.0.1 Use of interrupt channels

    To use the interrupt features, for each interrupt channel used, perform the following sequence:

    – Set the OCiIE and/or ICiIE and/or TOIE bits of CR2 register to enable the peripheral to perform interrupt requests on the desired events.I've got this extract from STR Reference Manual page 155.

    Im confused about setting the interrupts channels. In the software library, the parameter for T0OC is T0OC1_IRQChannel which refers to Timer 0 output compare 1 interrupt. But referring to the above extract, it refers to Output Compare A IE.Will setting OCAEI generate Timer 0 output compare 1 interrupt ? Why dont the software use the parameter T0OCA_IRQChannel?

    Rgrds,

    TH Ong

    ongth60Author
    Visitor II
    April 13, 2005
    Posted on April 13, 2005 at 23:17

    Thanks for the clarification.

    Rgrds,

    TH Ong