Looking for met2304f25-a.sg test answers and solutions? Browse our comprehensive collection of verified answers for met2304f25-a.sg at distance3.sg.digipen.edu.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
How many levels of System Exception priorities are implemented for the TM4C123?
Which of the following System Exceptions have fixed priorities?
Select all that applies.
What is the address in the vector table for GPIO Port D?
What is the interrupt number for GPIO Port D?
Does the TI TM4C123 microcontroller (used on the Tiva LaunchPad) has a Calibration register for the SysTick timer?
Check also the slideset on CMSIS.
The following are defined:
#define PD1 1U
#define BIT( x ) (1U<<(x))
The following is a program fragment for the GPIOD handler:
int triggered = 0;
void GPIOD_Handler(void)
{
uint32_t status = GPIOD->MIS;
// add your C statement to check if PD1 triggered an interrpt }
Write a C statement to check if PD1 is the source of the interrupt. If it is, set 'triggered' to be a 1.
The following macro can be used to set/reset GPIO port D pin 1 (PD1).
#define PD1(x) (*((volatile uint32_t*)(GPIOD_BASE+0x08))=x<<1)
PD12 is a macro that would ret/reset both pins PD1 and PD2.
#define PD12(x) (*((volatile uint32_t*)(GPIOD_BASE+0xnn))=x<<m)
where nn is a hexdecimal number and m is an integer.
What are the values of 0xnn and m?I would like to write to bits 6, 3 and 1 of the GPIO register through address masking.
What is the offset address that I should write to?
Write your answer in hexadecimal in the form: 0xnnn.
I would like to write to bits 4 and 7 of the GPIO register through address masking.
What is the offset address that I should write to?
Write your answer in hexadecimal in the form: 0xnnn.
Write your answer in hexadecimal in the form: 0xnn.