Search Header Logo

Port Timer2 and Interrupt

Authored by Goonpawa JAMORNMARN

Special Education

University

Used 9+ times

Port Timer2 and Interrupt
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

Media Image

เมื่อเปิดเครื่องค่าใน DDRB register จะเป็น 0 หลังจาก code "DDRB |= (1<<5)" ถูก execute แล้วค่า ใน DDRB จะเป็นเท่าไหร่ ให้ตอบเป็นเลขฐาน 2 ขนาด 8 บิต

(a)  

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

ข้อใดอธิบายถูกต้องเกี่ยวกับความหมายของ Code "DDRB |= (1<<5); PORTB &= ~(1<<5);"

ให้ขา IO5 ของ Arduino เป็น Output ที่มีค่าเริ่มต้นเป็น Logic High

ให้ขา IO5 ของ Arduino เป็น Input แบบใช้ R-pull up ภายใน

ให้ขา IO13 ของ Arduino เป็น Output ที่มีค่าเริ่มต้นเป็น Logic Low

ให้ขา IO13 ของ Arduino เป็น Input แต่ไม่ต้องใช้ R-pull up ภายใน

ไม่มีข้อใดกล่าวถูกต้อง

3.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

Media Image

เมื่อเปิดเครื่องค่าใน PORTB register เป็น 0 หลังจาก code "PORTB &= ~(1<<5)" ถูก execute แล้วค่าใน PORTB จะมีค่าเป็นเท่าไหร่ ตอบเป็นเลขฐานสอง 8 บิต

(a)  

4.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

Media Image

ใน loop() หลังจาก code "PORTB ^= (1<<5)" ถูก execute ครั้งแรก แล้วค่าใน PORTB จะมีค่าเป็นเท่าไหร่ ตอบเป็นเลขฐานสอง 8 บิต

(a)  

5.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

Media Image

ใน loop() หลังจาก code "PORTB ^= (1<<5)" ถูก execute ครั้งที่สอง แล้วค่าใน PORTB จะมีค่าเป็นเท่าไหร่ ตอบเป็นเลขฐานสอง 8 บิต

(a)  

6.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

Media Image

ใน loop() หลังจาก code "PORTB ^= (1<<5)" ถูก execute ครั้งที่สาม แล้วค่าใน PORTB จะมีค่าเป็นเท่าไหร่ ตอบเป็นเลขฐานสอง 8 บิต

(a)  

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

จงวิเคราะห์ว่าค่า TCCR2A และ TCCR2B จาก code ที่ให้มานั้นเป็นการสั่งงานให้สัญญาณนาฬิกาของ Timer2 มีคาบเท่าใดให้ตอบคาบ (T) หน่วยเป็นวินาทีพร้อมเหตุผลที่มี keyword: CS22, CS21 และ CS20 ทั้งนี้ให้เปิดดูเอกสารของ Unit: Timer

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?