mikroC
making it simple...
Manchester Code Library
mikroC provides a library for handling Manchester coded signals. Manchester
code is a code in which data and clock signals are combined to form a single self-
synchronizing data stream; each encoded bit contains a transition at the midpoint
of a bit period, the direction of transition determines whether the bit is a 0 or a 1;
second half is the true bit value and the first half is the complement of the true bit
value (as shown in the figure below).
Notes: Manchester receive routines are blocking calls (
task is performed (e.g. byte is received, synchronization achieved, etc). Routines
for receiving are limited to a baud rate scope from 340 ~ 560 bps.
Library Routines
Man_Receive_Init
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
Manchester RF_Send_Byte format
St1 St2 Ctr B7 B6 B5 B4 B3 B2 B1 B0
2.4ms
1
1
0 0 0
,
Man_Receive
Bi-phase coding
1
0
Example of transmission
1
0 0 0
1 1
). This means that PIC will wait until the
219
,
page
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?