3
\$\begingroup\$

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal.

In documentation is mentioned this: "The FOC1A/FOC1B bits are only active when the WGM13:0 bits specifies a non-PWM mode." Is usage of that bits in non-PWM mode mandatory? What is true purpose of FOC1A/FOC1B bits?

\$\endgroup\$
3
  • 1
    \$\begingroup\$ The purpose is right what it says on the package: to force a match with the appropriate register regardless of its actual value. \$\endgroup\$ Jul 21, 2014 at 15:24
  • 2
    \$\begingroup\$ Usage is not mandatory, they are just there for you to trigger the Output Compare at an arbitrary moment. \$\endgroup\$
    – jippie
    Jul 21, 2014 at 15:30
  • \$\begingroup\$ So.. basically, it is used to output compare asynchronously. Out of curiosity - Do you know some application where Force Output Compare can be useful? \$\endgroup\$
    – kolibri
    Jul 21, 2014 at 15:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.