User Guide
Table Of Contents
1LSb Octal DAC Evaluation Board User’s Guide
DS50003218A-page 32 2021
Microchip Technology Inc. and its subsidiaries
{
for(del2=0;del2<100;del2++)
{
if(SWITCH1)
{
break;
}
}
while(SWITCH1==0);// wait here for the switch to release
LED3=0;
LED2=0;
if(Status==SPI_SINE)
{
Status=SPI_SAWTOOTH;
}
else
{
Status=SPI_SINE;
}
}
}
/****************************************************************
* Check for Switch2 pressed
****************************************************************/
void SW2(void)
{
if(SWITCH2==0)
{
for(del2=0;del2<100;del2++)
{
if(SWITCH2)
{
break;
}
}
while(SWITCH2==0);// wait here for the switch to release
LED3=0;
LED2=0;