Melexis MLX71122 Programming Manual

P
R
L
I
I
N
A
R
Y
Programming Software Manual
MLX71122 RF Receiver
Programming Software Manual
Software Version v3.2
SW71122
MLX71122 RF Receiver
Software Revision History
Software Version Date Changes Doc. Rev.
v2.0 28.08.2006 Initial Version for MLX71122A 001
v2.1 03.01.2007 Adaptation of software to 2nd version of MLX71122A 002
v3.1 10.04.2008 Adaptation of software to 2nd version of MLX71122B 003
v3.2 26.08.2011 Description for USB-SPI converter added 004
39011 71122 01 Page 1 of 21 SW71122-Manual Rev. 004 Aug/11
E
P
R
L
I
I
N
A
R
Y
SW71122
MLX71122 RF Receiver
Programming Software Manual
Content
1 General Description ...................................................................................................4
2 Hardware and Software Requirements ....................................................................5
3 Installation and Files..................................................................................................5
4 Using the Software.....................................................................................................6
4.1 Software Start Up .............................................................................................................. 6
4.2 Menus................................................................................................................................ 7
4.2.1 File.............................................................................................................................................7
4.2.2 LPT ............................................................................................................................................7
4.2.3 Settings......................................................................................................................................7
4.2.4 About .........................................................................................................................................8
4.3 Send to IC - Button ............................................................................................................ 9
4.4 Tuning Info - Frame ........................................................................................................... 9
4.5 Program Status Line.......................................................................................................... 9
4.6 IC Status - Frame ............................................................................................................ 10
4.7 Frequency Pre-Selection - Frame.................................................................................... 10
5 Description of the Control Tabs..............................................................................11
5.1 Mode Control – Tab......................................................................................................... 11
5.1.1 Operation Mode.......................................................................................................................11
5.1.2 Multi Functional Output Mode..................................................................................................12
5.1.3 Function of LDRSSIL bit ..........................................................................................................12
5.1.4 Bit Slicer Mode ........................................................................................................................12
5.1.5 DTAO Polarity..........................................................................................................................12
5.1.6 Demodulation Type .................................................................................................................12
E
5.2 Gain Control – Tab .......................................................................................................... 13
5.2.1 LNA..........................................................................................................................................13
5.2.2 IF Filter ....................................................................................................................................13
5.2.3 1st Mixer Gain ..........................................................................................................................13
5.2.4 2nd Mixer Gain..........................................................................................................................14
5.2.5 Demodulator Gain ...................................................................................................................14
5.2.6 RSSI Gain................................................................................................................................14
5.2.7 Enable AGC.............................................................................................................................14
5.2.8 Delay Settings .........................................................................................................................14
5.2.9 Delay Mode .............................................................................................................................14
5.3 PLL Control – Tab ........................................................................................................... 15
5.3.1 LDTIME ...................................................................................................................................15
5.3.2 LDERR ....................................................................................................................................15
5.3.3 CPCUR....................................................................................................................................15
5.3.4 ROCUR ...................................................................................................................................16
5.3.5 PRESCUR ...............................................................................................................................16
5.3.6 PFDPOL ..................................................................................................................................16
39011 71122 01 Page 2 of 21 SW71122-Manual Rev. 004 Aug/11
P
R
L
I
I
N
A
R
Y
SW71122
MLX71122 RF Receiver
Programming Software Manual
5.3.7 VCO Range .............................................................................................................................16
5.3.8 VCO Buffer Current .................................................................................................................16
5.3.9 VCO Core Current ...................................................................................................................16
5.4 Frequency and IFF Control – Tab.................................................................................... 17
5.4.1 Auto Adjustment ......................................................................................................................17
5.4.2 Halt ..........................................................................................................................................17
5.4.3 RIFF Divider ............................................................................................................................17
5.4.4 IFF Preset Value......................................................................................................................18
5.4.5 IFF centre freq. ........................................................................................................................18
5.4.6 f
5.4.7 R Divider..................................................................................................................................18
5.4.8 fRF............................................................................................................................................18
5.4.9 A ..............................................................................................................................................18
5.4.10 N ..............................................................................................................................................18
5.4.11 N
5.4.12 Calculate Button ......................................................................................................................18
5.4.13 LO1..........................................................................................................................................19
5.4.14 LO2..........................................................................................................................................19
5.4.15 LO2DIV....................................................................................................................................19
5.5 Register Set - Tab ........................................................................................................... 19
..........................................................................................................................................18
XTAL
.........................................................................................................................................18
TOT
E
39011 71122 01 Page 3 of 21 SW71122-Manual Rev. 004 Aug/11
P
R
L
I
I
N
A
R
Y
SW71122
FSK
DEMOD
Control
BIAS
V
E
E
A
N
A
V
C
C
D
I
G
V
E
E
D
I
G
OA2
DFO
OA1
PKDET+
PKDET
SLC
PDP
PDN
DTAO
D
F
2
D
F
1
27
26
25
32
22
A
/
S
C
L
K
B
/
S
D
T
A
C
/
S
D
E
N
18
19710
200k
200k
SW2
SW1
2
0
0
k
1
M
1
M
ASK
FSK
L
N
A
O
E
L
N
A
V
C
C
A
N
A
V
E
E
I
F
M
I
X
N
M
I
X
P
R
S
S
I
IFA
IF2
MLX71122 RF Receiver
Programming Software Manual
1 General Description
The PC programming software can be used to control the operational modes of the MLX71122 RF receiver at its Serial Programming Interface (SPI) through the three pins A/SCLK, B/SDTA and C/SDEN. The pin SPISEL must be at logic HIGH in order to set the MLX71122 to SPI mode. Otherwise the receiver operates in stand-alone (or ABC) mode and cannot be programmed via the three pins A/SCLK, B/SDTA and C/SDEN.
In SPI mode, it is possible to write in and read out the seven control registers R0 to R6. Register R7 is a read-only register for status information. In ABC mode, 8 predefined frequency channels between 369.5 MHz and 395.9 MHz can be selected by parallel programming at the three pins A/SCLK, B/SDTA and C/SDEN.
A block diagram of the receiver is shown below.
2
1
VE
5
6
43
8
9
28
MODSEL
29
LO2
RO
R
counter
24
IFF
_
SLCSEL
Logic
30
ROI
17
SPISEL
2016 21
ENRX
RBIAS
LNAI
31
MIX1 MIX2
N / A
counter
LF
15
LO1
LF
IF1
PFD
CP
MFO
23
LNA
LO2DIV
VCO
TNK1 TNK2
VCCVCO
VEEVCO
1411
12 13
The following tables show the functionality of the three digital control pins that are used for general operating mode selection.
E
Pin Value Function
SPISEL
0 ABC mode - stand-alone mode, 8 pre-defined frequencies
1 SPI mode - programmable mode, full control via SPI
Pin Value SPISEL Function
0
MODSEL
1
0
ENRX
1
0 FSK receive mode
1 no effect
0 ASK receive mode
1 no effect
0 Receiver in shutdown mode
1 Receiver in last programmed operational mode
0 Receiver in receive mode
1 Receiver in receive mode
39011 71122 01 Page 4 of 21 SW71122-Manual Rev. 004 Aug/11
P
R
L
I
I
N
A
R
Y
SW71122
MLX71122 RF Receiver
Programming Software Manual
2 Hardware and Software Requirements
The MLX71122 program has been developed for Windows XP and has been tested for later Windows ver­sions. The program uses TVicPort I/O driver to interface to the parallel port.
The EVB71122 can be used either with a USB-SPI converter connected to the PC’s USB port or it can be directly connected to the PC’s printer port (LPT). If the LPT port is used then port addresses 0x278, 0x378 and 0x3BC (hexadecimal) are supported. A programming cable with a male 25-pole SUB-D connector can be purchased together with the evaluation board EVB71122.
The following LPT ports can be connected to the corresponding IC pins:
LPT port Direction IC pin Cable pin
BUSY (pin11)
GND (pin18-25)
D1 (pin3)
D2 (pin4)
D0 (pin2)
If the PC’s USB port is used, a USB-SPI converter is required. It is available on request or can be purchased together with the evaluation board EVB71122.
Note that pin 7 of the MLX71122 (SPISEL) is connected to logic HIGH on the EVB71122. This is to set the receiver to SPI mode.
MFO (pin 23) Connected (1)
GND
A/SCLK (pin 19) Connected (3)
B/SDTA (pin 18) Connected (4)
C/SDEN (pin17) Connected (5)
Connected (2)
3 Installation and Files
The installation program will ask you for a folder where you want to install the files. By default, the program installs the software in the directory: C:\Program Files\Melexis\MLX71122_V32 The following files will be installed:
File Function
MLX71122_V32.exe Main program executable
unins000.exe Program to uninstall the software
unins000.dat Uninstall data file
MLX71122.ini Init file for windows start of main program
TVicPort.dll Dynamic library to support parallel port programming
ReadMe.txt ReadMe file
mpusbapi.dll Dynamic library to support USB interface
\MLX_SPIUSB_Driver\mchpusb.cat USB driver
\MLX_SPIUSB_Driver\MLX-SPIUSB.inf USB driver
\MLX_SPIUSB_Driver\mchpusb.sys USB driver
\MLX_SPIUSB_Driver\mchpusb64.sys USB driver
Copyrights: TVicPort I/O driver, © En Tech Taiwan Windows XP, © Microsoft Corporation.
39011 71122 01 Page 5 of 21 SW71122-Manual Rev. 004 Aug/11
E
P
R
L
I
I
N
A
R
Y
SW71122
MLX71122 RF Receiver
Programming Software Manual
We recommend creating the icon of the main program on your PC’s desktop to easily access the program. The working directory folder of the link should be set to the installation folder.
4 Using the Software
4.1 Software Start Up
Please make sure the evaluation board EVB71122 and the USB-SPI converter (or the LPT cable) are con­nected to the PC. This ensures that the software automatically detects whether the USB or the LPT port are used.
The software can be started by double clicking on the main program icon in the installation directory or by double clicking on the link. During start-up the software reads out the corresponding init-file and restores all settings that were active when the software was regularly closed the last time.
E
A typical first menu view of the program is shown in the figure above. The program starts up with the tab Mode Control activated.
Data is only sent to the IC if the Send to IC button is pressed or Send always is activated.
39011 71122 01 Page 6 of 21 SW71122-Manual Rev. 004 Aug/11
P
R
L
I
I
N
A
R
Y
SW71122
MLX71122 RF Receiver
Programming Software Manual
4.2 Menus
4.2.1 File
The menu File contains three menu items:
Load Config load a previously defined config-file and activate the new state
Save Config save the actual state in a new config-file
The Exit field in the window frame has the same function as the Exit menu item. After a configuration is loaded its file name is displayed in the window title as reminder.
4.2.2 LPT
This menu enables the user to choose a LPT port address to use for the programming. Three port addresses are supported (in hexadecimal):
The port address is displayed in the Program Status Line at the lower-right corner of the program window.
Note that if the USB-SPI converter is used the LPT menu cannot be selected (LPT appears gray shaded). The Program Status Line shows that the USB-SPI converter has been found.
4.2.3 Settings
The menu Settings contains three menu items:
The Defaults menu item of this menu restores the state that is hard-coded on the MLX71122 and that is ac­tive after powering up the IC. The default receive frequency is 384MHz. After recovering the default settings the text Default Settings is displayed in the window title as reminder.
The Set Vpwm menu item activates the internal reference voltage of the USB-SPI converter. It is freely pro­grammable in a range of 0 to 5V. The voltage should be entered in millivolts.
If ext. Vref menu item is selected, the Set Vpwm menu item cannot be selected (appears gray shaded).
If the LPT port is used the ext. Vref and Set Vpwm menu items cannot be selected (appear gray shaded).
If the ext. Vref menu item is selected, but no external reference voltage is connected to the USB-SPI con­verter the SPI logical high level will be set internally to about 1.83V.
Exit close the program and save the state into the init-file
0x278
0x378 (default)
0x3BC
Defaults restores the state that is hard-coded on the MLX71122
ext. Vref SPI logical high level set by external reference voltage (e.g. provided by supply
voltage of EVB71122)
Set Vpwm SPI logical high level set by internal reference voltage
E
39011 71122 01 Page 7 of 21 SW71122-Manual Rev. 004 Aug/11
Loading...
+ 14 hidden pages