The Data Interface of DSO 068

Similar documents
DSO112A Digital Oscilloscope User Manual Applicable Models: 11201A, 11202A, 11203A Applicable Firmware Version: or later (for U1)

FG , 08501K, 08502K, 08503, 08503K, 08504K

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

DSO138 oscilloscope program upgrade method

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Interface Protocol v1.2

USB Card Reader Configuration Utility. User Manual. Draft!

USB 2.0/3.0 Droop/Drop Test Fixture

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

Carlo Canziani Business Development EMEA Agilent Technologies

Serial Communications

Embest DSO2300 USB Oscilloscope

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Testing Data Radio Modem with Serial Port Tool V1.20

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

NEW PRODUCT ANNOUCEMENT

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Fingerprint Based Biometric Attendance System

User s Guide DSO-2150 USB PC Based Digital Oscilloscope Operation Manual

Bluetooth HID Profile

KTA-223 Arduino Compatible Relay Controller

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

USER GUIDE EDBG. Description

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

CHAPTER 11: Flip Flops

Using Xbee in Serial Communication

DIGITAL PC SCOPE. Total solder points: 625 Difficulty level: beginner advanced K8031 ILLUSTRATED ASSEMBLY MANUAL

F2103 GPRS DTU USER MANUAL

High-Speed Electrical Testing - Host

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1 UG_1x66B_009

USB - FPGA MODULE (PRELIMINARY)

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

USR-TCP232-T Hard Version: V2.0 Doc Version: V

Lecture N -1- PHYS Microcontrollers

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

LIN (Local Interconnected Network)

EvB 5.1 v5 User s Guide

8B/10B Coding 64B/66B Coding


RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink

MANUAL FOR RX700 LR and NR

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 2.6 Nov 2012 StrongLink

RFID MODULE Mifare Reader / Writer SL031 User Manual Version 2.7 Nov 2012 StrongLink

User Manual. AS-Interface Programmer

DAC Digital To Analog Converter

MODEL INDEX ADS1152CA ADS1102CA ADS1062CA ADS1022C

Data sheet Wireless UART firmware version 4.02

Command Processor for MPSSE and MCU Host Bus Emulation Modes

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

Lab 1: The Digital Oscilloscope

ACR122 NFC Contactless Smart Card Reader

POCKET SCOPE 2. The idea 2. Design criteria 3

Consult protocol, Nissan Technical egroup, Issue 6

RS-485 Protocol Manual

Application Programming Interface

SMS based remote control system

DS1621 Digital Thermometer and Thermostat

Quectel Cellular Engine

Dash 8Xe / Dash 8X Data Acquisition Recorder

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

SYMETRIX SOLUTIONS: TECH TIP August 2015

Technical Information Manual

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Bend Sensor USB User Guide

User s Guide DDS-3X25 USB ARBITRARY FUNCTION GENERATOR

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Software User Guide UG-461

Supporting ZDOs with the XBee API

NHD-0420D3Z-FL-GBW-V3

AN601 I2C 2.8 Communication Protocol. SM130 SM130 - Mini APPLICATION NOTE

Lab Experiment 1: The LPC 2148 Education Board

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual Rev.1

U1602A Handheld Oscilloscopes, 20 MHz

Tire pressure monitoring

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

Modbus and ION Technology

Agilent Technologies 3000 Series Oscilloscopes

AC Measurements Using the Oscilloscope and Multimeter by Mr. David Fritz

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

SERIES-PARALLEL DC CIRCUITS

CONCEPT1 RS232 COMMUNICATION

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

MiniPlex-41USB NMEA-0183 multiplexer Manual

AN3252 Application note

Lab #4 Thevenin s Theorem

Lab 2 Sensor Modeling Introduction to the Wiimote and the Wiimote LABVIEW Interface

RFID MODULE Mifare Reader / Writer SL032 User Manual Version 1.5 Nov 2012 StrongLink

Electronic WorkBench tutorial

Accurate Measurement of the Mains Electricity Frequency

Dolphin In-Circuit programming Updating Firmware in the field

3-Channel 0-20mA analyzer with CAN bus and logic output. A2C-mA-M12-X. General Description. Features. Specifications

Serial Communications

Transcription:

The Data Interface of DSO 068 Applicable firmware version: 113-06801-050 or later The Data Interface of DSO 068 is a portion of firmware that allows a host to access captured data directly via the UART port of MCU (this port becomes a virtual COM port on USB if the JYE119 Uart-USB bridge board is installed). This interface features two modes, USB Scope Mode and Data Logger Mode. In USB Scope Mode user can change various capture parameters (sampling rate, trigger mode, capture size, etc.) and obtain captured data in block or in individual samples. In Data Logger Mode users can receive up to 8-channel simultaneously sampled higher resolution (10-bit) data at a fixed sampling rate (200 Samples/second). Fig. 1 shows the typical connection of the Data Interface. Fig. 1 Before going through details of the modes we first introduce the communication formats briefly. 1. Communication Formats The data and commands transferred over the Data Interface are in frames. The general frame structure is shown in Table 1. Offset Field Name(size) Remarks -1 Sync character Value fixed to 0xFE 0 Frame ID Frame type 1 Frame Size (2 bytes) Little endian 16-bit number counting from the frame ID to the end of frame. 3 Data Frame payload begin 4 Data n Data End of frame Tabel. 1 The hex number 0xFE is the synchronous character that marks the beginning of a frame. To avoid ambiguity if a frame contains a byte with value 0xFE in its body an extra 0x00 byte must be inserted right after 0xFE at transmitting. Accordingly at the reception end if a 0xFE is detected followed by a 0x00 the 0x00 must be dropped. Obviously the frame ID can t take the value of zero. The data rate of the interface is fixed to 115200 bps. Data format is 8 data bits, 1 stop bits, JYE Tech - 1 - www.jyetech.com

and no parity check. 2. Enter/Exit Data Interface Modes The Data Interface can work in USB Scope Mode or Data Logger Mode. In order to enter these modes a connection command sent from host is required. There are two methods to exit Data Interface modes and return to standalone operation, 1 ) Send a disconnection command from host, or 2 ) hit the [HOLD] button on scope panel. Fig. 1 illustrates the mode relationships. 1) Command for entering USB Scope Mode 0 Frame ID 0xE1 1 Frame Size (2 bytes) 0x0004 3 Connection Type 0xC0 (for USB Scope) Tabel. 2 Fig. 2 2) Command for entering Data Logger Mode 0 Frame ID 0xE1 1 Frame Size (2 bytes) 0x0005 3 Connection Type 0xC2 (for Data Logger ) 4 Reference voltage and data adjustment selection Tabel. 3 See Section 4: Data Logger Mode. JYE Tech - 2 - www.jyetech.com

3) Command for exit and returning to standalone mode 0 Frame ID 0xE9 1 Frame Size (2 bytes) 0x0004 3 Reserved Tabel. 4 3. USB Scope Mode USB Scope mode is primarily for making DSO 068 a PC oscilloscope via USB connection. But it can do more than this. The USB Scope mod is actually a general interface that makes the captured data accessible to other devices. It can be used, for example, in situations where waveform monitoring is needed. Fig. 3 The USB Scope mode can work in Auto state or Manual state. In Auto state the 068 sends the data (in block or in single sample) automatically as soon as capture is done. In Manual mode the 068 only sends data upon reception of the GetData command. Note that when the timebase is set between 20ms/div 0.5us/div (inclusive) the whole buffer of data is sent (as DataBlock frame) after each capture. When the timebase is set between 10min/div and 50ms/div (inclusive) single sample is sent (as DataSample frame) after each sampling. Summary of Command/Data Frames in USB Scope Mode Frames sent by host 1) GetConfig Request configuration information of DSO 068 2) GetParam Request parameters of DSO 068 3) SetParam Set DSO 068 parameters 4) GetData Request data from DSO 068 5) SetState Change the state of USB Scope mode. Frames sent by DSO 068 6) CurrConfig Current configuration of DSO 068 sent in response to GetConfig command. 7) CurrParam Current parameters of DSO 068 sent in response to GetParam command. 8) DataBlock Captured data sent in block. Block size is specified by the record length parameter. 9) DataSample Captured data sent as single sample. 10) USBscopeReady USB Scope mode ready. Usually sent at entering USB Scope mode. JYE Tech - 3 - www.jyetech.com

Details of Command/Data Frames in USB Scope Mode 1) GetConfig Function: Request configuration information of DSO 068 Direction: From host to DSO 068 1 Frame Size (2 bytes) 0x0004 3 Frame sub-id 0x20 Tabel. 5 2) GetParam Function: Request current parameter setting of DSO 068 Direction: From host to DSO 068 1 Frame Size (2 bytes) 0x0004 3 Frame sub-id 0x21 3) SetParam Function: Set parameters of DSO 068 Direction: From host to DSO 068 Tabel. 6 1 Frame Size (2 bytes) 0x0024 3 Frame sub-id 0x22 4-11 Reserved 12 Timebase Refer to Table 15 13-15 Reserved 16 Trigger mode Refer to Table 16 17 Trigger slope Refer to Table 17 18 Trigger level (2 bytes) From 0 to 255 20 Trigger position From 1-100 21-23 Reserved 24 Record length (4 bytes) 28-35 Reserved Tabel. 7 JYE Tech - 4 - www.jyetech.com

4) GetData Function: Request data from DSO 068. This command is usually used when DSO 068 is in Manual state. Direction: From host to DSO 068 1 Frame Size (2 bytes) 0x0004 3 Frame sub-id 0x23 Tabel. 8 5) SetState Function: Change the state of DSO 068 Direction: From host to DSO 068 1 Frame Size (2 bytes) 0x0005 3 Frame sub-id 0x24 4 State setting Bit[1]: 0 Auto state 1 Manual state All other bits reserved. They should be set to 0 s for future compatibility. Tabel. 9 6) CurrConfig Function: Send DSO 068 current configuration information to host in response to the command of GetConfig form host. Direction: From DSO 068 to host 1 Frame Size (2 bytes) 0x0038 3 Frame sub-id 0x30 4 Channel configuration Bit[0]: 0 Channel 1 is not present; 1 Channel 1 is present. Bit[1]: 0 Channel 2 is not present; 1 Channel 2 is present. All the rest bits are reserved. JYE Tech - 5 - www.jyetech.com

5 Sensitivity and couple configuration 6-7 Reserved 8 Maximum vertical sensitivity 9 Minimum vertical sensitivity 10 Maximum couple setting 11 Minimum couple setting 12 Maximum vertical position (2 bytes) 14 Minimum vertical position (2 bytes) 16-23 Reserved 24 Maximum timebase setting 25 Minimum timebase setting 26-29 Reserved 30 Maximum trigger mode setting 31 Minimum trigger mode setting 32 Maximun trigger slope setting 33 Minimum trigger slope setting 34 Maximum trigger level (2 bytes) 36 Minimum trigger level (2 bytes) 38 Maximum trigger position 39 Minimum trigger position 40-45 Reserved 46 Maximum record length (4 bytes) 50 Minimum record length (4 bytes) 54 Reserved 55 Bit[0]: 0 Sensitivity is not changeable by host; 1 Sensitivity is changeable by host. Bit[1]: 0 Couple is not changeable by host; 1 Couple is changeable by host. All the rest bits are reserved. Refer to Table Refer to Table Refer to Table Tabel. 10 JYE Tech - 6 - www.jyetech.com

7) CurrParam Function: Send DSO 068 current parameters to host. This command is sent in response to the command of GetParam from host. Direction: From DSO 068 to host 1 Frame Size (2 bytes) 0x0020 3 Frame sub-id 0x31 4 Vertical sensitivity (1 byte) Refer to Table 19 5 Couple Refer to Table 18 6 Vertical position (2 byte) 8-11 Reserved 12 Timebase Refer to Table 15 13-15 Reserved 16 Trigger mode Refer to Table 16 17 Trigger slope Refer to Table 17 18 Trigger level (2 bytes) 20 Trigger position 21 23 Reserved 24 Record length 28-31 Reserved Tabel. 11 8) DataBlock Function: Data block Direction: From DSO 068 to host 1 Frame Size (2 bytes) N + 8, where N is the current record length 3 Frame sub-id 0x32 4 Data sample 1 5 Data sample 2 N + 3 Data sample N N + 4 Reserved N + 5 Reserved N + 6 Reserved N + 7 Reserved Tabel. 12 JYE Tech - 7 - www.jyetech.com

9) DataSample Function: Data sample Direction: From DSO 068 to host 0 Frame ID 0x000C 1 Frame Size (2 bytes) 3 Frame sub-id 0x33 4 Data sample 5-11 Reserved Tabel. 13 N + 8, where N is the current record length 10) USBscopeReady Function: This command is sent when USB Scope mode has been entered. Direction: From DSO 068 to host 1 Frame Size (2 bytes) 0x0004 3 Frame sub-id 0x34 Coded Values of Parameter Settings Tabel. 14 Oscilloscope parameter settings are represented by values. The following tables list the pre-defined values for various parameter settings that are used in the Data Interface of DSO 068. 1) Values of Timebase Setting Setting 10min/div 5min/div 2min/div 1min/div 50s/div 20s/div 10s/div 5s/div 2s/div 1s/div 0.5s/div 0.2s/div Values 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E JYE Tech - 8 - www.jyetech.com

0.1s/div 50ms/div 20ms/div 10ms/div 5ms/div 2ms/div 1ms/div 0.5ms/div 0.2ms/div 0.1ms/div 50us/div 20us/div 10us/div 5us/div 2us/div 1us/div 0.5us/div 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F Tabel. 15 2) Values of Trigger Mode Setting Setting Auto Normal Single Values 0x00 0x01 0x02 Tabel. 16 3) Values of Trigger Slope Setting Setting Falling Rising Values 0x00 0x01 Tabel. 17 4) Values of Couple Setting Setting DC AC GND Values 0x00 0x01 0x02 Tabel. 18 JYE Tech - 9 - www.jyetech.com

5) Values of Vertical Sensitivity Setting Setting 5V/div 2V/div 1V/div 0.5V/div 0.2V/div 0.1V/div 50mV/div 20mV/div 10mV/div Values 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D Tabel. 19 4. Data Logger Mode The main controller ATmega64 (U4) contains a 10-bit A/D converter with 8 input channels (PORTF of U4). This resource is mostly not used in the oscilloscope. The Data Logger Mode makes use of this spare resource and outputs 8 channel of data at the rate of 200samples/second/channel with 10-bit resolution on each channel. Fig. 4 Data Logger Input Of the 8 input channels the channel 4 (PF4) has been connected to the analogue channel output (refer to schematic). So the channel 4 output reflects the oscilloscope input. The rest seven inputs have been brought to J7 at the board edge (Fig. 3). User can use these inputs for different measurements. Fig. 5 The ADC conversion range is reference voltage dependent. When connecting external signals to the pins a protection resistor should be added in series with the signal to protect chip from being damaged. The resistor value depends on maximum input voltage. Usually 1K ohm is enough for most applications. Reference Voltage and Data Adjustment Selection The ADC reference voltage and data adjustment are determined by 4 th byte of connection command that brings up the Data Logger Mode (see Section 2: Enter/Exit Data Interface Modes ). Bit 7 and Bit 6 of the byte select reference voltage. Bit 5 selects data adjustment. The following two tables show the relationship. JYE Tech - 10 - www.jyetech.com

Bit [7:6] Reference Voltage Selection 00 AREF. Internal Vref turned off 01 AVCC with external capacitor at AREF pin 10 Reserved 11 Internal 2.56V Voltage Reference with external capacitor at AREF pin Bit [5] Output Data Format Tabel. 20 Data Adjustment 0 Right adjusted 1 Left adjusted Tabel. 21 Table 22 shows the output format of the data logger. 0 Frame ID 0xC2 1 Frame Size (2 bytes) 0x001A 3 Frame sub-id 0x23 4 Analogue channel setting Bit [7:5] reflect couple setting (Table 18). Bit [4:0] reflect sensitivity setting (Table 19) Bit [7:6] reflect reference voltage selection (Table 20). 5 ADC settings 6 Channel 0 data (2 bytes) 8 Channel 1 data (2 bytes) 10 Channel 2 data (2 bytes) 12 Channel 3 data (2 bytes) 14 Channel 4 data (2 bytes) 16 Channel 5 data (2 bytes) 18 Channel 6 data (2 bytes) 20 Channel 7 data (2 bytes) 22 25 Reserved Bit [5] reflects data adjustment selection (Table 21). Bit [2:0] reflect the Bit [2:0] of ADCSRA in ATmega64 (see ATmega64 datasheet). Tabel. 22 JYE Tech - 11 - www.jyetech.com

Revision History Version Date Summary v01 2014.02.11 First created JYE Tech - 12 - www.jyetech.com