be80be
Well-Known Member
Ok I got some code working it sends back what I send but I want under stand how to use this to send out adc value.
Here the main code
Here the function
This is what is showing up
If i hold the adc to ground i get this
so it sending
Here the main code
Code:
while(1)
{
a = ADC_Read(0); //Reading Analog Channel 0
USARTWrite(a);
__delay_ms(1000); // 1 Second Delay
}
}
Here the function
Code:
void USARTWrite(char data)
{
while(!TRMT);
TXREG = data;
}
Code:
ca fb da da 00 fb db 58 de da
Code:
00 00 00 00 00 00 00 00 00
Last edited: