ATMega8 Flashcards

1
Q

What is the function of the PORTX register?

A

It is the data register for the specific Port

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the function of the DDRX Register

A

It will control the direction of each Pin on a register. Logic 1 on the pin means output and logic 0 means input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the function of the PINX register?

A

It is the address for a specific pin on a register.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is wrong with creating a time delay using a loop or a pre defined C function?

A

They are blocking, in a while loop nothing can happen until the loop finishes. Same with the pre defined terms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Polling?

A

The CPU is constantly checking for input. Think of it like someone is constantly checking the door to see if someone is there.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is good about Polling??

A

It is software driven so simple and fast to implement. The designer knows when the system will check which helps predictability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the disadvantages of Polling??

A

The CPU is busy having to wait and check which can waste processor time.
If the Polling rate is not fast enough then the system could miss inputs.
Can only wait for a single event at a time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly