Professional Documents
Culture Documents
Every bus is some type of protocol that defines how devices gain access to the
bus (arbitration), the rules attached devices must follow to communicate over the
bus (handshaking), and the signals associated with the various bus lines.
Board devices obtain access to a bus using a bus arbitration scheme.
Bus arbitration is based upon devices being classified as either master devices or
slave devices.
When there is one master no arbitration is necessary.
The I2C (inter-integrated circuit) protocol is a serial bus with one serial data line
line.
In the case of the MPC860, there is an integrated I2C controller on the master
register.
Initializing the I2C bus on the MPC860 means initializing the I2C SDA and SCL
pins, many of the I2C registers, some of the parameter RAM and the associated
buffer descriptors.
The MPC860 I2C SDA and SCL pins are configured via the Port B general
purpose I/O port (Figure 2.1.1b and 2.1.1c).
The board I/O subsystem components that require some form of software
management include the components integrated on the master processor, as well
The Ethernet and RS232 I/O initialization routines for the Power PC and ARM
architectures are provided as examples of I/O startup (initialization) device drivers.
EXAMPLE 21.2.1 : INITIALIZING AN ETHERNET DRIVER
The example used here will be the widely implemented LAN protocol Ethernet,
encapsulation.
Ethernet devices encapsulate data they want to transmit or receive into what are
The MPC823 has two serial communication controllers (SCC2 and SCC3) that
networks.
It determines how Ethernet on the MPC823 is configured to be interrupt driven .
The actual initialization sequence can be divided into seven major functions:
disabling SCC2, configuring ports for Ethernet transmission and reception,
initializing buffers, initializing parameter RAM, initializing interrupts and
initializing registers.
One of the most widely implemented asynchronous serial I/O protocols is the
transmission.
Data is transmitted asynchronously over RS-232 in a stream of bits that are
traveling at a constant rate.
SPECIFICATIONS OF RS232:
SPECIFICATIONS
RS232
Cabling
Single ended
Number of devices
1 transmit
1 receive
Communication mode
Full duplex
50 feet
20kbps
Signalling
unbalanced
Skew rate(Max)
30V/us
3k to 7k
+/- 3V
Output Current
500mA