Question: Embedded Computer Programming Code Problem Please note that all the programming assignments in this courses are for the mbed board. 1 Enter the following program
Embedded Computer Programming Code Problem

Please note that all the programming assignments in this courses are for the mbed board. 1 Enter the following program and run it 2 #include "mbed.h" 4 Digitalout myled (LED1) 6#define PCONp volatile unsigned long 0x400FCOC4)) 8 int main) t 9 10 PCOMP = 0x00808000; //Turn off all the peripherals except GP10 and Timer3 //Timer3 is needed for wait function 12 while ()i 13 myled=!myled ; //flash LED 1 14 ait(l) 15 16 ) a. What value must be written to "pconp" to turn off the clock to GPIO? b. Write this value to "DCROR and run the program. Write down your observations. Please note that all the programming assignments in this courses are for the mbed board. 1 Enter the following program and run it 2 #include "mbed.h" 4 Digitalout myled (LED1) 6#define PCONp volatile unsigned long 0x400FCOC4)) 8 int main) t 9 10 PCOMP = 0x00808000; //Turn off all the peripherals except GP10 and Timer3 //Timer3 is needed for wait function 12 while ()i 13 myled=!myled ; //flash LED 1 14 ait(l) 15 16 ) a. What value must be written to "pconp" to turn off the clock to GPIO? b. Write this value to "DCROR and run the program. Write down your observations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
