21
Oscilloscope Watch Teardown

Oscilloscope Watch Teardown

  • Upload
    fisk

  • View
    47

  • Download
    0

Embed Size (px)

DESCRIPTION

Oscilloscope Watch Teardown. Agenda. History and General overview Hardware design: Block diagram and general overview Choice of the microcontroller Design of the analog frontend Design of the waveform generator Design of the power stage Firmware design: - PowerPoint PPT Presentation

Citation preview

Page 1: Oscilloscope Watch Teardown

Oscilloscope WatchTeardown

Page 2: Oscilloscope Watch Teardown

Agenda

• History and General overview• Hardware design:

– Block diagram and general overview– Choice of the microcontroller– Design of the analog frontend– Design of the waveform generator– Design of the power stage

• Firmware design:– Maximize use of the peripherals– High speed sampling using the DMA– Low power techniques to maximize the battery life– Using the XMEGA event system to offload the CPU

• Questions and answers

Page 3: Oscilloscope Watch Teardown

Oscilloscope Watch history

Xprotolab: World’s Smallest Oscilloscope Concept image

Xprotolab Watch?

Page 4: Oscilloscope Watch Teardown

Oscilloscope Watch Features

• Mixed Signal Oscilloscope: 2 analog and 8 digital channels• Advanced Trigger• Meter Mode: Average, Peak to peak and Frequency• XY Mode• FFT Mode (Spectrum Analyzer)• Horizontal and Vertical Cursors• Arbitrary Waveform Generator with Sweep• Curve tracer function

Page 5: Oscilloscope Watch Teardown

General Overview

Block diagram and general overview

Page 6: Oscilloscope Watch Teardown

Choice of the microcontroller

8bit vs 32bit ?

Page 7: Oscilloscope Watch Teardown

Choice of the microcontroller

• Critical parameters:– The speed of the ADC– DAC included– The size of the package

• Advantages of keeping the 8bit AVR:– Proven design– No porting of code

• Disadvantages:– Limited RAM– Expansion limited

Page 8: Oscilloscope Watch Teardown

Design of the Front End

Analog Frontend

𝑉 𝑜𝑢𝑡=𝑉 𝑖𝑛

10+1.024𝑉

Additional gain is done in the micro’s ADC

Page 9: Oscilloscope Watch Teardown

Design of the Front End

Front end bandwidthApproximately 320kHz, but the micro’s capacitance and

ADC characteristics lowers it to about 200kHz

Page 10: Oscilloscope Watch Teardown

Design of the waveform generator

AWG Amplifier

𝑉 𝑂𝑈𝑇=−4 ∙𝑉 𝐷𝐴𝐶+4.096𝑉

Page 11: Oscilloscope Watch Teardown

Design of the waveform generator

AWG Bandwidth

Bandwith is 50kHz, determined by the RC feedback

Page 12: Oscilloscope Watch Teardown

Design of the power stage

Load sharing

AN1149 description of the circuit

Battery supplies system load when power source is absent

Page 13: Oscilloscope Watch Teardown

Design of the power stage

Digital Power

Battery Monitor

- Very low quiescent current- Switch to 1.8V when display is off

- Battery monitor can be disabled, so it doesn’t draw current

- Output impedance of 10kΩ

Page 14: Oscilloscope Watch Teardown

Design of the power stage

Analog Power

- This section generates +5V and -5V from the input voltage- The analog power section is disabled when in watch mode

Page 15: Oscilloscope Watch Teardown

Maximize use of the peripherals

Architecture block diagram

Page 16: Oscilloscope Watch Teardown

High speed sampling using the DMA

- “High Speed” for an 8bit microcontroller running at 32MHz…- Instead of polling or using interrupt handlers to read and

process the result registers, the XMEGA’s DMA is used to move data from the result registers to memory buffers.

- This moving of data is done without CPU intervention.

Page 17: Oscilloscope Watch Teardown

Low Power techniques

Microcontroller's Power Budget

- Maximize the time spent in Sleep mode- Use the highest CPU clock speed, unless the task requires a specific amount of time (e.g. serial communication), in which case, avoid using a higher CPU speed than needed- Turn off unused peripherals

Page 18: Oscilloscope Watch Teardown

Low Power techniques

• Use the RTC with the 1024Hz from the 32768Hz external crystal• Set I/Os at a known state• Disable the digital input buffer on pins that are connected to

analog sources• Disable the BOD - or better, disable it while in sleep - to reduce

power consumption. Use sampled mode if only slow changes in operating voltage are likely.

• Disable the On Chip Debugging and the JTAG interface• Enable power reduction mode for EEPROM and Flash to reduce

power consumption in ACTIVE mode• Use page-wise writing to EEPROM rather than byte-wise

Page 19: Oscilloscope Watch Teardown

Low Power techniques - LCD

• The DMA is used to send data to the SPI.• Redundant transfers are removed in the SPI.• The next frame is rendered during the SPI transfer, this is

performed using the DMA’s double buffering.• Graphics are pre-rendered and stored in RAM.

Page 20: Oscilloscope Watch Teardown

XMEGA event system to offload the CPU

- CH0: TCE0 overflow used for ADC- CH1: ADCA CH0 conversion complete- CH2: EXT Trigger or logic pin for freq. measuring- CH3: TCD1 overflow used for DAC- CH4: TCC0 overflow used for freq. measuring- CH5: TCC1 overflow used for freq. measuring- CH6: CLKPER / 32768 -> every 1.024ms- CH7: TCD0L underflow: 40.96mS period - 24.4140625 Hz

Page 21: Oscilloscope Watch Teardown

Questions?