ABL electronic PIC12 Personal Computer User Manual


 
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 (
Man_Receive_Config,
Man_Receive_Init, Man_Receive). This means that PIC will wait until the
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.
Man_Receive_Config
Man_Receive_Init
Man_Receive
Man_Send_Config
Man_Send_Init
Man_Send
MikroElektronika:
Development
tools
-
Books
-
Compilers
21 9
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Manchester Code Library
10
Manchester RF_Send_Byte format
Bi-phase coding
0 0 0 0 0 0
11 1 1 1
Example of transmission
St1St2CtrB7 B6B5 B4B3 B2B1B0
2.4ms
Library Routines