✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The following are defined:
#define PD2 2U
#define PD4 4U
#define PD7 7U
#define BIT( x ) (1U<<(x))
Write a C statement that would enable PD2, PD4 and PD7 to be edge triggered on the rising edge.
For this part of the question, write C statement for the GPIOIS IEV register (GPIOD->IEV) that would accomplish the above.
GPIOD->IEV &= ~xxxxxxxxxxxxxxxx; or GPIOD->IEV |= xxxxxxxxxxxxxxxx; // do not leave spaces for the xxxxxxxxxxxxxxx, e.g. (BIT(PD2)|BIT(PD4))
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!