Skip to main content
jackie2
Associate II
Apr 3, 2006 1:25 PM UTC
Question

Output compare function

Posted on April 03, 2006 at 15:25

Output compare function

This topic has been closed for replies.

2 replies

jackie2
jackie2Author
Associate II
Mar 27, 2006 7:17 AM UTC
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
Apr 3, 2006 1:25 PM UTC
Posted on April 03, 2006 at 15:25

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