ETC STLR4200S

Integrated Mixed-Signal Solutions
STIr4200
USB/IrDA Bridge Controller
Version 2.0
April ‘03
OFFICIAL PRODUCT DOCUMENTATION
3-4200-D1-2.0-0403
Copyright © 2003 SigmaTel, Inc. All rights reserved.
All contents of this document are protected by copyright law and may not be reproduced without the express written consent of SigmaTel, Inc.
SigmaTel, the SigmaTel logo, and combinations thereof are registered trademarks of SigmaTel, Inc. Other product names used in this publication are for identification purposes only and may be trademarks or registered trademarks of their respective companies. The contents of
this document are provided in connection with SigmaTel, Inc. products. SigmaTel, Inc. has made best efforts to ensure that the information
contained herein is accurate and reliable. However, SigmaTel, Inc. makes no warranties, express or implied, as to the accuracy or completeness of the contents of this publication and is providing this publication "AS IS". SigmaTel, Inc. reserves the right to make changes to
specifications and product descriptions at any time without notice, and to discontinue or make changes to its products at any time without
notice. SigmaTel, Inc. does not assume any liability arising out of the application or use of any product or circuit, and specifically disclaims
any and all liability, including without limitation special, consequential, or incidential damages.
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
1. TABLE OF CONTENTS
1. TABLE OF CONTENTS .............................................................................................. 2
1.1. List of Figures .................................................................................................................... 3
1.2. List of Tables .....................................................................................................................3
2. PRODUCT OVERVIEW ............................................................................................... 4
2.1. Features ............................................................................................................................ 4
2.2. Description ........................................................................................................................ 4
2.3. Ordering Information ......................................................................................................... 4
2.4. STIr4200 Block Diagram .................................................................................................. 5
3. CHARACTERISTICS AND SPECIFICATIONS ........................................................... 5
3.1. Absolute Maximum Ratings .............................................................................................. 5
3.2. Recommended Operating Conditions ............................................................................... 5
3.3. Electrical Characteristics ................................................................................................... 6
4. FUNCTIONAL DESCRIPTION .................................................................................... 6
4.1. Overview ...........................................................................................................................6
4.2. USB Interface .................................................................................................................... 7
4.3. Vendor-Specific Device Requests ..................................................................................... 7
4.3.1. Write Multiple Registers ....................................................................................... 7
4.3.2. Write One Register ............................................................................................... 7
4.3.3. Read Multiple Registers ....................................................................................... 8
4.3.4. Read ROM ........................................................................................................... 8
4.3.5. Vendor Clear Stall ................................................................................................ 8
4.4. Digital IR Transceiver ........................................................................................................9
4.5. FIFO Contents ................................................................................................................... 9
5. IR FRAMING FORMATS ........................................................................................... 10
5.1. Transmit Frame Format ..................................................................................................10
5.1.1. SIR Transmit Frame ...........................................................................................10
5.1.2. FIR Transmit Frame ...........................................................................................11
5.1.3. Receive Frame Format .......................................................................................12
5.1.3.1. SIR Receive Frame ............................................................................12
5.1.3.2. FIR Receive Frame ............................................................................13
6. DIGITAL IR TRANSCEIVER REGISTERS ................................................................ 14
6.1. Detailed STIr4200 Register Descriptions .......................................................................14
6.1.1. FIFO Data Register ............................................................................................14
6.1.2. Mode and Baud Rate Registers .........................................................................15
6.1.2.1. Mode Register ....................................................................................15
6.1.2.2. Baud Rate Register ............................................................................15
6.1.3. Control Register .................................................................................................16
6.1.4. Sensitivity Register .............................................................................................17
6.1.5. Status Register ...................................................................................................17
6.1.6. FIFO Count Registers (LSB,MSB) .....................................................................18
6.1.6.1. FIFO Count LSB .................................................................................18
6.1.6.2. FIFO Count MSB ................................................................................18
6.1.7. DPLL Tune Register ...........................................................................................18
6.1.8. IRDIG Setup Register .........................................................................................19
6.1.9. Test Register ......................................................................................................19
7. PIN DESCRIPTION .................................................................................................... 20
7.1. STIr4200S 28-Pin SSOP Pin Description .......................................................................20
8. PACKAGE DRAWINGS ............................................................................................ 21
2
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
1.1.
List of Figures
Figure 1. STIr4200 Block Diagram .................................................................................................5
Figure 2. Typical USB-IR Application ............................................................................................. 6
Figure 3. Block Diagram of Digital IR Transceiver .......................................................................... 9
Figure 4. SIR Transmit Frame Format ..........................................................................................10
Figure 5. FIR Transmit Frame Format ..........................................................................................11
Figure 6. SIR Receive Frame Format ...........................................................................................12
Figure 7. FIR Receive Frame Format ...........................................................................................13
Figure 8. STIr4200S 28-Pin SSOP Pin Assignment Drawing .......................................................20
Figure 9. 28-Pin SSOP Package Drawing ....................................................................................21
1.2.
List of Tables
Table 1. Absolute Maximum Ratings .............................................................................................. 5
Table 2. Recommended Operating Conditions ..............................................................................5
Table 3. Electrical Characteristics .................................................................................................. 6
Table 4. Write Multiple Registers .................................................................................................... 7
Table 5. Write One Register ........................................................................................................... 7
Table 6. Read Multiple Registers ................................................................................................... 8
Table 7. Read ROM ........................................................................................................................ 8
Table 8. Vendor Clear Stall ............................................................................................................ 8
Table 9. IrLAP Frame .....................................................................................................................9
Table 10. Ir Transceiver Registers ...............................................................................................14
Table 11. FIFO Data Register ......................................................................................................14
Table 12. Mode Register ..............................................................................................................15
Table 13. Baud Rate Register ......................................................................................................15
Table 14. Mode and Buad Rate Values for Required IrDA Modes of Operation ..........................15
Table 15. Control Register ............................................................................................................16
Table 16. Sensitivity Register .......................................................................................................17
Table 17. Status Register .............................................................................................................17
Table 18. FIFO Count LSB ...........................................................................................................18
Table 19. FIFO Count MSB ..........................................................................................................18
Table 20. DPLL Tune Register .....................................................................................................18
Table 21. IRDIG Setup Register ...................................................................................................19
Table 22. Test Register ................................................................................................................19
Table 23. Pin Descriptions for STIr4200S 28-Pin SSOP Package ...............................................20
3-4200-D1-2.0-0403
3
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
2. PRODUCT OVERVIEW
2.1.
2.2.
Features
•
Low-power CMOS design
•
IrDA data rates from 2.4 Kbps to 4 Mbps
•
Obtains power from USB port
•
Uses standard IrDA transceivers
•
Optional LED driver for additional flexibility
– LED driver capable of > 650 ma @ 5V, 25% duty cycle
•
Full compliance to IrDA 1.3 and USB 1.1 specifications
•
4 Kbyte FIFO buffer memory
•
Requires a single 12 Mhz crystal
•
Windows 98/98SE/ME/2000/XP™ NDIS/USB driver
•
Low-profile 28-Pin SSOP package
Description
The SigmaTel STIr4200 is a low cost, low power, USB/IrDA Bridge Controller integrated circuit for enabling IrDA wireless data communications through a standard
PC USB port. The STIr4200 directly interfaces to both single path and dual path
receive IrDA transceiver module architectures and contains a USB controller, IrDA
controller, interface logic, and memory buffer for full IrDA 1.3, 4 Mbps data transfer
rates. A block diagram is hown in Figure 1.
The STIr4200 is bundled with a Windows 98/98SE/ME/2000/XP™ NDIS/USB driver
for enabling the implementation of a cost effective USB/IrDA Adapter solution for
wireless data communications.
Infrared
Communication
Transmission
2.3.
4
Infrared
Transceiver
SigmaTel USB/
IrDA Bridge
Controller
Data
Transfer
USB
Connection
to the PC
Ordering Information
Part Number
Package
Temp Range
Supply Range
STIr4200S
28-Pin SSOP
0° C to +70° C
Vdd = 3.1 - 3.6V
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
2.4.
STIr4200 Block Diagram
Optional LED Driver
TX DIODE
USB - IRDA Bridge IC
Bulk In
USB Port Interface
+V
D POS
D NEG
Bulk Out
Control
IrDA
Transceiver
Interface
IrDA Controller
UOUT
IrDA Digital Interface
USB Controller
USB - IRDA Interface Logic
USB Port
4K FIFO
Buffer
IR Register
Set
SD/MODE (TEMIC
ONLY)
TXDATA
TXD
RXFAST
RXD/R XFAST
RXSLOW RXSLOW (DUAL
RECEIVE PATH)
Gnd
12 Mhz
Figure 1. STIr4200 Block Diagram
3. CHARACTERISTICS AND SPECIFICATIONS
3.1.
Absolute Maximum Ratings
Symbol
Parameter
PD
Power Dissipation (Package constraint)
TA
Operating Temperature
TJ
Lead Solder Temperature
TS
Storage Temperature
VCC
Vmax
MIN
MAX
UNITS
0
70
°C
260
°C
-55
125
°C
-0.3 V
6
V
VDD + 0.4V
V
CONDITIONS
mW
Supply Voltage
Voltage at any pin
for 10 sec max.
ESD
Electrostatic Discharge (ESD)
+/- 2KV
V
See Note 1
Note: 1. The device meets the JESD22-A114-A Electrostatic Discharge (ESD) Sensitivity Testing Human Body Model
(HBM) requirements of +/- 2KV on all pins, except the TXDIODE pin (Pin 2), where the limit is +/1.5KV.
Table 1. Absolute Maximum Ratings
3.2.
Recommended Operating Conditions
Symbol
VDD
TA
Parameter
Supply Voltage
Operating Temperature Range
MIN
TYP
MAX
UNITS
3.1
3.3
3.6
V
0
25
70
°C
CONDITION
Table 2. Recommended Operating Conditions
3-4200-D1-2.0-0403
5
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
3.3.
Electrical Characteristics
TA = 25°CA VDD = 3.3V unless otherwise specified. Cap Load = 50pF
Symbol
Parameter
MIN
TYP
MAX
UNITS
ICC
Active Supply Current
12
19
mA
ICC
Suspend Supply Current
14
50
µA
VRXDH
Receive Data Logic High
VRXDL
Receive Data Logic Low
VTXDH
Transmit Data Logic High
VTXDL
Transmit Data Logic Low
VDD x 0.8
CONDITION
V
0.8
VDD x 0.6
V
V
VDD x 0.4
V
Table 3. Electrical Characteristics
4. FUNCTIONAL DESCRIPTION
4.1.
Overview
The STIr4200 consists of two major functional blocks, the USB controller and the
digital IR transceiver. The USB controller provides a Control, Bulk-In, and Bulk- Out
endpoints to the USB host. The digital IR transceiver consists of a transmit and
receive interface that connects to an analog IR front end. Figure 1shows a block diagram of the device.
This USB/IrDA Bridge Controller has full interface capability to connect between a
USB bus , and an IrDA-compatible infrared transceiver device. A simplified schematic of this arrangement is shown in Figure 2.
Voltage
Regulator
Vcc
V+
DD+
GND
STIr4200S
GND
USB-IrDA
Bridge
Controller
RXD
TXD
SD
IrDA Transceiver
USB Connector
USB
Figure 2. Typical USB-IR Application
6
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
4.2.
USB Interface
The USB interface to the host controller includes a Control endpoint, a Bulk-In endpoint, and a Bulk-Out endpoint. The USB controller supports the USB 1.1 specification. Hence, it supports all standard functionality associated with device
enumeration, standard USB device requests, etc. In addition, there is a set of vendor specific commands provided to allow a USB driver to access registers in the
Digital IR Transceiver and ROM in the USB controller.
Note: The STIr4200 device conforms to all of the USB 1.1 specifications with one
exception of the "get_interface" command. This command is used only during USB
conformance testing, and during that testing, improper operation will be noted on
test results. However, the software drivers provided by SigmaTel, Inc. do NOT use
that command at all, and this does NOT cause any problem of any kind in operation.
A waiver for this command has been obtained from USBIF by SigmaTel, Inc. This
command is not used by the software, and therefore has no effect on device and
system operation. The only time this "get_interface" command is even accessed is
during USB conformance testing.
4.3.
Vendor-Specific Device Requests
4.3.1.
Write Multiple Registers
The write multiple registers vendor specific command allows the user to write multiple sequential registers to the Digital IR Transceiver. Each register is one byte wide,
so the command indicates first register to write, the number of registers to write, and
the data phase supplies the data for those registers.
Offset
Field
Size
Description
0
bmRequestType 1
0x40
Host to device, vendor type, device recipient
1
Brequest
2
Wvalue
1
0x00
Write multiple registers
2
Not used (0x0000)
4
Windex
2
0x0001–0x000f
First register to write
6
Wlength
2
0x0001–0x000f
Number of registers to write
Data phase
4.3.2.
Value (hex)
1-15 bytes of Register Data
Table 4. Write Multiple Registers
Write One Register
The write one register vendor specific command allows the user to write a single
register to the Digital IR Transceiver.
Offset
3-4200-D1-2.0-0403
Field
Size
0
bmRequestType 1
1
Brequest
2
Wvalue
Value (hex)
Description
0x40
Host to device, vendor type, device recipient
1
0x03
Write one register
2
LSB contains data The data to write the register
4
Windex
2
0x0001 – 0x000f
6
Wlength
2
Not used (0x0000)
Table 5. Write One Register
Register to write
7
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
4.3.3.
Read Multiple Registers
The read multiple registers vendor specific command allows the user to read multiple sequential registers from the Digital IR Transceiver. Each register is one byte
wide, so the command indicates the first register to read, the number of registers to
read, and the responding data phase supplies the data from those registers. This
command is also used for the case of reading only one register.
Offset
0
4.3.4.
Field
Size
Value (hex)
Description
bmRequestType 1
0xc0
Device to host, vendor type, device recipient
1
BRequest
1
0x01
Read multiple registers
2
Wvalue
2
Not used (0x0000)
4
Windex
2
0x0001 – 0x000f
6
Wlength
2
0x0001 – 0x000f Number of registers to read
Table 6. Read Multiple Registers
First register to read
Read ROM
The read ROM vendor specific command allows the user to read the contents of the
USB controller endpoint zero ROM. This is primarily a debug feature that allows verification of the endpoint zero ROM contents. Only 64 bytes of ROM data can be
requested at a time. The responding data phase supplies the data from the endpoint
zero ROM.
Offset
4.3.5.
Field
Size
Value (hex)
0
BmRequestType 1
1
Brequest
2
Wvalue
4
Windex
2
0x0000–0x00ff
6
Wlength
2
0x01–0x0040
Description
0xc0
Device to host, vendor type, device recipient
1
0x02
Read ROM
2
Not used (0x0000)
Base ROM address
Number of ROM locations to read (64 bytes
max per request)
Table 7. Read ROM
Vendor Clear Stall
The vendor clear stall command is included as a potential work around for limitations in early versions of the Microsoft™ USB driver stack. Although not a concern
with the latest operating systems, the earlier versions could have the possibility that
the USB driver stack would not properly clear endpoint stalls. The standard device
clear stall request is also supported.
Offset
8
Field
Size
Value (hex)
Description
0
BmRequestType 1
0x42
Device to host, vendor type, endpoint
recipient
1
Brequest
0x01
Clear endpoint stall
1
2
Wvalue
2
Not used (0x0000)
4
Windex
2
0x0000 – 0x0002 Endpoint on which to clear stall
6
Wlength
2
Not used (0x0000)
Table 8. Vendor Clear Stall
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
4.4.
Digital IR Transceiver
USB-IR Interface Logic
USB Interface
The Digital IR Transceiver is responsible for driving the transmit diode and receiving
the digital input from an analog IR front end. The primary components are the transmit modulator, the receive demodulator, the FIFO, the analog transmit section, and
the register array. Figure 3 shows a block diagram of the Digital IR Transceiver. By
programming the registers in the register array, the device’s operation is determined. Various registers are used to specify operations such as the modulation
scheme, the baud rate, the current frame size in the FIFO, the RX input selection,
etc. The FIFO is 4K bytes in size.
Analog TX
Section
TX Modulator
(ASK, IrDA FIR,MIR,SIR)
FIFO
TXDIODE
TXDATA
RXFAST
RX Demodulator
(ASK, IrDA FIR,MIR,SIR)
RXSLOW
Register Array
Figure 3. Block Diagram of Digital IR Transceiver
In steady state transmit operation, the USB controller is filling the FIFO with data
while the Digital IR Transceiver is emptying it via the transmit modulator. In steady
state receive operation, the USB controller is emptying the FIFO while the RX
demodulator is filling the FIFO.
4.5.
FIFO Contents
Data sent to the USB controller for transmission by the TX modulator must be organized into frames. An IrLAP frame is made up of the following portions:
BOF
A
BOF
A
C
I
Address field
Control field
I
Information field
FCS
EOF
Beginning of frame(s)
C
EOF
FCS
Frame check sequence (CRC)
End of frame
Table 9. IrLAP Frame
The NDIS IR stack only provides the A, C, and I fields to the NDIS mini-port device
driver that communicates with the USB/IrDA transceiver. Hence, the mini-port must
fill in the BOF, FCS, and EOF fields. Additionally, the driver must add a 2-byte
header ID code and a 2-byte frame size to the packet before passing the packet
onto the USB stack for delivery to the USB/IrDA transceiver. There are additional
special characters and required escape sequences depending upon the rate of
transfer. Details on the frame format for each of the support rates is discussed in the
following sections.
3-4200-D1-2.0-0403
9
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
5. IR FRAMING FORMATS
5.1.
Transmit Frame Format
5.1.1.
SIR Transmit Frame
The SIR rates include 2.4, 9.6, 19.2, 38.4, 57.6, and 115.2 Kbps. For SIR, the frame
presented to the USB bulk transmit interface must be organized in the following
fashion as shown in Figure 4.
0x55
0xAA
Header ID
LSB size
Number of following bytes
MSB size
0xC0
0xC0
0xC0
0xC0
BOF = Beginning of frame characters
The number of beginning of frame
characters is determined during the
negotiation stage.
0xC0
…
Data
Data
Data
Data
Data
Data
A
C
I
Address/Control/Information Fields
Special characters must be escaped
Original Data
Escaped Data
0xC0
0x7D 0xE0
0xC1
0x7D 0xE1
0x7D
0x7D 0x5D
Data
…
LSB CRC
MSB CRC
0xC1
FCS : 16 bit CRC-CCITT
EOF - End of frame
Figure 4. SIR Transmit Frame Format
10
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
5.1.2.
FIR Transmit Frame
The FIR rate is 4 Mbps The frame organization is detailed in Figure 5.
0x55
0xAA
Header ID
LSB size
Number of following bytes
MSB size
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
PREAMBLE : These characters
cause the STIr4200S to generate the
preamble sequence used by the
receiving device for synchronization.
There must be exactly 16 characters.
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
0x7F
0x7E
0x7E
BOF = Beginning of frame
Data
Data
Data
Data
Data
Data
Data
A
C
I
Address/Control/Information Fields
Special characters must be escaped
Original Data
Escaped Data
0x7D
0x7D 0x5D
0x7E
0x7D 0x5E
0x7F
0x7D 0x5F
‚‚‚
LSB CRC
‚‚‚
‚‚‚
FCS : 32 bit CRC-IEEE802
MSB CRC
0x7E
0x7E
3-4200-D1-2.0-0403
EOF - End of frame
11
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
5.1.3.
Receive Frame Format
Data received into the STIr4200 FIFO from the digital infrared interface can be
accessed by performing a bulk read on the USB interface. The received data contains the encoded infrared data. The STIr4200 does not perform any frame validation or CRC-Checking. Multiple frames may exist within one bulk read depending
upon the size of the bulk read. However, the end of the bulk read buffer may not
necessarily coincide with the end of an infrared frame. It is highly likely that the data
at the end of a bulk read will be a partial frame. The remaining frame data will be
acquired in the next bulk read.
The bulk data thus contains start-of-frame (BOF) characters, end-of-frame (EOF)
characters, and escape characters that delineate the actual frame. It is the responsibility of the host software to reconstruct the frame.
5.1.3.1.
SIR Receive Frame
The standard SIR encoding scheme provides all information needed to delineate
the encoded receive frames. Figure 6 summarizes the SIR receive frame format
encoding scheme.
0xC0
0xC0
0xC0
0xC0
BOF = Beginning of frame characters
The number of beginning of frame
characters is determined during the
negotiation stage.
0xC0
…
Data
Data
Data
Data
Data
Data
Data
A
C
I
Address/Control/Information Fields
Special characters have been escaped. Software
must un-escape the data
Escaped Data
Original Data
Original Data
0x7D 0xE0
0xC0
0xC0
0x7D 0xE1
0xC1
0xC1
0x7D 0x5D
0x7D
0x7D
…
LSB CRC
MSB CRC
0xC1
FCS : 16 bit CRC-CCITT
EOF - End of frame
Figure 6. SIR Receive Frame Format
12
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
5.1.3.2.
FIR Receive Frame
The FIR encoding scheme is modified slightly from the standard scheme. The character 0x7E is used to delineate the BOF and EOF. The STIr4200 escapes three
characters in the data field on receive, 0x7F, 0x7E and 0x7D, which allows the 0x7E
characters used as BOF and EOF to be unique. The 0x7E character can then be
used to delineate the infrared frame boundaries. This hardware escaping in the
data portion is specific to the STIr4200, and the software must un-escape the data
portion of the received frame to restore the original data. Figure 7 summarizes the
FIR receive frame format encoding scheme.
0x7E
0x7E
BOF = Beginning of frame
Data
Data
Data
Data
Data
Data
Data
Data
…
A
C
I
Address/Control/Information Fields
Special characters must be un-escaped
Escaped Data
Original Data
0x7D 0x5D
0x7D
0x7D 0x5E
0x7E
0x7D 0x5F
0x7F
LSB CRC
…
FCS : 32 bit CRC-IEEE802
…
MSB CRC
0x7E
0x7E
EOF - End of frame
Figure 7. FIR Receive Frame Format
3-4200-D1-2.0-0403
13
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6. DIGITAL IR TRANSCEIVER REGISTERS
Offset
Description
Access
Bit Position
7
0
6
5
4
FIFO Data
R/W
1
Mode Register
R/W
2
Baud Rate Register
R/W
3
Control Register
R/W
4
Sensitivity Register
RXDSNS(2: 0)
5
Status Register
EOFRAME FFUNDER FFOVER
RO
ROC
ROC
6
FIFO Count (Note 1)
Register (LSB)
RO
7
FIFO Count (Note 1)
Register (MSB)
RO
8
DPLL Tune Register
RO
9
IRDIG Setup Register
R/W
10
Reserved
R/W
3
2
1
0
Reserved
FIR
Reserved
SIR
ASK
FASTRXEN FFRSTEN FFSPRST PDCLK(8)
PDCLK(7: 0)
SDMODE RXSLOW DLOOP1
TXPWD
RXPWD
TXPWR(1: 0)
BSTUFF SPWIDTH
R/W
R/W
FFDIR
RO
FFCLR
WO
ID(2)
RO
ID(1)
RO
SRESET
ID(0)
RO
FFEMPTY FFRXERR FFTXERR
RO
ROC
ROC
FFCNT(7:0)
0
0
0
FFCNT(12: 8)
DPCNT(5: 0)
RXHIGH
TXLOW
LONGP(1: 0)
Reserved Reserved Reserved
Reserved Reserved Reserved
Reserved
11
Reserved
R/W
Reserved
12
Reserved
R/W
Reserved
13
Reserved
R/W
Reserved
14
Reserved
R/W
15
Test Register
R/W
Reserved
PLLDWN
LOOPIR LOOPUSB TSTENA
TSTOSC(3: 0)
R/W : Read/Write
RO : Read only
ROC : Read only, clear on read
WO : Write only
Note:
1.
Due to double buffering, FFCNT could be off by as much as 3 bytes
Table 10. Ir Transceiver Registers
6.1.
Detailed STIr4200 Register Descriptions
6.1.1.
FIFO Data Register
Offset 0
7
6
5
4
0
0
0
0
FIFO Data
Default State
3
2
1
0
0
0
0
Reserved
0
Bit Number
Bit Mnemonic
Access
Function
7–0
Reserved
R/W
The FIFO data register is used internally by the USB interface to
access the FIFO data in the digital infrared block. Although this
register is accessible through the USB interface, it should never be
accessed during normal operation.
Table 11. FIFO Data Register
14
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6.1.2.
Mode and Baud Rate Registers
Offset 1 and 2
6.1.2.1.
Mode Register
Offset 1
Mode Register
7
6
5
4
FIR
Reserved
SIR
ASK
0
0
1
0
Default State
3
FIR
6
5
1
0
FASTRXEN FFRSTEN FFSPRST PDCLK(8)
0
Bit Number Bit Mnemonic Access
7
2
0
0
0
Function
R/W
When set, puts the infrared modulators into fast infrared mode (4PPM). Must
be mutually exclusive with the SIR bit.
Reserved
RO
Reserved. Write as zero.
SIR
R/W
When set, puts the infrared modulators into slow infrared mode. Must be
mutually exclusive with the FIR bit.
4
ASK
R/W
When set, puts the infrared modulators into amplitude shift keying infrared
mode.
3
FASTRXEN
R/W
Enables simultaneous reads and writes to/from the FIFO.
2
FFRSTEN
R/W
Allows the FIFO receive shift register to be automatically reset in FIR mode.
1
FFSPRST
R/W
Manually resets the FIFO shift register. Must be set to ‘1’ to release the FIFO
shift register from reset.
0
PDCLK(8)
R/W
MSB of baud rate register.
Table 12. Mode Register
6.1.2.2.
Baud Rate Register
Offset 2
7
Baud Rate Register
Default State
6
0
1
Bit Number Bit Mnemonic Access
7:0
PDCLK (7 : 0)
R/W
5
4
3
2
1
0
1
PDCLK(7: 0)
1
0
1
1
1
Function
Sets the divide ratio of the PLL for the infrared modulator/demodulator.
Table 13. Baud Rate Register
Below is a table of values to be written to the mode and baud rate registers to set
the required IrDA modes of operation:
Operational Mode
Speed
Mode Register
Baud Rate Register
FIR
4.0 Mbps
0x80
0x02
SIR
115.2 Kbps
0x20
0x09
57.6 Kbps
0x20
0x13
38.4 Kbps
0x20
0x1D
19.2 Kbps
0x20
0x3B
9.6 Kbps
0x20
0x77
2.4 Kbps
0x21
0xDF
Table 14. Mode and Buad Rate Values for Required IrDA Modes of Operation
3-4200-D1-2.0-0403
15
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6.1.3.
Control Register
Offset 3
Control Register
Default State
7
6
5
4
3
SDMODE
RXSLOW
Reserved
TXPWD
RXPWD
0
0
0
0
0
Bit Number Bit Mnemonic Access
2
1
TXPWR(1: 0)
0
0
SRESET
0
0
Function
7
SD/MODE
R/W
Use this bit only when the STIr4200 is connected to a TEMIC style infrared
transceiver. This bit is used to put the infrared transceiver into the power
down state or toggle the transceiver between high and low speed.
POWER DOWN STATE: Set the SD/MODE bit to enter the power down state.
Clear the SD/MODE bit to exit the power down state.
SET TEMIC HIGH SPEED: Set the FIR bit (bit 7) in the Mode Register, then
set SD/MODE bit, then clear SD/MODE bit.
SET TEMIC LOW SPEED: Clear the FIR bit (bit 7) in the Mode Register, then
set the SD/MODE bit, then clear the SD/MODE bit.
The sequences described above for setting the high or low speed mode
enables a state machine in the STIr4200 to automatically toggle the TXDATA
and UOUT (SD/MODE) pins on the STIr4200.
6
RXSLOW
R/W
When set, selects RXSLOW as the receive input. When cleared, selects
RXFAST as the receive input.
5
Reserved
R
4
TXPWD
R/W
Reserved
When set, powers down the infrared transmitter (modulator).
3
RXPWD
R/W
When set, powers down the infrared receiver (demodulator).
2-1
TXPWR(1: 0)
R/W
Sets the internal pull down resistance to control the current presented to the
transmit diode.
00 : HIGH (max current)
01 : MED HIGH
10 : MED LOW
11 : LOW (min current)
0
SRESET
R/W
When set, performs soft reset of the infrared modulator/demodulator.
Table 15. Control Register
16
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6.1.4.
Sensitivity Register
Offset 4
7
Sensitivity Register
6
5
RXDSNS(2: 0)
Default State
0
0
1
4
3
Reserved
SPWIDTH
0
0
Bit Number Bit Mnemonic Access
7-5
RXDSNS(2: 0)
R/W
2
1
0
ID(2: 0)
ID(2)
ID(1)
ID(0)
Function
Used to program the sensitivity of the DRS demodulator. The corresponding
samples is the number of consecutive samples of an IrDA pulse it takes the
digital detector to declare the presence of a valid IrDA pulse.
Value
FIR
SIR
000
1
4
001
2
8
010
3
12
011
4
16
100
5
20
101
Illegal
24
110
Illegal
28
111
Illegal
Illegal
4
Reserved
RO
Reserved. Write as zero.
3
SPWIDTH
R/W
SIR transmit pulse width. When cleared, the pulse width for SIR mode
transmission is 1.6usec. When set, the pulse width is 3/16th the bit rate.
2-0
Note: 1.
ID(2: 0) (Note 1) RO Revision ID of the chip.
For LA9 device revision, ID (2::0) = 1 1 1
Table 16. Sensitivity Register
6.1.5.
Status Register
Offset 5
7
6
5
4
3
2
1
0
Status Register
Reserved
FFDIR
FFCLR
FFEMPTY
Reserved
Default State
0
1
0
1
0
Bit Number Bit Mnemonic Access
7-5
Reserved
Function
N/A
Reserved
4
FFDIR
RO
When set, the FIFO is in transmit mode. When cleared, the FIFO is in receive mode.
3
FFCLR
WO
When set, clears the FIFO by resetting the pointers to the empty position. This bit
must then be cleared to enable operation of the FIFO. Failing to do so, will
prohibit operation of the FIFO. The state of the bit can not be read.
2
FFEMPTY
RO
When set, indicates there is no data in the FIFO.
1-0
Reserved
N/A
Reserved
Table 17. Status Register
3-4200-D1-2.0-0403
17
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6.1.6.
FIFO Count Registers (LSB,MSB)
Offset 6&7
6.1.6.1.
FIFO Count LSB
Offset 6
7
6
5
4
FIFO Count Register (LSB)
3
1
0
0
0
0
FFCNT(7: 0)
Default State
0
0
0
0
0
Bit Number Bit Mnemonic Access
7-0
2
FFCNT(7:0)
RO
Function
When combined with the FIFO Count Registers (MSB), indicates the number
of bytes in the FIFO.
Table 18. FIFO Count LSB
6.1.6.2.
FIFO Count MSB
Offset 7
7
6
FIFO Count Register (MSB)
5
4
3
Reserved
Default State
0
Reserved
RO
4-0
FFCNT(12:8)
RO
1
0
0
0
FFCNT(12: 8)
0
0
0
0
Bit Number Bit Mnemonic Access
7-5
2
0
Function
Write as zeros.
When combined with the FIFO Count Registers (LSB), indicates the number
of bytes in the FIFO.
Table 19. FIFO Count MSB
6.1.7.
DPLL Tune Register
Offset 8
7
6
DPLL Tune Register
Default State
5
4
3
2
DPCNT(5: 0)
0
1
Bit Number Bit Mnemonic Access
0
1
0
LONGP(1: 0)
1
0
0
1
0
Function
7-2
DPCNT(5: 0)
R/W
Sets the sensitivity of the receiver’s digital PLL. This bit should be used for
chip debug purposes only. This register setting only affects FIR mode. The
default setting is proper for normal operation.
1-0
LONGP(1: 0)
R/W
Sets the sensitivity of the pulse detector of the receiver. These bits should be
used for chip debug purposes only.
Table 20. DPLL Tune Register
18
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
6.1.8.
IRDIG Setup Register
Offset 9
7
IRDIG Setup Register
6
5
4
3
RXHIGH TXLOW
Default State
0
2
1
0
Reserved
0
0
Bit Number Bit Mnemonic Read/Write Access
Function
7
RXHIGH
R/W
When set, this bit inverts the polarity of the data received by the
digital interface on the RXFAST and RXSLOW pins.
6
TXLOW
R/W
When set, this bits inverts the polarity of the data transmitted by
the digital interface on the TXDATA pin.
5-0
Reserved
R/W
Reserved
Table 21. IRDIG Setup Register
6.1.9.
Test Register
Offset 15
7
6
5
4
Test Register
PLLDWN
LOOPIR
LOOPUSB
Reserved
Default State
0
0
0
0
Bit Number Bit Mnemonic Read/Write Access
3
2
1
0
TSTOSC(3 : 0)
0
0
0
0
Function
7
PLLDWN
R/W
When set, powers down the secondary infrared transceiver PLL.
This bit should be cleared for SIR operation. Two independent
PLLs are required in this mode of operation. This bit should be
set for FIR operation since the infrared transceiver uses the USB
PLL in this mode of operation.
6
LOOPIR
R/W
When set, puts the infrared transceiver into internal loop back
using the FIFO to buffer data. This bit should be used for chip
debug purposes only.
5
LOOPUSB
R/W
When set, puts the USB interface into loop back mode using the
FIFO to buffer data. This bit should be used for chip debug
purposes only.
4
TSTENA
R/W
Enables the oscillator to be powered down while in USB Suspend
Mode.
3-0
TSTOSC(3: 0)
R/W
Sets the bias currents for the crystal oscillator circuitry. These bits
should be used for chip debug purposes only.
Table 22. Test Register
3-4200-D1-2.0-0403
19
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
7. PIN DESCRIPTION
7.1.
STIr4200S 28-Pin SSOP Pin Description
Pin Number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
20
TXDIODE GND
1
28
N/C
TXDIODE
2
27
N/C
N/C
3
26
XTALO
N/C
4
25
XTALI
RXFAST
5
24
GND D
TXDATA
6
23
RESET Z
RXSLOW
7
22
TST_EN
UOUT
8
21
TST D
DIGITAL GND
9
20
TST-CLK
VDD
10
19
UIN
ANALOG GND
11
18
VDA
DNEG
12
17
DPOS
N/C
13
16
N/C
N/C
14
15
N/C
STIr4200S
28-Pin SSOP
Note: “N/C” indicates the pin is “not connected”
Figure 8. STIr4200S 28-Pin SSOP Pin Assignment Drawing
Signal Name
Type
Description
PWR
TXDIODE power supply ground
TXDIODE GND
TXDIODE
O
Optional LED driver output
NC
No connect
NC
No connect
RXFAST
I
Receive data from IR module (Fast)
TXDATA
O
Transmit data output to IR module
RXSLOW
I
Receive data from IR module (Slow)
UOUT
O
SD/Mode control to IR module
DGND
PWR
Digital power supply ground
VDD
PWR
Digital power supply (+)
AGND
PWR
USB transceiver power supply ground
DNEG
I/O
USB interface negative (-) data
NC
No connect
NC
No connect
NC
No connect
NC
No connect
DPOS
I/O
USB interface positive (+) data
VDA
PWR
USB transceiver power supply (+)
UIN
I/O
Test
TST-CLK
I
Test clock input
TSTD
I/O
Test data input/output
TST_EN
I
Test enable
RESETZ
I
Master reset, active low
GNDD
PWR
Power supply ground
XTALI
I
12Mhz crystal/clock input
XTALO
O
12Mhz crystal/clock output
NC
No connect
NC
No connect
Table 23. Pin Descriptions for STIr4200S 28-Pin SSOP Package
3-4200-D1-2.0-0403
O F F I C I A L
P R O D U C T
D O C U M E N T A T I O N
STIr4200
USB/IrDA Bridge Controller
8. PACKAGE DRAWINGS
Figure 9. 28-Pin SSOP Package Drawing
3-4200-D1-2.0-0403
21