Click here to Skip to main content
15,918,967 members

Comments by salah_abughalyon (Top 1 by date)

salah_abughalyon 2-May-13 7:55am View    
thank you for your attention to may question
here is the reading code in PIC
if (UART1_Data_Ready())
{ a=0;

for( a=0;a<3;a++)
{
ch_Rd= UART1_Read();
b=ch_Rd;
delay_ms(2);

ch_Rd= UART1_Read();
delay_ms(2);
acc=ch_Rd;
b+=acc*100;
loc[a]=b;

}
and here is a sample of sening code frome the VB :
serial1.Write(1)
serial1.Write(2)
serial1.Write(0)
serial1.Write(3)
serial1.Write(0)
serial1.Write(4)
serial1.Write(0)
when i display the content of loc[1] for example on leds i had something like:11110011
could you help