|
MC33192 Datasheet, PDF (8/12 Pages) Motorola, Inc – MI-Bus Interface Stepper Motor Controller | |||
|
◁ |
Freescale SMeCm33i1c9o2nductor, Inc.
MESSAGE CODING
BiâPhase Coding and Detection
The Manchester BiâPhase code shown in Figure 10
requires two time slots (2ts) to encode a single data bit. This
allows detection of a single error at the time slot level. The
logic levels â1â or â0â are determined by the organization of
the two time slots. These always have complementary logic
levels of either zero volts or plus five volts, which are
detected using an Exclusive OR detection circuit during the
Push Field sequence. A â1â bit is detected when the first time
slot is set to a zero logic state (0 V) followed by the second
time slot set to a logic state one (5.0 V). Conversely, a â0â bit
is detected when the first time slot is set to the logic state
âoneâ (5.0 V) followed by a second time slot set to a âzeroâ
logic state (0 V). For these two bits are ExclusiveâORs of
each other.
The addressed devices receiving the Push Field detect
the BiâPhase code. BiâPhase detection involves the
sampling of the Push Field BiâPhase code twice (a and b) for
each time slot. A code error occurs when the two time slots of
the BiâPhase do not follow a logical ExclusiveâOR function
(see Figure 10).
Noise monitoring is accomplished by sampling the Push
Field BiâPhase code twice (a and aâ) and (b and bâ) during
each time slot. A noise error is detected if the two sample
values do not have the same logical level.
Figure 10. Noise/BiâPhase Detection
2 ts
ts
(Logic â0â)
ts
(Logic â1â)
5.0 V
Push Field
BiâPhase
Coded Bits
t
01234567012345670
a
b
a
b
BiâPhase
Detection
aâ a bâ b
aâ a
bâ b
Noise
Detection
Each message frame consists of two fields: The Push
Field, in which data and addresses are transferred by the
MCU to the slave device; and the Pull Field, in which serial
data is transferred back to the MCU from the address
selected slave device. The message frame is broken down
into seven individual field segments as indicated in Figure 4
(Start, Push Field Sync, Push Field Data, Push Field
Address, Pull Field Sync, Pull Field Data, and
EndâofâFrame). The following lists the bit size and function
of each of these segments:
1) Start is the start of message and consists of three time
slots (3ts) having the dominant Logic â0â state of less than
0.3 V. Holding the MIâBus at ground for three time slots (3ts)
marks the beginning of the message frame by violating the
law of the Manchester Code.
2) Push Field Sync is a single bit which establishes initial
timing for the Push Field Data to follow.
3) Push Field Data is comprised of five serial data bit
fields (D0, D1, D2, D3 and D4) which comprise the instruction
set defining the configuration and condition of the two
HâBridge output stages.
4) Push Field Address is comprised of three serial data
bit fields (A0, A1 and A2) which define the address or name
of a MC33192 on the MIâBus.
5) Pull Field Sync is a single bit which establishes the end
of the Push Field and the initial start timing for the Pull Field
Data to follow.
6) Pull Field Data is made up of three serial data bit fields
(S2, S1 and S0) which contain the existing status information
of an addressed MC33192.
7) EndâofâFrame field is a signal which communicates
to the MCU that the status information sent by the MC33192
is complete.
The Push Field Sync bit, Push Field Data bits, Push Field
Address bits, Pull Field Sync bit are all coded by the
Manchester BiâPhase L Code. The Pull Field Data bits are
NonâReturn to Zero (NRZ) coded. The Endâof Frame field is
a square wave signal with a frequency of 20 kHz or higher so
as to avoid a condition which causes a bus violation.
The Manchester BiâPhase L code requires two time slots
(2ts) to encode a single bit. This allows a single error to be
detected during the time slot.
Address Programming involves the use of three
instructions. Refer to Figure10.
First Instruction Set the MIâBus continuously at 12 V.
This places the MC33192 in the programming mode.
Programming is possible only when the MIâBus is at 12 V.
Next, the MCU serially enters âLogic Zerosâ in all five Push
Field Data bit positions (D0, D1, D2, D3 and D4) followed by
the designated address value in the Push Field Address
positions (A0, A1, & A2).
The MCU now waits 275 µs before starting the second
instruction. The total of the Pull time, Delay time, and Bus
Violation time (V) of the second instruction (150 µs, 275 µs
and 75 µs respectively) will cause the memory cell to be
energized for 500 µs. During the first 150 µs of this time, the
MCU is checking the Pull Field Data Bits S2, S1 and S0
looking for the programming code â110â to indicate
complete activation of the memory cell.
Second Instruction (MIâBus voltage remaining at 12 V)
The MCU repeats the same Push Field instruction as
previously sent in the First Instruction; entering all âLogic
Zerosâ in the Push Field Data positions followed by the
designated Push Field Address value in the address
positions.
Again, the MCU waits for the Pull, Delay, and Bus violation
time while checking the Pull Field Data bits looking for the
programming code â110â code. The MCU must repeat the
initial Push Field Address instruction until a â110â code is
received before advancing to the Third Instruction.
Third Instruction The MIâBus voltage is lowered to 5.0 V.
The MCU serially loads âLogic Zerosâ in all five Push Field
Data bit positions followed by the programmed address in the
Push Field Address positions. The MCU then checks the Pull
Field Address status bits looking this time for the
8
MOTOROLA ANALOG IC DEVICE DATA
For More Information On This Product,
Go to: www.freescale.com
|
▷ |