logo

Crowdly

The following are defined:   #define PD2 2U   #define PD4 4U   #define PD7 7U...

✅ 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 PD2PD4 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))

More questions like this

Want instant access to all verified answers on distance3.sg.digipen.edu?

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