logo

Crowdly

Browser

Add to Chrome

[EMI.26S] Microcontrollers · Edeler

Looking for [EMI.26S] Microcontrollers · Edeler test answers and solutions? Browse our comprehensive collection of verified answers for [EMI.26S] Microcontrollers · Edeler at moodle.haw-hamburg.de.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

The oscilloscope capture shows one UART transmit frame (idle HIGH).

Data bits are transmitted

LSB first

.

Format:

7O2 at 115200 bps

.

The transmitted character is

'E' (7 data bits).

UART oscilloscope capture 7O2

Verify odd parity of the received frame:

View this question

The oscilloscope capture shows one UART transmit frame (idle HIGH).

Data bits are transmitted

LSB first

.

Format:

7O2 at 115200 bps

.

The transmitted character is

'E' (7 data bits).

UART oscilloscope capture 7O2

Decode the data byte (binary MSBLSB) and hexadecimal:

View this question

The oscilloscope capture shows one UART transmit frame (idle HIGH).

Data bits are transmitted

LSB first

.

Format:

7O2 at 115200 bps

.

The transmitted character is

'E' (7 data bits).

UART oscilloscope capture 7O2

List the logic level (H/L) of each bit slot in the table below.

Bit slotLevel (H/L)Data bit value
Start ---
D0  
D1  
D2  
D3  
D4  
D5  
D6  
P (parity) ---
Stop 1 ---
Stop 2 ---
View this question

Let unsigned char x = 0xC3 and unsigned char y = 0x5A

.

Evaluate each expression and fill in the table (show binary with 8 bits).

Expressionhexbinarydecimal
x   
y   
x & y   
x | y   
x ^ y   
View this question

Register ADCCTL, address 0x40038000:

bit31–32–0
nameRESCH2:CH0
typereservedRW

Implement:

void setAdcChannel(uint8_t const ch);

Write the 3-bit channel number into CH2:CH0

; leave reserved bits unchanged.

Valid channels:

07.

void setAdcChannel(uint8_t const ch) {

}

View this question

Assume big-endian byte ordering. Array arr1

starts at

0x20001000.

unsigned long arr1[3] = {0x11223344UL, 0x55667788UL, 0x99AABBCCUL};

Fill in the byte addresses and contents for the first two array elements.

byte addresscontent (hex)belongs to
0x20001000  
0x20001001  
0x20001002  
0x20001003  
0x20001004  
0x20001005  
0x20001006  
0x20001007  
View this question

Register DEVCFG, address 0xC0041200:

bit31–1615–87–0
nameRESFLAGSSTAT
typereservedRWRO

Implement:

void setFlags(uint8_t const flags);

Write flags into FLAGS (bits 15:8); leave all other fields unchanged.

void setFlags(uint8_t const flags) {

}

View this question

The oscilloscope capture shows one UART transmit frame (idle HIGH).

Data bits are transmitted

LSB first

.

Format:

7O2 at 115200 bps

.

The transmitted character is

'E' (7 data bits).

UART oscilloscope capture 7O2

Calculate the duration of a single bit ():

View this question

Consider the following C code snippet executed on the TM4C1294.

uint16_t buffer[5] = {0xA000, 0xA001, 0xA002, 0xA003, 0xA004};

uint16_t *ptr = buffer + 1;

for (int i = 1; i <= 3; i++) {

*ptr += (uint16_t)i;

ptr++;

}

Trace the loop and fill in the table. Then enter the final buffer content.

Assume the buffer starts at address 0x180.

ivalue of ptr*ptr (before)*ptr (after)ptr after ptr++
1    
2    
3    

Content of buffer after execution:

buffer[0]buffer[1]buffer[2]buffer[3]buffer[4]
     
View this question

Want instant access to all verified answers on moodle.haw-hamburg.de?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome