GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.kernel.org — ADE9000/ADE9078 driver — The Linux Kernel documentation ADE9000/ADE9078 driver¶This driver supports Analog Devices’ ADE9000 and ADE9078 energy measurement ICs on SPI bus. 1. Supported devices¶The ADE9000 and ADE9078 are highly accurate, fully integrated, multiphase energy and power quality monitoring devices. Superior analog performance and a digital signal processing (DSP) core enable accurate energy monitoring over a wide dynamic range. An integrated high end reference ensures low drift over temperature with a combined drift of less than ±25 ppm/°C maximum for the entire channel including a programmable gain amplifier (PGA) and an analog-to-digital converter (ADC). The ADE9078 does not provide the on-chip dip/swell (sag) detection available on the ADE9000, so the RMS voltage swell/dip events described below are only available on the ADE9000. 2. Device attributes¶Power and energy measurements are provided for voltage, current, active power, reactive power, apparent power, and power factor across three phases. Each IIO device has a device folder under The following tables show the ADE9000 related device files, found in the
specific device folder path
3. Calibration and scaling¶The ADE9000 provides multiple levels of gain and offset correction:
4. Event attributes¶The ADE9000 provides various interrupts that are mapped to IIO events. Event functionality is only available if the corresponding interrupts are connected in the device tree.
Event directions:
Note: Event attributes are only available if the corresponding interrupts (irq0, irq1, dready) are specified in the device tree. The driver works without interrupts but with reduced functionality. 5. Device buffers¶This driver supports IIO buffers for waveform capture. Buffer functionality requires the dready interrupt to be connected. The device supports capturing voltage and current waveforms for power quality analysis. The waveform buffer can be configured to capture data from different channel combinations. Supported channel combinations for buffered capture:
Usage examples¶Enable waveform capture for Phase A: root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_current0_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_voltage0_en Set buffer length and enable: root:/sys/bus/iio/devices/iio:device0> echo 100 > buffer/length root:/sys/bus/iio/devices/iio:device0> echo 1 > buffer/enable 6. Clock output¶The ADE9000 can provide a clock output via the CLKOUT pin when using an external
crystal/clock source. This feature is enabled by specifying 7. Usage examples¶Show device name: root:/sys/bus/iio/devices/iio:device0> cat name ade9000 Read voltage measurements: root:/sys/bus/iio/devices/iio:device0> cat in_voltage0_raw 12345 root:/sys/bus/iio/devices/iio:device0> cat in_voltage0_scale 0.000030517
Read power measurements: root:/sys/bus/iio/devices/iio:device0> cat in_power0_active_raw 5678 root:/sys/bus/iio/devices/iio:device0> cat in_power0_scale 0.000244140
Configure calibration gains: # Set current channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x800000 > in_current0_calibscale # Set voltage channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x7FFFFF > in_voltage0_calibscale Configure RMS voltage event thresholds (requires interrupts): # Set RMS sag detection threshold root:/sys/bus/iio/devices/iio:device0> echo 180000 > events/in_altvoltage0_rms_thresh_falling_value # Enable RMS sag detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_falling_en # Set RMS swell detection threshold root:/sys/bus/iio/devices/iio:device0> echo 260000 > events/in_altvoltage0_rms_thresh_rising_value # Enable RMS swell detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_rising_en 8. IIO Interfacing Tools¶See IIO Interfacing Tools for the description of the available IIO interfacing tools. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |