
All trademarks mentioned in this document http://www.DigitalCoreDesign.com
are trademarks of their respective owners. http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.
efficient as dedicated hardware for some spe-
cific timing applications. and divider.
SCI - The SCI is a full-duplex UART type
asynchronous system, using standard non
return to zero (NRZ) format : 1 start bit, 8 or 9
data bits and a 1 stop bit. The DF6811 resyn-
chronizes the receiver bit clock on all one to
zero transitions in the bit stream. Therefore
differences in baud rate between the sending
device and the SCI are not as likely to cause
reception errors. Three logic samples are
taken near the middle of data bit time, and
majority logic decides the sense for the bit.
For the start and stop bits seven logic sam-
ples are taken. Even if noise causes one of
these samples to be incorrect, the bit will still
be received correctly. The receiver also has
the ability to enter a temporary standby mode
(called receiver wakeup) to ignore messages
intended for a different receiver. Logic auto-
matically wakes up the receiver in time to see
the first character of the next message. This
wakeup feature greatly reduces CPU over-
head in multi-drop SCI networks. The SCI
transmitter can produce queued characters of
idle (whole characters of all logic 1) and break
(whole characters of all logic 0). In addition to
the usual transmit data register empty (TDRE)
status flag, this SCI also provides a transmit
complete (TC) indication that can be used in
applications with a modem.
SPI Unit – it’s a fully configurable mas-
ter/slave Serial Peripheral Interface, which
allows user to configure polarity and phase of
serial clock signal SCK. It allows the micro-
controller to communicate with serial periph-
eral devices. It is also capable of interproces-
sor communications in a multi-master system.
A serial clock line (SCK) synchronizes shifting
and sampling of the information on the two
independent serial data lines. SPI data are
simultaneously transmitted and received. SPI
system is flexible enough to interface directly
with numerous standard product peripherals
from several manufacturers. Data rates as
high as CLK/4. Clock control logic allows a
selection of clock polarity and a choice of two
fundamentally different clocking protocols to
accommodate most available synchronous
serial peripheral devices. When the SPI is
configured as a master, software selects one
of four different bit rates for the serial clock.
SPI automatically drives slave select outputs
SSO[7:0], and address SPI slave device to
exchange serially shifted data. Error-detection
logic is included to support interprocessor
communications. A write-collision detector
indicates when an attempt is made to write
data to the serial shift register while a transfer
is in progress. A multiple-master mode-fault
detector automatically disables SPI output
drivers if more than one SPI devices simulta-
neously attempts to become bus master.
Pulse Accumulator – This system is based
on an 8-bit counter and can be configured to
operate as a simple event counter or for gated
time accumulation. Unlike the main timer, the
8-bit pulse accumulator counter can be read
or written at any time (the 16-bit counter in the
main timer cannot be written). Control bits
allow the user to configure and control the
pulse accumulator subsystem. Two maskable
interrupts are associated with the system,
each having its own controls and interrupt
vector. The PAI pin associated with the pulse
accumulator can be configured to act as a
clock (event counting mode) or as a gate sig-
nal to enable a free-running E divided by 64
clock to the 8-bit counter (gated time accumu-
lation mode). The alternate functions of the
pulse accumulator input (PAI) pin present
some interesting application possibilities.
I/O Ports - All ports are 8-bit general-purpose
bi-directional I/O system. The PORTA,
PORTB, PORTC, PORTD data registers have
their corresponding data direction registers
DDRA, DDRB, DDRC, DDRD to control ports
data flow. It assures that all DF6811’s ports
have full I/O selectable registers. Writes to
any ports pins cause data to be stored in the
data registers. If any port pins are configured
as output then data registers are driven out of
those pins. Reads from port pins configured
as input causes that input pin is read. If port
pins is configured as output, during read data
register is read. Writes to any ports pins not
configured as outputs do not cause data to be
driven out of those pins, but the data is stored
in the output registers. Thus, if the pins later
become outputs, the last data written to port
will be driven out the port pins.