Professional Documents
Culture Documents
Real Time
Embedded Systems
www.atomicrhubarb.com/embedded
Lecture 1 – January 17, 2012
Topic
Section Topic
• Where in the books
– Catsoulis chapter/page
– Simon chapter/page
– Zilog UM197 (ZNEO Z16F Series Flash Microcontroller Contest Kit User Manual)
– Zilog UM171 (ZiLOG Developer Studio II—ZNEO User Manual)
– Zilog PS220 (ZNEO Z16F Series Product Specification)
– Zilog UM188 (ZNEO CPU Core User Manual)
– Assorted datasheets
IrDA
Infra Red transmission of data.
IRDA = Infra Red Data Association
Developed and maintains IRDA
standard.
Standard Includes low level protocol
and several high level protocols.
Not all IR communication is IRDA
IrDA
Point to point protocol
Asynchronous serial transmission
Short distances
IrDA 1.0 = 2,400 pbs to 115.2 kpbs, 3
feet
Infra Red signals modulated on a 40
Khz carrier.
IrDA
SIR - Serial (Slow) infrared
9.6 kbps to 115.2 kbps, RZI modulation
MIR - Medium infrared
576 kbps and 1152 kbps, RZI modulation
FIR - Fast infrared
4 Mbps, 4 PPM (Pulse-position modulation)
VFIR - Very fast infrared
16 Mbps, HHH (1,3) modulation
What is PPM encoding?
PAM
The PAM data stream is
transmitted as a
uniformly spaced
sequence of constant-
width pulses. The
intensity of each pulse is
modulated by
amplitude. This is
similar to AM radio
broadcast, except the
carrier is a pulse rather
than a sine wave.
PDM
Since amplitudes are
degraded by noise, the
data stream is converted
to a constant-amplitude
pulse modulation
scheme. PDM (Pulse
Density Modulation)
carries the information in
the pulse width, which
varies directly to the
amplitude of the signal.
PPM
PPM (pulse position
modulation) results if the
PDM waveform is
differentiated &
rectified. Distance
between pulses is the
sampled amplitude of the
sine wave. Average
system power for PPM is
much lower than PDM at
the expense of greater
bandwidth.
PCM
In PCM (pulse code
modulation), each
pulse is encoded into
its binary equivalent.
During PCM encoding,
the serial output
stream is conditioned
for the communication
link.
PCM
You establish the patterns used to
represent logical one and zero values.
A number of PCM codes have been
designed for different performance.
What is NRZ, RZ, RZI
encoding?
NRZ, RZ, RZI
Non-Return to Zero 0 1 0 0 1 1 0 1
(NRZ) signal does not
return to zero after
bit is transmitted
0 1 0 0 1 1 0 1
Return to Zero (RZ)
the signal changes
not between bits but
during each bit 0 1 0 0 1 1 0 1
RZI – Return to Zero
Inverted
IrDA
IrDA
Ir data
Ir Ir
Z16 UART ENDEC ENDEC UART Device
TxRx TxRx
IrDA layers
Physical Layer – Optical, encoding of
data.
IrLAP – Link Access Protocol
IrLMP – Link Management Protocol
IAS – Information Access Service
TinyTP – Tiny Transport Protocol
IrOBEX – Object Exchange Protocol
IrCOMM – Serial & Parallel Port
emulation
Alas, www.blaulogic.com is no more.
But Gerd Rausch's code lives on, use the
Internet wayback machine:
http://web.archive.org/web/2006112420513
8/www.blaulogic.com/pico_irda.shtml
IrDA view angle
•SIR
Clock
Data Bit
IR
IR Remote Control Signals
• Whats a “J10” ?
IrDA
Can the Z16 speak
IR Remote Control
(like RC-5 or SIRC)?
What does “PA5_TXD0” mean?
So ....
• ... what if we
don't enable the
alternate
function on
Z16
these pins. Then
what have we
done?
This is RC-5
Recall ...
This is RC-5
1 1 1 0 0 1 0 1 0 0 0 0 1 0
Address 5 Command 2
(VCR) (“2” button)
Can the UART
encode/decode these
1's and 0's for us?
Decoding IR remotes