Skip to main content
jackie2
Associate II
April 3, 2006
Question

Output compare function

  • April 3, 2006
  • 2 replies
  • 913 views
Posted on April 03, 2006 at 15:25

Output compare function

This topic has been closed for replies.

2 replies

jackie2
jackie2Author
Associate II
March 27, 2006
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
April 3, 2006
Posted on April 03, 2006 at 15:25

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