Skip to content

Commit 05ba22c

Browse files
committed
Correcting the PGA_BYPASS
1 parent 4ee7770 commit 05ba22c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ a low-noise programmable gain amplifier, two programmable current sources, a vol
66
and an in-built precision temperature sensor. In summary, it contains everything you need for a wide
77
variety of applications including being able to measure temperature accurately from remote sensors.
88

9+
Thanks to:
10+
11+
- [deviashin](https://github.com/sparkfun/SparkFun_ADS122C04_ADC_Arduino_Library/issues/3) for identifying that the PGA bypass was inverted.
12+
913
## Repository Contents
1014

1115
- **/examples** - Example sketches for the library (.ino). Run these from the Arduino IDE.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun ADS122C04 ADC Arduino Library
2-
version=1.0.0
2+
version=1.0.1
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Arduino library for the TI ADS122C04

src/SparkFun_ADS122C04_ADC_Arduino_Library.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128
#define ADS122C04_GAIN_64 0x6
129129
#define ADS122C04_GAIN_128 0x7
130130

131-
// PGA Bypass
132-
#define ADS122C04_PGA_DISABLED 0x0
133-
#define ADS122C04_PGA_ENABLED 0x1
131+
// PGA Bypass (PGA is disabled when the PGA_BYPASS bit is set)
132+
#define ADS122C04_PGA_DISABLED 0x1
133+
#define ADS122C04_PGA_ENABLED 0x0
134134

135135
// Configuration Register 1
136136
// ADS122C04 Table 19 in Datasheet

0 commit comments

Comments
 (0)