3-2Milestone2
.docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
350
Subject
Electrical Engineering
Date
May 24, 2024
Type
docx
Pages
1
Uploaded by ProfOtterMaster2426
Leonardo Anzola
3-2 Milestone 2
How does the macro UART_DATA_BINARY impact the UART?
In my code, there's no direct mention of UART_DATA_BINARY. This macro typically indicates that UART should handle data as binary, affecting data interpretation and transmission.
My code sets up UART communication through UART2_Params_init() and UART2_open(), focusing on basic setup without specifying binary data handling, suggesting an implicit binary treatment by default in UART operations.
How does the macro UART_RETURN_FULL impact the UART?
I didn't find UART_RETURN_FULL in my code, a macro that usually directs the UART to return from reading only when the buffer is full. Instead, UART2_read() is used in a blocking mode to wait for incoming data, not explicitly waiting for a full buffer but somewhat related in concept, focusing on data receipt before proceeding.
What driver call would you use to write 10 characters out of the UART?
To write 10 characters via UART, I'd use UART2_write(), specifying the buffer and number of characters, like UART2_write(uart, myData, 10, &bytesWritten); to send data stored in myData.
What is the driver call to turn off LED 0?
To turn off LED 0, the call is GPIO_write(CONFIG_GPIO_LED_0, CONFIG_GPIO_LED_OFF);, using CONFIG_GPIO_LED_OFF to indicate the off state.
What is the UART baud rate?
The UART baud rate in my setup is 115200 bps, configured with uartParams.baudRate = 115200; during UART initialization. This speed is a common choice for reliable, fast data transmission in UART communication.
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
1)
Before using an accumulator within a loop it has to be initialized.
2)
_We cannot use functions if we do not include the function prototype.
3)
If the number of arguments in a function call does not respect the function definition
it causes a syntax error.
4)
A pointer can point to variables of the same data type only.
5)
We can have pointers to variables that are in the same function. T
6)
If a function does not take input arguments and does not return any output, then, it cannot
be defined as a function. F
7)
We can have variable with the same name in different functions. T
8)
_It is not possible to create a variable in the main function that has the same name as a
function that we have already defined. T
9)
_Global variables can be accessed by all functions I
10)
Pointers are only used if the function has multiple outputs. F
arrow_forward
Write down the possible representation level from high level language to logical gates exists in machine architecture. How abstraction is implemented in ISA. In computer organization, how controls are different from data paths.
arrow_forward
1) Is it a Mealy machine or Moore machine?
2) Derive simplified expressions for Output z, and next state FF outputs y1+ and y2+ in terms of input w, and present state y1 and y2. Simplify using Boolean manipulation. You need not name specific Boolean properties/Theorems used. Leave final answers in simplest SoP/PoS forms.
3) Derive its encoded State-Transition Table.
4) Using the encoded State-Transition Table from part c, derive the symbolic state-transition table. Define your states. Use S0, S1, S2, and so on for state names.
5) Draw state diagram with all states and all transitions shown clearly.
6) What sequence of input values on wire w is detected by this circuit?
arrow_forward
W l ..l
O 9:E0
Let (BX)=100H, DI=200H,
DS=1200H, SI= FOO2H, AX=
0105H, and the following
memory content. what is the
content of SI after executing the
MOV SI, [DI+BX+7H]
instructions? *
Memory
address
Memory
content
12300
11
12301
AA
12302
EF
12303
80
12304
47
12305
8D
12306
5A
12307
92
12308
C5
SI = EF80H
SI = 80EFH
SI = 92C5H
SI = C592H
O This is a required question
arrow_forward
An 8-bit register contains the Hex value 2D. What is the register value after an arithmetic shift right? Starting from the initial number 2D, determine the register valuei) after logical shift rightii) after an arithmetic shift left, and state whether there is an overflow not, explain through the proper diagrams.
arrow_forward
Design the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by one
arrow_forward
Problem_#08] For the 4-bit parity generator shown, determine the output. It this circuit
generating even or odd parity?
Bit
time
Ao
A1
A2
A3
arrow_forward
3- A-) Implement the Boolean function (F) with a 4 X1 multiplexer and two-input-NOR
gates. Connect inputs A and B to the selection lines. The input requirement for the
four data lines will be a function of variables C and D. These values are obtained by
expressing F as a function of C and D for each of the four cases when AB = 00, 01 ,10
and 11.
B-) Implement the Boolean function with a 8 X 1 multiplexer. Connect inputs A,B and
C to selection lines.
F(A, B, С, D) - 2 (1, 3, 5, 9, 10, 14, 15)
А
So
В
S1
4 x 1
MUX
1
Y F
2
3
arrow_forward
This is an abbreviation
for the remark
statement that is used to explain a step
by using a suitable comment without
any execution.
O True
O False
arrow_forward
7. Suppose that the variables 0x01 and Ox02 contain the values 0x82 and Ox83, respectively. What
will be the content of 0x02 (in hex notation) and the status bit of flag C after execution of the
following segment of code? (
movf Ox01, W
addwf 0x02, F
Ox02 = [
C = [
arrow_forward
Write trutth table /state table Boolean equation,simplification of equations
arrow_forward
What is falaification and fabricating data ? Explain with a short example please quickly
arrow_forward
5. Assume d3d₂d₁do is a BCD number and derive Boolean expression for segments b,c,e,f,g in a
seven segment display in terms of
d3d₂d₁do
g
4
d
Based on your boolean expressions derive the values of b,c,e,f,g segments when
i. d3d₂d₁do= (0100) 2
ii. d3d₂d₁do = (0111)₂
iii. d3d2d₁do (1000)2
arrow_forward
ehcu.org/pluginfile.
هل ترید اس
لم يقم إيقاف
+
100%
10 / 11
Questions:-
1- Write a program in assembly language to perform the following logic
ci
CI
DL
[5100].
2- How we can perform the NEG and NOT instructions by using different
instructions.
3- Write the following program by using different instruction or instructions
for each instruction on the
program.
MOV AL , 00
MOV BX , FFFF
XOR CL , FF
NEG BYTE PTR [DI]
AND CX ,
161756649_26189.jpg O
12.jpg
LG
arrow_forward
Let A = ajao and B = b¡bo be two-bit binary
numbers. A and B can take on values from 0 to 3
(for example, A = 2 when a1ao = 10. Let C be
a two bit binary number whose value equals the
magnitude of the difference A – B. We have
C = c1c0 = |A – B|. (This means that if B is
larger than A then you consider B-A.) You are to
design a circuit which accepts A and B (i.e.,
a¡ aob¡bo) as inputs and outputs the result
C = c¡c0. The circuit thus has four inputs and
two outputs. For example, the circuit should
output c1co = 10 when ajao = 01 and
bibo = 11 (C = 2 when A = 1 and B = 3).
-
Your pre-lab needs to include all items requested
in the following steps (plus those requested in the
pre-lab handout):
1. After reading through the complete lab,
write a description of the expected behavior
of the system you will design.
2. Draw a truth table describing the behavior
of the circuit. The truth table should show
the inputs: aj aobibo (in this order) and the
outputs: c1Co ·
3. Write the canonical SOP…
arrow_forward
Draw a dataflow circuit using block components that lets you add or
subtract two input numbers in all possible ways. Your circuit will have
two inputs X, Y and one output Out. You’ll have an adder and you’ll
need to use multiplexers on each input to the adder. Clearly specify
the number and type of control bits needed.
arrow_forward
Procedure:
1. Design an even/odd parity generator for 4-bit data.
2. Design a parity checker circuit for a 4-bit data.
3. Design a logic circuit for a 3-bit message to be transmitted with an even parity bit.
4. Four data bits are to be transmitted. Design a parity bit generator to give an o/p of 'l' if the
number of logic l's in the message is: (i) odd; (ii) even.
arrow_forward
the extension of python module is
.numpy O
.python O
.py
none
arrow_forward
Design an 8-to-1 multiplexer using 4-to-1 and 2-to-1 multiplexers only.
you will need to provide truth table, logic expression and circuit diagram.
arrow_forward
Define which type of Mux best fits the function and use all the combinational logic that is required, design a minimal implementation for the following logical function of a multiplexer. The Mux selection lines should be A, B, and C.
Include the entire procedure, Karnaugh maps, and truth tables until you reach the map that implements the solution. Include the final schematic diagram. (See image).
arrow_forward
DISCUSSION:
1- Is the Gray code arithmetic code? Why? Where this code usėd?
2- What is the parity bit?
13- Design five - bit odd parity checker?
4- a) What are the main applications of the comparator?
/b) Design two – two bit comparator.
-5- Convert five.bit Gray to binary code, write truth table and draw the
circuit diagram.
2-5
arrow_forward
The operation F(X, Y, Z) = (X*Y*Z) can be implemented with a single _______________ gate with three input signals and one output signal.
arrow_forward
Logic Design
courses / EE200SP21 / General / Mid Term Examination Part II (Subjecti
Compute the minimal products of sum and minimal sum of
products expressions for following KMAP. Show your groupings on
KMAP
АВ CD
1
1
1
1
0.
Instructions: You have to solve the answer by hand on paper,
scan/take photo and upload it as a single file.
Local Disk (D:)
Mid Term Examinat.
arrow_forward
USE DIGITAL LOGIC AND DESIGN
Part 1: In Figure_4; we have 4-bit Comparator using 2-bit Comparators block. You have to satisfy given condition by applying all data on figure 4. At the end, given condition should produce HIGH output and other two should be LOW.
A3 A2 A1 A0 = 1101 and B3 B2 B1 B0 = 1110
Figure_4
Part 2: The serial data-input waveform (Data in) and data-select inputs (S0 and S1) are shown in Figure_5. Determine the data-output waveforms from D0 through D3.
Figure_5
Part 3: Decoder can be useful when we have to decode some specific numbers from their equivalent code. Figure 6 has a concept of 3 to 8 line decoder from which you have to generate output waveform from D0 to D7 with proper relationship to input.
Figure_6
Part 4: The data-input and…
arrow_forward
Design a code converter that converts a decimal digit from
BCD to excess-3 code, the input variables are organized as
(A BC D) respectively with A is the MSB, the output
variables are organized as (W XY Z) respectively with W is
the MSB, put the invalid decimal numbers as don't care.
X= BCD'+B'D+B'C
X= BC'D'+B'D+BC
X= BC'D'+B'D+B'C
X= BC'D'+BD+B'C
arrow_forward
Answer the following questions:
1. Design a 8 bit "shift left-shift right" register.
2. Design a 8 bit up counter.
3. Difference between sequential circuit vs combinational circuit.
4. Design a 8:1 multiplexer using 4:1 multiplexer and 2:1 multiplexer.
5. When designing register file, we used multiplexer to read from a specific register of that
register file. However, to write in the register file, we didn't use demultiplexer. Why ?
6. In our designed register file, we can write one data at a time. But if we want to write two data
at a time,what should we do ?
7.Logisim simulation:
A. Design a 8 bit register file with 10 registers.
B. Design an ALU with AND, OR, XOR, NOT, ADD and SUBTRUCT operations that can use
the above register file.
C. Create a single cycle data-path between register file and ALU. Save 1 digit of your NSU
ID in each register of your register file before running instructions given below.E.g. for id:
1831565042, save 1 in first register, 8 in second, 3 in third and…
arrow_forward
Design a code converter that converts a decimal digit from
BCD to excess-3 code, the input variables are organized as
(A BC D) respectively with A is the MSB, the output
variables are organized as (W X Y Z) respectively with W is
the MSB, put the invalid decimal numbers as don't care.
X= BCD'+B'D+B'C
X= BC'D'+B'D+BC
X= BC'D'+B'D+B'C
X= BC'D'+BD+B'C
arrow_forward
For each combination of input variable we have specified a minterm by representing them as 1 in the K-Map. But, there may arise a case when for a given combination of input we may not have a specified output or the input combination may be invalid. The combinations for which we don't have any output expression specified are called ___________ combination.
arrow_forward
Assume that the system has eight 2-bit data inputs, A=a1a0, B=b1b0, C=c1c0, D=d1d0, W=w1w0, X=x1x0, Y=y1y0, Z=z1z0. There are also 2 control
bits s1s0. The system computes A+B, C+D, W+X, and Y+Z when s1s0 equal to `11', `10', `01', `00', respectively. Use 1-bit 2-to-1 multiplexers and a 2-
bit adder to implement this function. Please show how the inputs, multiplexers, and adder are connected. Label the inputs and select signals clearly. You
don't need to show the details of the adder. (Hint: The adder has two 2-bit inputs E=e1e0 and F=f1f0. Each of E and F is generated by a 2-bit 4-to-1
multiplexer, which can be built using 1-bit 2-to-1 multiplexers.)
arrow_forward
i. What is correct syntax of for loop in c++ Language?
(A) for(initialization; condition; increment/decrement)
(B) for(increment/decrement; initialization; condition)
(C) for(initialization, condition, increment/decrement)
(D) None of These
In c++ language, the break control is used with switch
selection statement (selector)
(A) True
(B) False
ii.
arrow_forward
Refer to the following registers values and memory snippet to answer the following questions.
DS=C224,, SS=D816,, SI=2340, SP=206C,
Physical address
Content
C458A
A5
DB
47
52
68
C9
C4590
FF
A7
D8
11
C4594
39
C4
C4596
F6
1- what will be the value of AX after executing the following set of instructions?
Execute the instructions dependently one after another.
MOU AX, CSI +ØFH ]
NOT AX
MOU BL, I02354H ]
ADD AL, BL
AAA
AX =
2- What is the physical address of the TOP OF STACK (TOS)?
TOS =
arrow_forward
I Signal Processing Lab
courses / Electrical Engineering / Digital Signal Processing Lab / General /
The command can be is used for complex arithmetic is abs() ?
Select one:
O True
O False
The following command rectpuls(t,T), defined 't" is time sequence?
Select one:
cof
O TIue
False
us page
Jump to...
INTR
You are logged in as Mohammed Nasser Ali AL Hatmi (Log out)
eete3220p
Get the mobile app
Thin n i Canr ltm inceene
Oante i- FINIAL ACCE OCMEIT DDA OTICA L
MacBook Pro
arrow_forward
*A traffic light system uses logic gates as part of the control system. The system is operated when the output D has the value . This happens when either (a) signal A is red or (b) signal B is green and signals B and C are both red( NOTE: Assume for this problem that red=0 and green =1)
Deduce the truth table for the system and the Boolean expression from the truth table, Hence Design a logic circuit or network
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
![Text book image](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
Related Questions
- 1) Before using an accumulator within a loop it has to be initialized. 2) _We cannot use functions if we do not include the function prototype. 3) If the number of arguments in a function call does not respect the function definition it causes a syntax error. 4) A pointer can point to variables of the same data type only. 5) We can have pointers to variables that are in the same function. T 6) If a function does not take input arguments and does not return any output, then, it cannot be defined as a function. F 7) We can have variable with the same name in different functions. T 8) _It is not possible to create a variable in the main function that has the same name as a function that we have already defined. T 9) _Global variables can be accessed by all functions I 10) Pointers are only used if the function has multiple outputs. Farrow_forwardWrite down the possible representation level from high level language to logical gates exists in machine architecture. How abstraction is implemented in ISA. In computer organization, how controls are different from data paths.arrow_forward1) Is it a Mealy machine or Moore machine? 2) Derive simplified expressions for Output z, and next state FF outputs y1+ and y2+ in terms of input w, and present state y1 and y2. Simplify using Boolean manipulation. You need not name specific Boolean properties/Theorems used. Leave final answers in simplest SoP/PoS forms. 3) Derive its encoded State-Transition Table. 4) Using the encoded State-Transition Table from part c, derive the symbolic state-transition table. Define your states. Use S0, S1, S2, and so on for state names. 5) Draw state diagram with all states and all transitions shown clearly. 6) What sequence of input values on wire w is detected by this circuit?arrow_forward
- W l ..l O 9:E0 Let (BX)=100H, DI=200H, DS=1200H, SI= FOO2H, AX= 0105H, and the following memory content. what is the content of SI after executing the MOV SI, [DI+BX+7H] instructions? * Memory address Memory content 12300 11 12301 AA 12302 EF 12303 80 12304 47 12305 8D 12306 5A 12307 92 12308 C5 SI = EF80H SI = 80EFH SI = 92C5H SI = C592H O This is a required questionarrow_forwardAn 8-bit register contains the Hex value 2D. What is the register value after an arithmetic shift right? Starting from the initial number 2D, determine the register valuei) after logical shift rightii) after an arithmetic shift left, and state whether there is an overflow not, explain through the proper diagrams.arrow_forwardDesign the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by onearrow_forward
- Problem_#08] For the 4-bit parity generator shown, determine the output. It this circuit generating even or odd parity? Bit time Ao A1 A2 A3arrow_forward3- A-) Implement the Boolean function (F) with a 4 X1 multiplexer and two-input-NOR gates. Connect inputs A and B to the selection lines. The input requirement for the four data lines will be a function of variables C and D. These values are obtained by expressing F as a function of C and D for each of the four cases when AB = 00, 01 ,10 and 11. B-) Implement the Boolean function with a 8 X 1 multiplexer. Connect inputs A,B and C to selection lines. F(A, B, С, D) - 2 (1, 3, 5, 9, 10, 14, 15) А So В S1 4 x 1 MUX 1 Y F 2 3arrow_forwardThis is an abbreviation for the remark statement that is used to explain a step by using a suitable comment without any execution. O True O Falsearrow_forward
- 7. Suppose that the variables 0x01 and Ox02 contain the values 0x82 and Ox83, respectively. What will be the content of 0x02 (in hex notation) and the status bit of flag C after execution of the following segment of code? ( movf Ox01, W addwf 0x02, F Ox02 = [ C = [arrow_forwardWrite trutth table /state table Boolean equation,simplification of equationsarrow_forwardWhat is falaification and fabricating data ? Explain with a short example please quicklyarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Introductory Circuit Analysis (13th Edition)Electrical EngineeringISBN:9780133923605Author:Robert L. BoylestadPublisher:PEARSONDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage LearningProgrammable Logic ControllersElectrical EngineeringISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
- Fundamentals of Electric CircuitsElectrical EngineeringISBN:9780078028229Author:Charles K Alexander, Matthew SadikuPublisher:McGraw-Hill EducationElectric Circuits. (11th Edition)Electrical EngineeringISBN:9780134746968Author:James W. Nilsson, Susan RiedelPublisher:PEARSONEngineering ElectromagneticsElectrical EngineeringISBN:9780078028151Author:Hayt, William H. (william Hart), Jr, BUCK, John A.Publisher:Mcgraw-hill Education,
![Text book image](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,