Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Analog Devices AD799x-series ADCs

License

NotificationsYou must be signed in to change notification settings

avsa242/ad799x-spin

Repository files navigation


This is a P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for Analog Devices AD799x-series ADCs.

IMPORTANT: This software is meant to be used with thespin-standard-library (P8X32A) orp2-spin-standard-library (P2X8C4M64P). Please install the applicable library first before attempting to use this code, otherwise you will be missing several files required to build the project.

Salient Features

  • I2C connection at up to 400kHz (maximum is not enforced)
  • Read ADC word or voltage in micro-volts
  • Set active channel mask
  • Set function of BUSY/ALERT pin
  • Set ADC data rate (currently interval between measurements)

Requirements

P1/SPIN1:

  • spin-standard-library
  • signal.adc_common.spinh (provided by spin-standard-library)

P2/SPIN2:

  • p2-spin-standard-library
  • signal.adc_common.spin2h (provided by p2-spin-standard-library)(NOTE: untested on P2)

Compiler Compatibility

ProcessorLanguageCompilerBackendStatus
P1SPIN1FlexSpin (6.9.4)BytecodeOK
P1SPIN1FlexSpin (6.9.4)Native/PASMOK
P2SPIN2FlexSpin (6.9.4)NuCodeUntested (build OK)
P2SPIN2FlexSpin (6.9.4)Native/PASM2Untested (build OK)

(other versions or toolchains not listed arenot supported, andmay or may not work)

Hardware compatibility

  • Supports AD7993, AD7994, AD7997, AD7998
  • Tested with AD7993-1 (Parallax Propeller Board of Education)
  • Untested with P2

Limitations

  • Very early in development - may malfunction, or outright fail to build
  • Channels other than first aren't fully implemented yet
  • SCL/SDA on-chip filtering not yet implemented
  • BUSY/ALERT active state not yet implemented
  • Interrupts not yet implemented
  • I2C high-speed mode not yet implemented

About

P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Analog Devices AD799x-series ADCs

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp