Skip to main content
Visitor II
April 3, 2006
Question

Output compare function

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

Output compare function

    This topic has been closed for replies.

    2 replies

    jackie2Author
    Visitor 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!

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

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