ALPHA-MICRO AMG

AMG-SO204
Optical Switch IC
1. Functional Description of the AMG-SO204
The AMG-SO204 is a fully integrated optical receiver for optical switch or data transmission
applications. It is an integrated light barrier receiver/transmitter front-end IC to be used with
external receiving and emitting diodes. The IC consists of a current-to-voltage converter, a
variable-gain amplifier, a 10-bit ADC, a logic block, two bandgap reference voltage cells, one
1.8V, two 2.5V, and one 3.3V regulator.
The emitting diode is controlled by the digital block of the IC, its light signal is received by the
receiving photo diode. The resulting input current signal of the IC, is converted into a voltage
signal by the current to voltage converter and then amplified. The gain of the amplifier can be
set to six predefined levels. The IC's ADC samples and converts the gained signal
synchronously with the emitting diode's signal. The signal values are processed by the logic
block which allows for variable object detection threshold values, adjustable light signal timing,
and digital signal filtering.
The digital block can be configured and monitored through an asynchronous interface. An
eight digit, 7-segment display can be driven by the AMG-SO204 whose value is set through
the UART interface. The IC requires external reset and 20MHz clock signal to operate.
2. Features
 Specialized photo diode receiver front-end in CMOS technology
 4.5V to 6.5V supply voltage range
 On-chip 3.3V linear voltage regulator supporting off-chip electronics
 Separate on-chip analog and digital core on-chip 2.5V linear voltage regulators
 On-chip 1.8V ADC reference voltage regulator
 Internal current-to-voltage converter with modifiable trans resistance
 Support of an external current-to-voltage converter by disabling the internal one
 6 step variable gain amplifier with matched compensation for increased dynamic range
 PWM-adjustable transmit-LED signal strength
 Adjustable transmit-LED timing
 Adjustable digital signal filtering
 Integrated 8 digit 7-segment LED driver
 625kBit/s UART interface
 Low power consumption
3. Application
The AMG-SO204 is suitable for optical switch applications (i.e. light barriers) and optical data
transmission applications.
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 1 of 30
AMG-SO204
Optical Switch IC
3.1. Example Application Drawing
MCU
EXTOUT[1]
EXTCOVER
EXTOUT[0]
SEG[7:0]
ROW[7:0]
CBGAIN
REFEXT
RF
IN
CPURXD
CPUTXD
COMRXD
INCLK
COMTXD
RESIN
AMG-SO204
VGAOUT
EXTINP
2x External
Output
RX
NPN
LIGHTOUT
VREF
GNDA
VDDA
VDDD
TX
LIGHTCURR.
IN1
GNDD
4.5-6.5V
supply
VDD
GND
CB3V3
12-30V
8x7 segment
LED
Figure 1: Optical Switch.
3.2. Application Notes
In preparation
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 2 of 30
OUT1
OUT2
AMG-SO204
Optical Switch IC
Table of Contents
1.Functional Description of the AMG-SO204............................................................................ 1
2.Features................................................................................................................................. 1
3.Application............................................................................................................................. 1
3.1.Example Application Drawing................................................................................................... 2
3.2.Application Notes (optional)..................................................................................................... 2
4.Block Diagram....................................................................................................................... 5
5.Block Descriptions................................................................................................................. 5
5.1.Current-to-Voltage Converter (OA1)........................................................................................ 5
5.2.Variable Gain Amplifier (OA2).................................................................................................. 5
5.3.Unity Gain Buffer (OA3)........................................................................................................... 6
5.4.ADC Block................................................................................................................................ 6
5.5.I/O Block................................................................................................................................... 6
5.6.Logic Block............................................................................................................................... 6
Figure 3 Logic Blocks..................................................................................................................... 6
6.Pinning / Pad Coordinates..................................................................................................... 7
7.Absolute Maximum Ratings................................................................................................... 9
8.Electrical Characteristics...................................................................................................... 10
8.1.Operational Range................................................................................................................. 10
8.2.DC Characteristics................................................................................................................. 10
8.3.AC Characteristics.................................................................................................................. 10
9.Application........................................................................................................................... 14
9.1.Example Application Circuit(s)............................................................................................... 14
10.Register Description........................................................................................................... 18
10.1.Write Registers..................................................................................................................... 18
10.2.Read Registers..................................................................................................................... 23
11.Serial Interface................................................................................................................... 24
12.LED Display Driver............................................................................................................. 25
13.Supply Block...................................................................................................................... 26
14.IC-Package........................................................................................................................ 28
15.IC-Marking......................................................................................................................... 28
16.Ordering Information.......................................................................................................... 29
17.Notes and Cautions........................................................................................................... 29
17.1.ESD Protection..................................................................................................................... 29
17.2.Storage conditions................................................................................................................ 29
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 3 of 30
AMG-SO204
Optical Switch IC
18.Disclaimer.......................................................................................................................... 29
19.Contact Information............................................................................................................ 30
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 4 of 30
AMG-SO204
Optical Switch IC
4. Block Diagram
VDD
CB3V3
VDDA
VDDD
VREF
Supply
4.5...6.5V
IO Block
Vbg
Bandgap
1.8V
VDDD
Vref
INCLK
EXTINP
2
3.3V
GNDD
Bandgap
Vbg
Vbg
Bias
Currents
2.5V
IBias
Vbg
VDDD
2.5V
4
Logic
Block
Supply Block
RESIN
COMRXD
GNDD
VDDD
4
A
D
C
Vref
OA1EN
IBias
ADC1
I
N
T
E
R
F
A
C
E
IN
OA1
7,2k
ADC2
OA2
OA3
RF
ADC3
ADCx3
GAIN
REFEXT
OA1EN
GNDD
CB3V3
9
GNDD
Signal Processing Block
VGAOUT
GNDA
COMTXD
EXTOUT[1:0]
LIGHTOUT
CPUTXD
ROW[7:0]
SEG[7:0]
CB3V3
2
LIGHTCURRENT
GAIN
CBGAIN
NPN
EXTCOVER
CPURXD
EN
GNDD
GNDD
Figure 2: Block Diagram
5. Block Descriptions
5.1. Current-to-Voltage Converter (OA1)
The converter is built around operational amplifier OA1. Its trans resistance is defined by the
resistance of an off-chip resistor connected between the pins IN and RF of the IC. The DC
voltage applied to the non-inverting input of OA1, which is about 0.5V, defines the average
voltage at the output of the converter. This reference voltage is also available at pin REFEXT
of the IC.
The current to voltage converter can also be built using an external operational amplifier. In
such a case OA1 is disabled by bringing its output to a high-impedance state. This makes it
possible for the output of an external operational amplifier to be connected directly to pin RF. It
is important to remember that, if an external amplifier is used, the voltage at pin RF must not
exceed 2.75V (see Section 6).
5.2. Variable Gain Amplifier (OA2)
The variable gain amplifier is built around operational amplifier OA2. Its gain can be modified
using a 3-bit signal GAIN. The gain can be set to one of six predefined values: 9, 17, 33, 65,
129, and 257V/V. The DC gain of the amplifier is always equal to 1V/V, and the low 3-dB
frequency is set by an external capacitor connected to pin CBGAIN.
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 5 of 30
AMG-SO204
Optical Switch IC
5.3. Unity Gain Buffer (OA3)
The cell OA3 is used as a buffer and provides the separation between the output of the VGA
and the input of the ADC block. It ensures short settling times during sampling.
5.4. ADC Block
The ADC block consists of three successive approximation (SAR) analog to digital converters.
It requires a reference voltage signal. The reference voltage (VREF) is generated within the
IC. To achieve sampling rates of up to 2MS/s three lower throughput ADCs are combined into
one virtual ADC. The digital block controls the individual ADCs in such a way that their offsets
are compensated for.
5.5. I/O Block
The I/O block provides an interface between the 2.5V logic core and the 3.3V IO voltage.
5.6. Logic Block
The logic block provides digital processing of the sampled signal available at the output of the
variable gain amplifier. The built-in logic interface shown in Fig. 5 controls the sampling action
and proper data transmission between the ADC's and the logic block.
Digital Block
Functional Test Mode Interface
ATM
CLK2
RES2
TUN2
SOC2
EOC2
DAT2
CLK3
RES3
TUN3
SOC3
EOC3
DAT3
X110 Top
10
10
10
ADC
Interface
1
ADC
Interface
2
ADC arbiter
CLK1
RES1
TUN1
SOC1
EOC1
DAT1
AZERO
ASTART
10
INCLK
RESIN
COMRXD
COMTXD
EXTOUT[1:0]
EXTINP
NPN
EXTCOVER
LIGHTOUT
Transmit
ADAT
ADC
Interface
3
CPURXD
CPUTXD
GAIN
3
OA1ENAB
Encoder
CPU async.
Interface
3
4
GAIN
EVPORT
8
Peripheral
Blocks
8
ROW
SEG
LIGHTENAB
LIGHTPWM
Figure 3 Logic Blocks
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 6 of 30
AMG-SO204
Optical Switch IC
6. Pinning / Pad Coordinates
PIN#
Symbol
Description
1
Row 1
2
Row 0
3
Seg 4
4
Seg 3
5
Seg 0
6
Seg 1
7
Seg 6
8
Seg 2
9
EXTOUT[0]
Judgment result output port #1
10
EXTCOVER
Overcurrent detection input of external output port, internally pulled-up
to 3.3V
11
NC
Leave unconnected
12
NC
Leave unconnected
13
NC
Leave unconnected
14
NC
Leave unconnected
15
NC
Leave unconnected
16
NC
Leave unconnected
17
NPN
18
INCLK
19
COMRXD
Microcontroller receive port for intermodule communication, internally
pulled-down to GND
20
COMTXD
Microcontroller transmit port for intermodule communication
21
CPURXD
Microcontroller receive port for reading registers, internally pulleddown to GND
22
CPUTXD
Microcontroller transmit port for setting registers
23
EXTOUT[1]
24
EXTINP
25
RESETINB
26
LIGHTCURRENT
LED intensity control
27
LIGHTOUT
LED ON/OFF control
28
VDD
29
CB3V3
Output of the 3.3V regulator/3.3V decoupling capacitor pin
30
VDDD
Decoupling capacitor pin for the 2.5V regulator (digital)
31
GNDD
Digital ground pin
32
NC
33
GNDA
AMG-SO204
Outputs for driving a 7-segment LED display. High level activates a
single digit. Connect to an NPN transistor.
Outputs for driving a 7-segment LED display. High level activates a
segment of a digit. Connect to an NPN transistor.
NPN/PNP select, internally pulled-up to 3.3V
20MHz clock input
Judgment result output port #2
General input port
System reset input port, internally pulled-down to GND
6V supply pin
Leave unconnected
Analog ground pin
Revision: A
29. Jul. 2010
© All rights reserved
Page 7 of 30
AMG-SO204
Optical Switch IC
PIN#
Symbol
Description
34
VDDA
Decoupling capacitor pin for the 2.5V regulator (analog)
35
VREF
Decoupling capacitor pin for the 1.8V reference voltage regulator
36
VGAOUT
VGA output (test and debug pin)
37
CBGAIN
VGA decoupling capacitor pin
38
IN
Current-to-voltage converter input
39
RF
Current-to-voltage converter output
40
REFEXT
0.5V bias pin for an external CVC / 0.5V bias blocking capacitor
41
ROW[5]
42
ROW[3]
Outputs for driving a 7-segment LED display. High level activates a
single digit. Connect to an NPN transistor.
43
ROW[4]
44
ROW[7
45
ROW[6]
46
ROW[2]
47
SEG[5]
48
SEG[7]
AMG-SO204
Outputs for driving a 7-segment LED display. High level activates a
segment of a digit. Connect to an NPN transistor.
Revision: A
29. Jul. 2010
© All rights reserved
Page 8 of 30
AMG-SO204
Optical Switch IC
VGAOUT
VREF
VDDA
GNDA
NC
GNDD
VDDD
CB3V3
VDD
LIGHT
OUT
36
35
34
33
32
31
30
29
28
27
LIGHT
RESET
CURRENT
INB
26
25
CBGAIN
37
24
EXTINP
IN
38
23
EXTOUT
[1]
RF
39
22
CPUTXD
REFEXT
40
21
CPURXD
ROW[5]
41
20
COMTXD
ROW[3]
42
19
COMRXD
ROW[4]
43
18
INCLK
ROW[7]
44
17
NPN
ROW[6]
45
16
NC
ROW[2]
46
15
NC
SEG[5]
47
14
NC
SEG[7]
48
13
NC
1
2
3
4
5
6
7
8
9
10
11
12
ROW[1]
ROW[0]
SEG[4]
SEG[3]
SEG[0]
SEG[1]
SEG[6]
SEG[2]
EXTOUT
[0]
EXT
COVER
NC
NC
Figure 4: AMG-SO204 pin diagram
7. Absolute Maximum Ratings
The Absolute Maximum Ratings may not be exceeded under any circumstances.
#
Symbol
Parameter
Min
Max
Unit
1
VVDD
Supply Voltage
-0.3
18
V
2
VRF
Voltage at Pin RF
-0.3
2.75
V
3
VCLK
Voltage at Pin CLK
-0.3
5.5
V
4
VI/O
Input Voltages at I/O Ports
-0.3
5.5
V
5
VESD
ESD Test Voltage (Human Body Model)
-2
2
kV
6
TSTG
Storage Temperature
-55
150
°C
Note:
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 9 of 30
AMG-SO204
Optical Switch IC
8. Electrical Characteristics
8.1. Operational Range
#
Symbol
Parameter
Min
Max
Unit
1
VVDD
Supply Voltage
4.5
6.5
V
2
TAMB
Ambient Temperature
-25
90
°C
Note:
8.2. DC Characteristics
#
Symbol
1
IVDD
2
TSTARTUP*
Parameter
Min
Total Current Consumption
5
Startup time
Typ
6,5
Max
Unit
8
mA
150
ms
Note: *Startup time is defined as the time between applying supply voltage and photo diode current and readiness of the IC for
proper operation (exempt reset).
8.3. AC Characteristics
a) Operational Amplifier OA1
#
Symbol
Parameter
Min
Typ
Max
Unit
1
AV,0
Differential DC Gain
-
110
-
dB
2
|VO,I|
Input Offset Voltage
-
5
-
mV
3
|IB|
Input Bias Current
-
<1
-
nA
4
VCM
Common Mode Input Voltage
0
-
1.5
V
5
SR
Slew Rate (CL=5pF)
-
0,25
-
V/µs
6
GBW
Gain-Bandwidth Product (CL=5pF)
-
60
-
MHz
7
PM
Phase Margin (CL=5pF)
-
65
-
°
8
en
Input-referred noise voltage
3
nV/√Hz
9
in
Input-referred noise current
1,2
pA/√Hz
Note:
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 10 of 30
AMG-SO204
Optical Switch IC
b) Variable Gain Amplifier (built on OA2)
#
1
All values are given for Cbgain=2.2uF
Symbol Parameter
AV,0
DC Voltage Gain
Gain
Min
Typ
0
9
2
1
17
3
2
33
4
3
65
5
4
129
6
5
257
|VO,I|
Input Offset Voltage
-
8
fL,3dB
Lower 3-dB Frequency
0
10
9
1
20
10
2
40
11
3
80
12
4
160
13
5
320
0
4,5
15
1
4,5
16
2
4,5
17
3
4,5
18
4
6
19
5
6
fH,3dB
AMG-SO204
Upper 3-dB Frequency
Revision: A
29. Jul. 2010
Unit
V/V
7
14
-
Max
5
© All rights reserved
-
mV
Hz
MHz
Page 11 of 30
AMG-SO204
Optical Switch IC
Figure 3:
Steady-state time response of the VGA for a typical signal: GAIN=257V/V,
Vin=5mV, Vref=0.5V, and
Ton=800ns (typical simulation results)
Figure 4:
AMG-SO204
Frequency response of the VGA for different gain levels
(typical simulation results,CB,GAIN=2.2uF)
Revision: A
29. Jul. 2010
© All rights reserved
Page 12 of 30
AMG-SO204
Optical Switch IC
c) ADC
#
Symbol
Parameter
Min
Typ
Max
Unit
-
10
-
bits
0.1
-
2
MS/s
-
-
50
mV
1
N
Resolution
2
FS
Sampling Rate
3
VO,I
Input Offset Voltage
4
DNL
Differential nonlinearity
-0.75
-
0.75
LSB
5
INL
Integral nonlinearity
-2.5
-
2.5
LSB
6
fCLK
Master Clock Frequency
-
32*FS
-
MHz
7
VVREF
Reference Voltage
-
1.8
-
V
8
VinMAX
Input Voltage Range
0
-
VVREF
V
Min
Typ
d) Reference and Supply Voltages
#
Symbol
1
VVREF
1.8V Reference Voltage
1.70
2
VVDDA
2.5V Analog Supply Voltage
3
VVDDD
4
VCB3V3
AMG-SO204
Parameter
Max
Unit
1.80
1.90
V
2.35
2.50
2.65
V
2.5V Digital Supply Voltage
2.35
2.50
2.65
V
3.3V Supply Voltage
3.00
3.30
3.60
V
Revision: A
29. Jul. 2010
© All rights reserved
Page 13 of 30
AMG-SO204
Optical Switch IC
9. Application
The figure below shows the general circuitry. The light line is between RX-Diode (see fig. 6)
and the TX-Diode (see fig. 7). The AMG-SO204 needs an external 20MHz clock to connect at
Pin INCLK (see fig. 8)
9.1. Example Application Circuit(s)
Supply
4.5...6.5V
100nF
3.3V /
20mA
100nF
VDD
100nF
CB3V3
100nF
VDDA
100nF
VREF
VDDD
INCLK
EXTINP
IN
RESIN
COMRXD
RF
NPN
EXTCOVER
CPURXD
AMG-SO204
COMTXD
EXTOUT[1:0]
LIGHTOUT
REFEXT
CPUTXD
ROW[7:0]
SEG[7:0]
100nF
LIGHTCURRENT
CBGAIN
100nF
VGAOUT
GNDA
GNDD
220pF
Figure 5: Example Application Circuit
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 14 of 30
AMG-SO204
Optical Switch IC
10k
10k
10µF
10µF
RX-Diode
e.g. S9119
IN
100nF
3pF
100k
270k
RF
Figure 6: 'Rx circuitry
TX-Diode
e.g. LSE6SF
LIGHTOUT
470
e.g.
TN6725A
LIGHTCURRENT
220
e.g.
TN6725A
10µ
2.2
Figure 7: 'Tx circuitry
20MHz
INCLK
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 15 of 30
e.g. CFPS-39
Lo
e.g.
TN6725A
TX-Diode
e.g. LSE6SF
AMG-SO204
e.g.
TN6725A
10µ
LIGHTOUT
EXTOUT[1:0]
470
Optical Switch10k
IC
e.g.
TN6725A
10
2.2
LIGHTCURRENT
220
220
10k
e.g.
TN6725A
10µ
2.2
20MHz
INCLK
100n
e.g. CFPS-39
20
INCLK
BUSRX
splay
Figure 8: External Oscillator
ment x 8 digits)
ROW[7:0]
e.g. CF
1k
LED Display
(7 segment x 8 digits)
LED Display
220 x 8 digits)
(7 segment
SEG[7:0] 10k
BUSTXD 3.3k
ROW[7:0] 1k
LED D
(7 segm
Figure 9: Segment driver circuitry for LED Display
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 16 of 30
20MHz
INCLK
100n
AMG-SO204
e.g. CFPS-39
Optical Switch IC
BUSRXD
LED Display
(7 segment x 8 digits)
220
33
ROW[7:0] 1k
0] 10k
10
BUSTXD 3.3k
LED Display
(7 segment x 8 digits)
Figure 10: Row driver circuitry for LED Display
If the internal OA1 is disabled (see chapter 5.1), an external OA can be connected to RF and
REFEXT as shown in fig. 11.
3.3V
3.3V
µPC4572
100k
RF
OA1
100nF
Photodiode
REFEXT
100nF
Figure 11: external Current-to-Voltage Converter OA1 (intern OA1 is inactive)
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 17 of 30
MHz
AMG-SO204
Optical Switch IC
Load
10k
EXTCOVER
220
EXTOUT[1:0]
10k
10k
10k
Figure 12: external threshold control
10. Register Description
100n
10.1. Write Registers
S-39
Address
Bit
0
0
Name
CLM
Value
Reset Value*
0
n/a
1
1
CLC
0
0
ETG
0
BUSRXD
n/a
n/a
Clear COUNTVAL
0
1
2...1
For future use
0
0
play
ent x 8 digits)
3.3k
BUSTXD 29.
Jul. 2010
Revision: A
330
Update EXTOUT on every emitting cycle
from/to
another unit
Update EXTOUT at the external trigger input is active
1
AMG-SO204
n/a
Update RECMAX and RECMIN with present received value
1
1
Detail
Open for future use
Open for future use
100
© All rights reserved
Page 18 of 30
AMG-SO204
Optical Switch IC
Address
Name
Bit
3
Value
FILT
Reset Value*
2
Select trigger input source as the expansion input #1 on the
comparator unit
3
Select trigger input source as the expansion input #2 on the
comparator unit
0
0
1
5...4
7...6
10..8
11
FILTE
0
FILTA
For future use
Enable the received light filter
0
DRK
2
Set 3 to above
3
Set 4 to above
0
Set 8 to above
2
Set 10 to above
3
Set 12 to above
0...5
0
Set the gain of operational amplifier #2
0
0
Open for future use
0
DEMT
Open for future use
0
0
For future use
0
0
AVG
0
0
Open for future use
Open for future use
0
1
2
Enable LIGHTOUT
Disable LIGHTOUT
1
15
Turns on EXTOUT when the received light value is the inside of
between THREnLR and THREnHR
Turns on EXTOUT when the received light value is the outside of
between THREnLR and THREnHR
1
14
Set 6 to the number of received light values in the received light
filter. The result of received light filter is sum of ((FILTA FILTE)*2+4) times of received data
1
1
13
Set 1 to the number of eliminating maximum and minimum value
in the received light filter
Set 2 to above
1
12
Disable the received light filter
1
0
GAIN
Detail
Open for future use
Open for future use
8...0
EMITW
0...511
511
Specify the emitter light pulse width. Time period is
50ns*(EMITW+1). It should be set greater than 15
15...9
ECYCLE
0...127
127
Specify the emitter light cycle. Time period is the emitter pulse
width×(ECYCLE+1). It should be set greater than 4.
Display switching noise may affect on the setting value is 5,37,69,
or 101
3
8...0
EMITS
4
13...0
THRE1LR
AMG-SO204
0...511
7
0…16383
1000
Revision: A
29. Jul. 2010
Put forward the emitter light pulse. Set value that is calculated
(EMITW-[time period].
Lower and Upper threshold levels of EXTOUT[0]. Turn ON when
© All rights reserved
Page 19 of 30
AMG-SO204
Optical Switch IC
Address
Bit
Name
Value
Reset Value*
5
13...0
THRE1HR
0…16383
8192
the received light value is equal
6
13...0
THRE2LR
0…16383
1000
7
13...0
THRE2HR
0…16383
8192
Lower and Upper threshold levels of EXTOUT[1]. Turn ON when
the received light value is equal or greater than THRE2LR and
equal or less than THRE2HR
8
13...0
THRE1LF
0…16383
1000
9
13...0
THRE1HF
0…16383
8192
10
13...0
THRE2LF
0…16383
1000
11
13...0
THRE2HF
0…16383
8192
12
13...0
ONDLY
0…16383
0
On-delay timer value for EXTOUT. Time unit is specified by
ONDBS
15...14
ONDBS
0
0
Set 1 microsecond to the on-delay timer unit for EXTOUT
13
14
15
Detail
Lower and Upper threshold levels of EXTOUT[0]. Turn OFF when
the received light value is less than THRE1LF or greater than
THRE1HF
Lower and Upper threshold levels of EXTOUT[1]. Turn OFF when
the received light value is less than THRE2LF or greater than
THRE2HF
1
Set 10 microsecond to the on-delay timer unit for EXTOUT
2
Set 100 microsecond to the on-delay timer unit for EXTOUT
3
Set 1 millisecond to the on-delay timer unit for EXTOUT
13...0
OFFDLY1
0…16383
0
Off-delay timer value for EXTOUT[0]. Time unit is specified by
OFFDBS1
15...14
OFFDBS1
0
0
Set 1 microsecond to the off-delay timer unit for EXTOUT[0]
1
Set 10 microsecond to the off-delay timer unit for EXTOUT[0]
2
Set 100 microsecond to the off-delay timer unit for EXTOUT[0]
3
Set 1 millisecond to the off-delay timer unit for EXTOUT[0]
13...0
OFFDLY2
0…16383
0
Off-delay timer value for EXTOUT[1]. Time unit is specified by
OFFDBS2
15...14
OFFDBS2
0
0
Set 1 microsecond to the off-delay timer unit for EXTOUT[1]
0
CNM
1
Set 10 microsecond to the off-delay timer unit for EXTOUT[1]
2
Set 100 microsecond to the off-delay timer unit for EXTOUT[1]
3
Set 1 millisecond to the off-delay timer unit for EXTOUT[1]
0
0
1
2...1
4...3
AMG-SO204
CNS
0
ONESHT
Enable the automatic counter clear mode. Clear COUNTVAL
when COUNTVAL is equal or greater than COUNTMCH
0
Select counter clear source as the external input
1
Select counter clear source as the external input on the master
unit
2
Select counter clear source as the expansion input #1 on the
comparator unit
3
Select counter clear source as the expansion input #2 on the
comparator unit
bit3=0
Revision: A
Disable the automatic counter clear mode
0
29. Jul. 2010
Disable one-shot mode on EXTOUT[0]
© All rights reserved
Page 20 of 30
AMG-SO204
Optical Switch IC
Address
Name
Bit
Value
Reset Value*
bit3=1
bit4=0
Enable one-shot mode on EXTOUT[0]
0
bit4=1
6...5
7
O2M
0
CCEN
0
Select EXTOUT[1] control to the counter compared output mode
2
Select EXTOUT[1] control to the inverted output of EXTOUT[0]
0
0
OIH2
0
0
DIM
0
0
ONENA
bit11=0
0
0
6...0
DISPO
0
0
EVF
0
0
DISP1
0
0
6...0
DISP2
0
0
DISP3
0
0
6...0
DISP4
0
0
D80
0
0
Revision: A
Turn off the 4th column in the 8-digit LED display
Turn on the 4th column in the 8-digit LED display
0
1
AMG-SO204
Turn off the 5th column in the 8-digit LED display
Turn on the 5th column in the 8-digit LED display
1
7
Turn off the 6th column in the 8-digit LED display
Turn on the 6th column in the 8-digit LED display
1
18
Turn off the 7th column in the 8-digit LED display
Turn on the 7th column in the 8-digit LED display
1
14...8
Open for future use
Open for future use
1
17
Turn off the segments of the rightmost column in the 8-digit LED
display
Turn on the rightmost column in the 8-digit LED display
1
14...8
Set the continuous one-shot mode for EXTOUT[1]
Set the triggered one-shot mode for EXTOUT[1]
1
7
Set the continuous one-shot mode for EXTOUT[0]
Set the triggered one-shot mode for EXTOUT[0]
bit12=1
16
Set 7/8 duty ratio to ROW[3…0] and 2/8 duty ratio to ROW[7…4]
Set 1/8 duty ratio to ROW[7…0]
bit11=1
bit12=0
Enable the on-delay timer of EXTOUT[1]
Disable the on-delay timer of EXTOUT[1] whatever ONDLY is set
1
12...1
1
Enable the on-delay timer of EXTOUT[0]
Disable the on-delay timer of EXTOUT[0] whatever ONDLY is set
1
10
Disable the external counter clear input
Enable the external counter clear input
1
9
Select EXTOUT[1] control to the threshold level mode
1
0
OIH1
Disable one-shot mode on EXTOUT[1]
Enable one-shot mode on EXTOUT[1]
1
8
Detail
Turn off the dot segment of row 2
Turn on the dot segment of row 2
29. Jul. 2010
© All rights reserved
Page 21 of 30
AMG-SO204
Optical Switch IC
Address
Name
Bit
14...8
DISP5
Value
Reset Value*
0
0
1
15
D81
0
6...0
DISP6
0
0
D82
0
0
DISP7
0
0
D83
0
0
7...0
14...13
0
15...0
Turn off the dot segment of row 5
Turn on the dot segment of row 5
PWM
0...255
0
The PWM duty ratio of LIGHT_CURRENT output
ATM
bit13=0
0
Turn off Analog-Test-Mode
bit13=1
21
Turn off the leftmost column in the 8-digit LED display
Turn on the leftmost column in the 8-digit LED display
1
20
Turn off the dot segment of row 4
Turn on the dot segment of row 4
1
15
Turn off the 2nd column in the 8-digit LED display
Turn on the 2nd column in the 8-digit LED display
1
14...8
Turn off the dot segment of row 3
Turn on the dot segment of row 3
1
7
Turn off the 3rd column in the 8-digit LED display
Turn on the 3rd column in the 8-digit LED display
1
19
Detail
COUNTMCH
Turn on Analog-Test-Mode
bit14=1
0
0...65535
6553
5
Trigger Digital-Test-Mode (reset to disable)
Set value for comparison with the counter
* values after POR or Reset by Reset-Pin
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 22 of 30
AMG-SO204
Optical Switch IC
10.2. Read Registers
Address
0
Name
Bi
t
13…0
REC
Value
Reset
Value*
Detail
0…16383
n/a
Latest value of the received light
0…16383
n/a
Maximum value of the received light
0…16383
n/a
Minimum value of the received light
DATA
1
13…0
REC
MAX
2
13…0
REC
MIN
3
3…0
For
future
use
0...15
n/a
Open for future use
4
For
future
use
0
n/a
Open for future use
For
future
use
0
5
8...6
9
For
future
use
1
n/a
1
0
EIN
Open for future use
Open for future use
n/a
Open for future use
0
Open for future use
1
Open for future use
0
Open for future use
1
Open for future use
0
NPN
n/a
0
COV
0
n/a
4
15...0
JDGSTS
COUNTVAL
bit12=0
NPN input port is inactive
NPN input port is active
n/a
1
13...12
The external input is inactive (NPN = L), active (NPN = H)
The external input is active (NPN = L), inactive (NPN = H)
1
11
Open for future use
1
1
10
Open for future use
EXTCOVER input port is inactive
EXTCOVER input port is active
n/a
RECDATA is the outside of THRE1LR and THRE1HR
bit12=1
RECDATA is the inside of THRE1LR and THRE1HR
bit13=0
RECDATA is the outside of THRE2LR and THRE2HR
bit13=1
RECDATA is the inside of THRE2LR and THRE2HR
0…65535
n/a
Latest value of the counter
* values after POR or Reset by Reset-Pin
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 23 of 30
AMG-SO204
Optical Switch IC
11. Serial Interface
All registers are either read-only or write-only (see register map in chapter10). Data is
received via the pin CPURX and sent via the pin CPUTX using a 625kbit/s UART, shown in
Fig. 13 for write and Fig. 14 for read. Data is sent byte-wise, framed by one start bit and one
stop bit.
Each transfer consists of one address byte followed by two data bytes, the low byte is sent
before the high byte. The 7 bit address is contained in the 7 least significant bits of the
address byte. For writes the MSB is set to 0 for reads to 1.
Symbol
Parameter Name
Min
Typ
Max
Unit
t Bit
Bit length
-5,00%
1/625
5,00%
1/kHz
Table 1: UART parameters
10⋅t bit
t bit
CPU-RX
Start
7
6
5
0
Stop
Start
7
6
5
0
Stop
Start
7
6
5
0
Stop
CPU-TX
Adress 8 Bit to write to a9234
Data 8 Bit (LSB) to write to a9234
Data 8 Bit (MSB) to write to a9234
Figure 13: write to SO204
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 24 of 30
AMG-SO204
Optical Switch IC
10⋅t bit
t bit
CPU-RX
Start
2650−2700 ns
7
6
5
Stop
0
CPU-TX
Start
Adress 8 Bit to read from a9234
7
6
5
0
Data 8 Bit (LSB) to read from a9234
Stop
Start
7
6
5
0
Stop
Data 8 Bit (MSB) to read from a9234
Figure 14: read from SO204
12. LED Display Driver
An 8 digit 7-segment LED display can be connected to the IC via ROW[7:0], and SEG[7:0]. It
is controlled via registers 16, 17, 18, 19 (see register map in chapter 10). The relationship
between segment number and register bit is shown in the figure below. When a segment bit is
set the related SEG[7:0] pin is set to logic high. One line out of ROW [7:0] is set to high
sequentially to display the value of SEG[7:0] for each digit, see fig. 16 for the signal's timing.
Note: Only the dot segments of row 2 through 5 can be set. It must be observed that the flag
must be set in the registers normally associated with row 4 through 7.
ROW0
SEG0
SEG5
SEG0 => BIT 0 / 8
SEG1 => BIT 1 / 9
SEG1
SEG6
SEG4
SEG2 => BIT 2 / 10
Only the dot segments of ROW2 – 5 can be set:
SEG7 => ROW2 / 3 => BIT 7 / 15 (Adresse 18)
=> ROW4 / 5 => BIT 7 / 15 (Adresse 19)
SEG3 => BIT 3 / 11
SEG4 => BIT 4 / 12
SEG5 => BIT 5 / 13
SEG6 => BIT 6 / 14
SEG2
SEG3
SEG7
Figure 15: schematic drawing of numeric 7-segment LED
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 25 of 30
AMG-SO204
Optical Switch IC
T=52,5 ms (19 Hz)
5,72 ms
1,7 ms
ROW[0]
ROW[1]
ROW[2]
ROW[3]
ROW[4]
ROW[5]
ROW[6]
ROW[7]
SEG[7:0]
6,56 ms
11,48 ms
6,56 ms
Figure 16: timings of 7-Segment LED control
13. Supply Block
The supply block consists of 2 bandgap cells, 4 low-drop voltage regulators and 1 bias current
generator. It provides the voltages as shown in the table below.
Name
Value
Bandgap
1,24 V
CB3V3
3,3 V
VDDA
2,5 V
VDDD
2,5 V
VREF
1,8 V
Table 2: provided voltages
The bandgap cells are responsible for delivering temperature- and process-independent
reference voltages used for biasing other blocks of the AMG-SO204. These voltages are only
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 26 of 30
AMG-SO204
Optical Switch IC
internal. The use of two bandgaps has been dictated by precision and voltage considerations:
the high-voltage bandgap is less precise but can operate under a relatively wide range of
supply voltages (4.5V...6.5V), whereas the low-voltage bandgap is more precise but requires
an accurate supply voltage of 3.3V. The high voltage bandgap provides the reference voltage
for the 3.3V voltage regulator and the low voltage bandgap the reference for the 2.5V and
1.8V voltage regulators.
The IC includes four low-drop voltage regulators. The 3.3V regulator lowers the supply voltage
to about 3.3V. This regulated voltage is used to supply two on-chip 2.5V regulators, the lowvoltage voltage bandgap, the on-chip 1.8V regulator, and any off-chip 3.3V electronics. The
two 2.5V regulators supply, independently, the analog and the digital part of the IC and the
bias current generator. The use of two virtually identical 2.5V regulators was dictated by the
desire to achieve high separation between the (quiet) analog and the (noisy) digital part of the
IC. The 1.8V regulator is used to provide the reference voltage for the ADC. The voltage
regulators whose output voltage are extern available at the pins CB3V3, VDDA, VDDD and
VREF and the supply pin VDD needs to be decoupled.
The cell bias currents provides a current of about 15uA to each ADC.
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 27 of 30
AMG-SO204
Optical Switch IC
14. IC-Package
TQFP 48
Package: TQFP 7x7 48L
S
Y
M
B
O
L
N
O
T
E
MIN
NOM
MAX
A
1.00
1.10
1.20
A1
0.05
0.10
0.15
A2
0.95
1.00
1.05
MS-026
ABC
SQUARE
D
9.00 BSC
D1
7.00 BSC
E
9.00 BSC
E1
7.00 BSC
N
48
e
0.50 BSC
b
0.17
0.22
0.27
b1
0.17
0.20
0.23
Tolerance of form and position
ccc
0.08
ddd
0.08
Figure 17: Package
15. IC-Marking
αSO204
4 digits date code = 2 digits year + 2 digits work week
8 digits lot number = 2 digits fab process + 4 digits lot number + 1 digit sub lot
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 28 of 30
AMG-SO204
Optical Switch IC
16. Ordering Information
AMG-SO204-ILQ48T
(LQFP48, Tube)
17. Notes and Cautions
17.1. ESD Protection
The Requirements for Handling Electrostatic Discharge Sensitive Devices are described in the
JEDEC standard JESD625-A. Please note the following recommendations:
 When handling the device, operators must be grounded by wearing a for the purpose
designed grounded wrist strap with at least 1MΩ resistance and direct skin contact.
 Operators must at all times wear ESD protective shoes or the area should be
surrounded by for ESD protection intended floor mats.
 Opening of the protective ESD package that the device is delivered in must only occur at
a properly equipped ESD workbench. The tape with which the package is held together
must be cut with a sharp cutting tool, never pulled or ripped off.
 Any unnecessary contact with the device or any unprotected conductive points should be
avoided.
 Work only with qualified and grounded tools, measuring equipment, casing and
workbenches.
 Outside properly protected ESD-areas the device or any electronic assembly that it may
be part of should always be transported in EGB/ESD shielded packaging.
17.2. Storage conditions
The AMG-SO204 corresponds to moisture sensitivity classification ML2 , according to JEDEC
standard J-STD-020, and should be handled and stored according to J-STD-033.
18. Disclaimer
Information given in this data sheet is believed to be accurate and reliable. However, no
responsibility is assumed for the consequences of its use nor for any infringement of patents
or other rights of third parties that may result from its use.
The values stated in Absolute Maximum Ratings may under no circumstances be exceeded.
No warranty is given for use in life support systems or medical equipment without the specific
written consent of alpha microelectronics gmbh. For questions regarding the application
please contact the publisher.
The declared data are only a description of the product. They are not guaranteed properties
as defined by law. Examples are given without obligations and cannot give rise to any liability.
Reprinting of this data sheet – or any part of it – is not allowed without the license of the
publisher. Data sheets are subject to change without any notice.
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 29 of 30
AMG-SO204
Optical Switch IC
19. Contact Information
This data sheet is published by alpha microelectronics gmbh. To order samples or inquire
information please contact:
alpha microelectronics gmbh
Im Technologiepark 1
15236 Frankfurt (Oder)
Germany
[email protected]
www.alpha-microelectronics.de
+49-335-557-1750 (telephone)
+49-335-557-1759 (fax)
© All rights reserved.
AMG-SO204
Revision: A
29. Jul. 2010
© All rights reserved
Page 30 of 30