logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на distance3.sg.digipen.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!