Question: 7 . Consider the following source code ` ` ` unsigned int 1 6 x , y; / / MISSING VALUES. #INT _ CCP 1

7. Consider the following source code
```
unsigned int16 x, y; // MISSING VALUES.
#INT_CCP1
void int_ccp1_isr(){
*CPPR1=*CCPR1+ x;
}
main(){
lcd_init();
*TR\overline{ISSB =0x00;}
T1CON->TMR1ON =1;
T1CON->T1CKPSx =1;
CCP1CON->CCPxMx =2;
PIE1->CCP1IE =1;
INTCON->PEIE =1;
INTCON->GIE =1;
*CCPR1= y;
while(1){
}
}
```
Given the code above what calculate the value of \( x \) and \( y \) that will generate a \(\mathrm{F}=\)575 kHz at PIN_C2.
\[
\begin{array}{l}
x=y=4
\end{array}
\]
7 . Consider the following source code ` ` `

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!