Briefly answer the following question (No partial credits) Suppose that we want to use the following timer/counter structure as part of a turnstile machine to detect the number of passengers passing through a gate entrance. We will use a sensor placed on the turnstile machine such that every time a passenger passes through the gate entrance, the sensor will send a pulse to the timer/counter to indicate that a new passenger has passed through the entrance. In order to correctly count the events (number of passengers passing through), indicate the logic value that we should set in the "Ctr" signal in the "Clock Select" block in the diagram below. Justify your answer.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Briefly answer the following question (No partial credits)
Suppose that we want to use the following timer/counter structure as part of a turnstile
machine to detect the number of passengers passing through a gate entrance. We will use a
sensor placed on the turnstile machine such that every time a passenger passes through the
gate entrance, the sensor will send a pulse to the timer/counter to indicate that a new
passenger has passed through the entrance.
In order to correctly count the events (number of passengers passing through), indicate the
logic value that we should set in the "Ctr" signal in the "Clock Select" block in the diagram
below. Justify your answer.
TOVN
DATA BUS
(Int.Req.)
Clock Select
Count
Edge
Detector
Tn
clear
cik
TCNTn
Control Logic
direction
(From Prescaler)
Ctr
bottom
top
Given the following C code, what does the printf statement print? Please use the table next
to the code to show your answer.
tinclude <stdio.h>
Loop iteration varl var2 var3
#include <inttypes.h>
i=1
uint8_t varl;
i=2
-3
void func (uint8_t number){
static uint8_t var2 - 4;
uint8_t var3 - 6;
varl - varl + 3;
var2 |- (1<< (number+1)):
var3 - var3 << number;
printf ("id, sd, sd\n", varl, var2, var3);
void main ((
uint8_t i;
varl - 1;
for (i-0; i<5; i++){
varl = varl + 1;
func (i);
Transcribed Image Text:Briefly answer the following question (No partial credits) Suppose that we want to use the following timer/counter structure as part of a turnstile machine to detect the number of passengers passing through a gate entrance. We will use a sensor placed on the turnstile machine such that every time a passenger passes through the gate entrance, the sensor will send a pulse to the timer/counter to indicate that a new passenger has passed through the entrance. In order to correctly count the events (number of passengers passing through), indicate the logic value that we should set in the "Ctr" signal in the "Clock Select" block in the diagram below. Justify your answer. TOVN DATA BUS (Int.Req.) Clock Select Count Edge Detector Tn clear cik TCNTn Control Logic direction (From Prescaler) Ctr bottom top Given the following C code, what does the printf statement print? Please use the table next to the code to show your answer. tinclude <stdio.h> Loop iteration varl var2 var3 #include <inttypes.h> i=1 uint8_t varl; i=2 -3 void func (uint8_t number){ static uint8_t var2 - 4; uint8_t var3 - 6; varl - varl + 3; var2 |- (1<< (number+1)): var3 - var3 << number; printf ("id, sd, sd\n", varl, var2, var3); void main (( uint8_t i; varl - 1; for (i-0; i<5; i++){ varl = varl + 1; func (i);
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY