English
Language : 

CN-0300 Datasheet, PDF (3/7 Pages) Analog Devices – Complete Closed-Loop Precision Analog Microcontroller Thermocouple
Circuit Note
CN-0300
Figure 3. EVAL-CN0300-EB1Z Board Connected to the Analog Devices J-Link
OB Emulator
The Analog Devices J-Link OB emulator(USB-SWD/UART-
EMUZ) supports the following:
• When plugged into a PC USB port, it can also be used
to connect to a COM port (virtual serial port) on the
PC. This is requiredfor runningthe calibration routines.
• Provides SW (Serial Wire) debugging and
programming for the ADuCM360.
• This USB port can be used to program the part using
the UART-based downloader. Code Description
• Figure 4 shows a top view of the emulatorboard. J2
connector plugs into the EVAL-CN0300-EB1Z board.
The J2 connector pinout is shown in Figure 5
Figure 5. J2 Connector
For downloading and debugging, LK1, LK2, LK4, and LK6 must
be inserted. LK3 and LK5 are required to communicate via
UART. Requiredsoftware for the J-Link OB is included in the
software installation.
Note that the J-Link OB emulator replaces the J-Link Lite and
related interface boardspreviouslyshippedwiththe ADuCM360
development system.
For more details, see UG-457, ADuCM360 Development
Systems Getting StartedTutorial.
The source code used to test the circuit can be downloadedasa
zip file from the ADuCM360 product page. The source code
uses the function libraries provided with the example code.
Figure 6 shows the list of source files used in the project when
viewed with the Keil µVision4 tools.
Figure 4. Analog Devices J-Link OB Emulator Top View
Figure 6. Source Files Viewed in µVision4
Calibration Section of Code
The compiler #define values,calibrateADC1 and calibrateDAC,
can be adjusted to enable ordisable calibration routinesfor the
ADC and the DAC.
To calibrate eitherthe ADC or the DAC, the AnalogDevices J-Link
OB emulator(USB-SWD/UART-EMUZ) must be connected to J1
and to the USB porton a PC. A COM port viewer program, such
as HyperTerminal, can be used to view the calibration menus
and step through the calibrationroutines.
When calibrating the ADC, the source code prompts the userto
connect zero-scale and full-scale voltages to AIN2 and AIN3. Note
that AIN2 is the positive input. On completion of the calibration
routine, the newcalibration values forthe ADC1INTGN and
ADC1OF registers are stored to the internal flash.
Rev. A | Page 3 of 7