Question: The hal _ entry.c file should be like the following code * Port Control Register 1 on P 4 5 1 of S 7 G

The hal_entry.c file should be like the following code
* Port Control Register 1 on P451 of S7G2 databook */
#define P6PCNTR1(*(volatile unsigned long *)0x400400C0)
void hal_entry(void){
P6PCNTR1=0x00000001; /* set signal P600 as an output signal */
while (1){
** W4400400C0,00000001, turn on the green LED */
for (int i=0; i1000000; i++) P6PCNTR1=0x00000001;}
for (int i=0; i1000000; i++) P6PCNTR1=0x00010001;
}
Build the project again and download the machine code to the microcontroller board. Is the green LED
blinking after the program is executed? Use an oscilloscope to measure signal P600 and attach a hardcopy
of the signal here. How long does the green LED keep on (measure the duration for the low voltage)? How
long does the green LED keep off (measure the duration of the high voltage)? Can a human being react to
this change?
Click Terminate icon to stop the debug process and modify the code.
Use the following code replace the code in while (1) loop:
The hal _ entry.c file should be like the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!