PCF8591(4)
π NAME π
okay bestie, welcome to PCF8591(4) β the page from the Kernel Interfaces Manual β and it's literally about the pcf8591 driver for the PCF8591 8-bit A/D and D/A converter π
β¨ SYNOPSIS β¨
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device pcf8591
device iicbus
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
pcf8591_load="YES"
πΈ DESCRIPTION πΈ
The pcf8591 driver supports reading four inputs and setting one output over I2C. The hardware supports configuring the input lines as:
- four single-ended inputs
- three differential inputs (one input line is shared between all three inputs)
- two single-ended inputs and one differential input
- two differential inputs.
The pcf8591 driver reports data via sysctl(8) entries in the device's node in the sysctl(8) tree:
inputs.%dβ The input level of the corresponding input in steps between0and255. Absolute voltage depends on an actual reference voltage.
On an FDT(4) based system the following properties must be set:
compatibleβ Must be set to"nxp,pcf8591".regβ The I2C address ofpcf8591. It should be in the range from0x40to0x4f(7-bit).
The DTS part for a pcf8591 device usually looks like this little icon:
/ {
...
pcf8591adc {
compatible = "nxp,pcf8591";
reg = <0x48>;
};
};
π¦ SEE ALSO π¦
π HISTORY π
The pcf8591 driver and this manual page was written by Andriy Gapon <avg@FreeBSD.org>.
π BUGS π
The pcf8591 driver does not support changing the input configuration. All input lines are configured as single-ended inputs.
The pcf8591 driver does not support setting the output. It is always disabled (tri-state).
xoxo π this page is from Debian, dated November 6, 2021, and its footer name is PCF8591(4) β bye bestie π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2020 Andriy Gapon <avg@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms