Hi
Can anyone help me with ADI to SCI program for F28335?
Compiled ADI into SCI making the required minor changes with the format of char,int values.I am able to sense voltage.But that voltage value is'nt reaching the recieving pin of SCI.
Finally I want to display these values on hyperterminal..Some parts of the code are as follows:
interrupt void adc_isr(void)
{
Voltage1 = AdcResult.ADCRESULT0;
Voltage2 = AdcResult.ADCRESULT1;
AdcRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //Clear ADCINT1 flag reinitialize for next SOC
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Acknowledge interrupt to PIE
return;
}
void scia_xmit(char msg)
{
while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {}
SciaRegs.SCITXBUF=msg;
}
void scia_msg(char *msg)
{
Uint16 i;
i = 0;
while(msg != '\0')
{
scia_xmit(char *msg);
i++;
}
Thanks
Sneha