You are on page 1of 1

program ADC_Test

dim i as word

dim rx2 as word

dim txt as string

main:

TRISB.1 = 1 ' set pin as input - needed for ADC to work

Uart1_Init(2400)

while true

'adcRes = Adc_Read(1)

if Uart1_Data_Ready = 1 then

rx2 =Uart1_Read_Char

Uart1_Write_Char(rx2)

end if

wend

end.

You might also like