cancel
Showing results for 
Search instead for 
Did you mean: 

T0OC1_IRQChannel referring to OCAIE?

ongth60
Associate II
Posted on April 13, 2005 at 23:17

T0OC1_IRQChannel referring to OCAIE?

2 REPLIES 2
ongth60
Associate II
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

ongth60
Associate II
Posted on April 13, 2005 at 23:17

Thanks for the clarification.

Rgrds,

TH Ong