explain the program for the transmitter
unsigned short
i, ch;
char s1[] = "Adhoc";
void main() {
INTCON.GIE = 0; // Disable interrupts
Man_Send_Config(&PORTB,5); // Initialize manchester sender
while (1)
{
Man_Send(0x0B); // Send start marker
Delay_ms(100); // Wait for a while
ch = s1[0];
i = 0;
while (ch != 0) // string ends with zero
{
Man_Send(ch); // Send char
Delay_ms(90);
i++;
ch = s1;
}
Man_Send(0x0E); // Send end marker
Delay_ms(1000);
}
}
this is the microc coding for a transmitter using pic16f877.
it's using the manchester coding.
i need explanation of what's happening exactly in this program. please give full explanation.