2007-03-14 09:15 PM
2007-03-14 01:00 PM
Hi,
The datasheet for 72325 states that: // Quote The following procedure is recommended to pre- vent the OCFi bit from being set between the time iR register: it is read and the write to the OC – Write to the OCiHR register (further compares are inhibited). – Read the SR register (first step of the clearance of the OCFi bit, which may be already set). – Write to the OCiLR register (enables the output compare function and clears the OCFi bit). // End quote In that case do I need to write in my code like this: void Foo1() { TAOC1HR=(some_value)>>8; TACSR; TAOC1LR=(1700)&0xFF; } or I just can write this: void Foo2() { TAOC1R=some_value } and the compiler will translate it to something like Foo1() Thank you2007-03-14 09:15 PM