Output Compare

13 terms by gap87guy

Create a new folder

Like this study set?

Create a free Quizlet account to save it and study later.

Sign up for an account

Already have a Quizlet account? .

Create an account

Advertisement Upgrade to remove ads

How do you enable OC?

Set corresponding bit in TIOS to 1

What sets a flag?

If TCNT = TCi ( TCi is set to the time to interrupt next )

How do you arm an interrupt?

Set CiI to 1 in TIE

How do you Acknowledge an interrupt?

Clear CiF in TFLG1 by setting to 1

What 7 things must be done by OC Init?

Disable interrupts, Enable TCNT, Enable OC, Arm OC, Set first interrupt time, Clear flag, enable interrupts

What is the first thing to be done by OC init?

Disable interrupts ( sei )

What is the second thing to be done by OC init?

Enable TCNT ( TEN = 1)

What is the third thing to be done by OC init?

Enable OC ( set bit of TIOS )

What is the fourth thing to be done by OC init?

Arm OC ( set bit of TIE )

What is the fifth thing to be done by OC init?

Set first interrupt time ( TCNT = TCNT + period )

What is the sixth thing to be done by OC init?

Clear Flag ( set bit of TSCR2 )

What is the last thing to be done by OC init?

Re-enable interrupts ( cli )

What 2 things must be done by OC handler?

Acknowledge and set next time to interrupt

Please allow access to your computer’s microphone to use Voice Recording.

Having trouble? Click here for help.

We can’t access your microphone!

Click the icon above to update your browser permissions above and try again


Reload the page to try again!


Press Cmd-0 to reset your zoom

Press Ctrl-0 to reset your zoom

It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

Please upgrade Flash or install Chrome
to use Voice Recording.

For more help, see our troubleshooting page.

Your microphone is muted

For help fixing this issue, see this FAQ.

Star this term

You can study starred terms together

NEW! Voice Recording

Create Set