Шукаєте відповіді та рішення тестів для [EMI.26S] Microcontrollers · Edeler? Перегляньте нашу велику колекцію перевірених відповідей для [EMI.26S] Microcontrollers · Edeler в moodle.haw-hamburg.de.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
The oscilloscope capture shows one UART transmit frame (idle HIGH). Data bits are transmitted . Format: . The transmitted character is
Verify odd parity of the received frame:
The oscilloscope capture shows one UART transmit frame (idle HIGH). Data bits are transmitted . Format: . The transmitted character is
Decode the data byte (binary MSBLSB) and hexadecimal:
The oscilloscope capture shows one UART transmit frame (idle HIGH). Data bits are transmitted . Format: . The transmitted character is
List the logic level (H/L) of each bit slot in the table below.
| Bit slot | Level (H/L) | Data bit value |
|---|---|---|
| Start | --- | |
| D0 | ||
| D1 | ||
| D2 | ||
| D3 | ||
| D4 | ||
| D5 | ||
| D6 | ||
| P (parity) | --- | |
| Stop 1 | --- | |
| Stop 2 | --- |
Let . Evaluate each expression and fill in the table (show binary with 8 bits).unsigned char x = 0xC3 and unsigned char y = 0x5A
| Expression | hex | binary | decimal |
|---|---|---|---|
x | |||
y | |||
x & y | |||
x | y | |||
x ^ y |
Register ADCCTL, address 0x40038000:
| bit | 31–3 | 2–0 |
|---|---|---|
| name | RES | CH2:CH0 |
| type | reserved | RW |
Implement:
void setAdcChannel(uint8_t const ch);Write the 3-bit channel number into ; leave reserved bits unchanged. Valid channels: CH2:CH00–7.
void setAdcChannel(uint8_t const ch) {
}
Assume big-endian byte ordering. Array starts atarr10x20001000.
unsigned long arr1[3] = {0x11223344UL, 0x55667788UL, 0x99AABBCCUL};Fill in the byte addresses and contents for the first two array elements.
| byte address | content (hex) | belongs to |
|---|---|---|
| 0x20001000 | ||
| 0x20001001 | ||
| 0x20001002 | ||
| 0x20001003 | ||
| 0x20001004 | ||
| 0x20001005 | ||
| 0x20001006 | ||
| 0x20001007 |
Register DEVCFG, address 0xC0041200:
| bit | 31–16 | 15–8 | 7–0 |
|---|---|---|---|
| name | RES | FLAGS | STAT |
| type | reserved | RW | RO |
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) {
}
The oscilloscope capture shows one UART transmit frame (idle HIGH). Data bits are transmitted . Format: . The transmitted character is
Calculate the duration of a single bit ():
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.
| i | value 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] |
|---|---|---|---|---|