Question: 6. A C (1) Explain the asterisked codes on the blank lines next to thenm (2) Explain the overall function of this program, e.g. what

6. A C (1) Explain the asterisked codes on the blank lines next to thenm (2) Explain the overall function of this program, e.g. what is the frequency of the output square waveform? (10 points) program is provided below. You are required to #include "C:\cwHCS12\include\hcs12.h" #include "C:\cwHCS12\include\SetClk.h" char hiOrldo; void main(void) SetClk8(); hiOrlo = 0; "DDRT I=0x20; PTT | = 0x20; // pull PTS pin to high "RTICTL =0x40; *CRG INT-RTIE; asm("cli"); while(1); // RTI interrupt service routine interrupt void rtilSR(void)1 "CRGFLG = 0x80; if(hiOrlo) hiOrlo = 0; PTT |= 0x20; // pull pin high else\ hiOrlo = 1; PTT &= 0XDF; // pull pin low 6. A C (1) Explain the asterisked codes on the blank lines next to thenm (2) Explain the overall function of this program, e.g. what is the frequency of the output square waveform? (10 points) program is provided below. You are required to #include "C:\cwHCS12\include\hcs12.h" #include "C:\cwHCS12\include\SetClk.h" char hiOrldo; void main(void) SetClk8(); hiOrlo = 0; "DDRT I=0x20; PTT | = 0x20; // pull PTS pin to high "RTICTL =0x40; *CRG INT-RTIE; asm("cli"); while(1); // RTI interrupt service routine interrupt void rtilSR(void)1 "CRGFLG = 0x80; if(hiOrlo) hiOrlo = 0; PTT |= 0x20; // pull pin high else\ hiOrlo = 1; PTT &= 0XDF; // pull pin low
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
