cancel
Showing results for 
Search instead for 
Did you mean: 

Output compare function

jackie2
Associate II
Posted on April 03, 2006 at 15:25

Output compare function

2 REPLIES 2
jackie2
Associate II
Posted on March 27, 2006 at 09:17

In the data sheet of ST7: to reset the OCFi flag, two step are required:

1. Reading the SR register while the OCFi bit is set.

2. An access(read or write) to the OCiLR register.

What is the definition of ''access'' to the OCiLR register? If the code as follows:

LD A, #$20

ADD A, OCiLR

stands for ''an access'' to the OCiLR?

or If the code as follows:

LD A, OCiLR

ADD A, #$20

stands for ''an access'' to the OCiLR?

tks!

Viktor POHORELY
ST Employee
Posted on April 03, 2006 at 15:25

both of them. but you can try it easily... ;)