efm32 series 0: analog peripherals

64
EFM32 Series 0: Analog Peripherals

Upload: others

Post on 11-Jun-2022

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EFM32 Series 0: Analog Peripherals

EFM32 Series 0: Analog Peripherals

Page 2: EFM32 Series 0: Analog Peripherals

Analog Integration

ADC ...0101110...

+

-

DAC...0100010...

...0101110...

ACMP

OPAMP

-

+

2

Page 3: EFM32 Series 0: Analog Peripherals

Analog-to-Digital Converter

DAC...0100010...

...0101110...

ACMP

OPAMP

-

+

• 12-bit @ 1 MSamples/s: 350 µA

• Up to 8 input channels

• Integrated temperature sensor

• Up to 4096x oversampling in HW

• Internal/external references

• 5 µs settling

• Autonomous operation with DMA/PRS

• Separate single and scan mode configs

ADC ...0101110...

+

-

3

Page 4: EFM32 Series 0: Analog Peripherals

Input Options

SAR

ADCn_CH0

ADCn_CH7

Temp

VSS

VDD

VDD/3

DAC0

ADCn_CH1

ADCn_CH2

ADCn_CH3

ADCn_CH4

ADCn_CH5

ADCn_CH6

2.5 V

1.25 V

VDD

+

-

DAC1

2x(VDD-VSS)

5 V differential

Vref/2

Results

Can be used in

differential

mode

Only available

in Single mode

Input and ref can be single ended or differential

4

Page 5: EFM32 Series 0: Analog Peripherals

Single vs Scan

SINGLESTART

CH3

Single conversionINPUTSEL = CH3

CH0

SCANSTART

CH1 CH4 CH0 CH1 CH4

SCANSTART

SINGLESTART

CH3

Scan conversionINPUTMASK = (CH0 | CH1 | CH4)

5

Page 6: EFM32 Series 0: Analog Peripherals

Warm Up

Mode Function

NORMAL ADC and references are shut off between samples

KEEPSCANREFWARM Scan reference is kept warm

KEEPADCWARM Both ADC and scan reference is kept warm

FASTBG Bandgap warm-up is disabled

Only applies to reference

selected for Scan modeReduces accuracy

7

Page 7: EFM32 Series 0: Analog Peripherals

Warm Up

8

Page 8: EFM32 Series 0: Analog Peripherals

Warmp Up

9

Page 9: EFM32 Series 0: Analog Peripherals

Warm Up

10

Page 10: EFM32 Series 0: Analog Peripherals

Warm Up

11

Page 11: EFM32 Series 0: Analog Peripherals

Warm Up

12

Page 12: EFM32 Series 0: Analog Peripherals

Conversion Timing

Timing: One conversion, 13 cycles

13

Page 13: EFM32 Series 0: Analog Peripherals

Tuning for Speed

Only way to achieve 12bit, 1MSPS:

1us, 13 cycles at 13 MHz

13 MHz -> must have HFXO/HFRCO at 13, 26 or 39 MHz14

Page 14: EFM32 Series 0: Analog Peripherals

Prescalers

ADC

Warm-up

Sequencer

ADC

PrescalerHF-perclk

PrescalerHFCLK

2n n=0-9 2n n=0-7

1-127 clock-cycles, LG/WG1-31 clock-cycles, others

< 13MHz

> 1us

~1 - 48MHz

15

Page 15: EFM32 Series 0: Analog Peripherals

ADC Input Circuitry – Differential

16

Page 16: EFM32 Series 0: Analog Peripherals

ADC Input Circuitry – Single Ended

17

Page 17: EFM32 Series 0: Analog Peripherals

Hardware Oversampling

OVS Right shifts Result # bits

2x 0 13

4x 0 14

8x 0 15

16x 0 16

32x 1 16

64x 2 16

128x 3 16

256x 4 16

512x 5 16

1024x 6 16

2048x 7 16

4096x 8 16

Up to 4096x oversampling in hardware

Result is accumulated and right-shifted

Not neccessarily true 16-bit result!

18

Page 18: EFM32 Series 0: Analog Peripherals

Calibration

Internal references calibrated in production test

Calibration values stored in DI page

Values for 1.25V BG loaded at reset

Emlib functions automatically load corresponding calibration values

DI Page

19

Page 19: EFM32 Series 0: Analog Peripherals

Integrated Temperature Sensor

Calibrated at 25 C

24

Page 20: EFM32 Series 0: Analog Peripherals

Temperature Sensor Error

0

2

4

6

8

10

12

-40 -15 5 25 45 65 85

Dif

fere

nce

[C

]

Temperature [C]

Difference between measured temperature and actual temperature vs temperature

Average

25

Page 21: EFM32 Series 0: Analog Peripherals

Energy Efficient ADC Sampling

26

Page 22: EFM32 Series 0: Analog Peripherals

Digital-to-Analog Converter

ADC ...0101110...

+

-

ACMP

OPAMP

-

+

• 12-bit resolution

• 200 µA @ 500 kSamples/s

• 2 independent channels

• Internal references

• Sine generation mode

• PRS/DMA Trigger

DAC...0100010...

...0101110...

27

Page 23: EFM32 Series 0: Analog Peripherals

DAC

Two independent channels,

Internal references

Output to internal peripherals

28

Page 24: EFM32 Series 0: Analog Peripherals

Output Modes

Single Ended

Differential

Signed integerCommon mode = VDD / 2

29

Page 25: EFM32 Series 0: Analog Peripherals

DAC built in Sine Wave Generator

16 sample sine wave HW look-up table in DAC

Frequency set by HFPERCLK supplied to DAC

30

Page 26: EFM32 Series 0: Analog Peripherals

DAC built in Sine Wave Generator

Signal generation is controlled by PRS

Output can be tri-stated or driven to Vdd/2

Can be used for simple power line communication

31

Page 27: EFM32 Series 0: Analog Peripherals

DAC Signal with DMA and PRS

ADC

Peripheral Reflex System

Direct Memory Access

RAM

TIMER

Sample DataSample Data

Start conversion

DAC

Start conversion

Conversion doneDMA Request

Overflow

Analog output

32

Page 28: EFM32 Series 0: Analog Peripherals

DAC Sine Wave Generator with PRS

DMA fetches samples from RAM, can produce any waveform, even music.

Sample-frequency timed by PRS from TIMER

33

Page 29: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

34

Page 30: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-module

Enable Enable

35

Page 31: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-moduleContinuous Mode

Enable Enable

36

Page 32: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-moduleContinuous Mode

Sample-Hold Mode

Sample-Off Mode

Enable Enable

37

Page 33: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-moduleContinuous Mode

38

Page 34: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-moduleContinuous Mode

Sample-Hold Mode

Sample-Off Mode

39

Page 35: EFM32 Series 0: Analog Peripherals

DAC Details

What is continuous, sample-hold and sample-off modes?

DAC-

core

...0101110...

R load

Driver

Holding element

DAC-moduleContinuous Mode

Sample-Hold Mode

Sample-Off Mode

Frequency set by:

CMU-Peripheral-Clock

DAC-Prescaler

RefreshCycle Register

40

Page 36: EFM32 Series 0: Analog Peripherals

Current DAC

IDAC Highlights

• Zero Gecko only

•Configurable 0.05-64 µA output

• 4x32 steps

• Only 10 nA current overhead

• PRS triggered operation

• Biasing of external components

• E.g. amplifiers

44

Page 37: EFM32 Series 0: Analog Peripherals

IDAC Ranges

4 Ranges

32 Steps in each range

45

Page 38: EFM32 Series 0: Analog Peripherals

Calibration

Middle of each range is calibrated in production test

Calibration values stored in DI page

Tuning values automatically loaded by emlib

46

Page 39: EFM32 Series 0: Analog Peripherals

Duty Cycle

IDAC can be duty-cycled at 4 Hz

Sources current at low overhead

Default enabled in EM2/EM3

Default disabled in EM0/EM1

Cannot sink in duty-cycle mode

47

Page 40: EFM32 Series 0: Analog Peripherals

ACMP Overview

49

Page 41: EFM32 Series 0: Analog Peripherals

ACMP Input Selection

Positive Channel

Input pins 0-7

Negative Channel

Input pins 0-7

1.25V BG

2.5V BG

Scaled VDD

DAC channels

50

Page 42: EFM32 Series 0: Analog Peripherals

Hysteresis

51

Page 43: EFM32 Series 0: Analog Peripherals

Hysteresis

52

Page 44: EFM32 Series 0: Analog Peripherals

Response Time

FULLBIAS = 0, HALFBIAS = 153

Page 45: EFM32 Series 0: Analog Peripherals

Capacitive Sense Mode

54

Page 46: EFM32 Series 0: Analog Peripherals

Capacitive Sense Mode

55

Page 47: EFM32 Series 0: Analog Peripherals

ACMP IRQ

Both ACMPs share one IRQ, called ACMP0_IRQ

56

Page 48: EFM32 Series 0: Analog Peripherals

ACMP Bias

ACMPLETIMER

BIAS register

Oscilloscope

57

Page 49: EFM32 Series 0: Analog Peripherals

Operational Amplifiers

ADC ...0101110...

+

-

DAC...0100010...

...0101110...

ACMP

• 3 rail-to-rail OPAMPs integrated

• Configurable connections to ADC,

DAC and pins

• Various configuration modes

• Programmable gain

• Inverting / non-inverting

• Cascading

+

-

VDD

GND

Out

GND

DAC

Next OPAMP

Previous OPAMP

ADC

OPAMP

-

+

58

Page 50: EFM32 Series 0: Analog Peripherals

Operational Amplifiers in DAC

59

Page 51: EFM32 Series 0: Analog Peripherals

Non-Inverting Amplifier

60

Page 52: EFM32 Series 0: Analog Peripherals

Preset common configurations in emlib

Only some options available in emlib

To fully utilize the opamps, one must go touch the registers directly

Non-Inverting Amplifier

61

Page 53: EFM32 Series 0: Analog Peripherals

OPAMP Connections

62

Page 54: EFM32 Series 0: Analog Peripherals

OPAMP Connections

63

Page 55: EFM32 Series 0: Analog Peripherals

OPAMP Connections

64

Page 56: EFM32 Series 0: Analog Peripherals

OPAMP Connections

65

Page 57: EFM32 Series 0: Analog Peripherals

OPAMP Connections

66

Page 58: EFM32 Series 0: Analog Peripherals

OPAMP Connections

67

Page 59: EFM32 Series 0: Analog Peripherals

OPAMP Connections

68

Page 60: EFM32 Series 0: Analog Peripherals

Resistor Ladder

69

Page 61: EFM32 Series 0: Analog Peripherals

Output to ADC

70

Page 62: EFM32 Series 0: Analog Peripherals

OPAMP Connections

Output to ADC, what if there is no pin on that package?

Still OK to use that pad for internal routing

71

Page 63: EFM32 Series 0: Analog Peripherals

OPAMP + LESENSE

OPAMP + LESENSE

72

Page 64: EFM32 Series 0: Analog Peripherals

OPAMP Details

OPAMP + LESENSE

OPAMP

LESENSE can dutycycle

OPAMP 0 and 1 the way it

dutycycles the DAC

73