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 BLANK QUESTION

45 sec • 1 pt

Media Image

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

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 BLANK QUESTION

45 sec • 1 pt

Media Image

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

4.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

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

5.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

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

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

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

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?