This application note describes how to interface the MAX1169 analog-to-digital converter (ADC) to a PIC microcontroller. Example circuits and software for the PIC18F442 are provided. The software contains function calls to interface the ADC to the PIC microcontroller at 400kHz using the internal MSSP I2C* port.
The MAX1169 is a 16-bit, low-power ADC with an I2C-compatible 2-wire serial interface. The MAX1169 interface supports both fast mode (400kHz) and high-speed mode (up to 1.7MHz).
This application note includes an example application circuit and software for the PIC18F442. The software provides function calls to interface the ADC to the PIC microcontroller at 400kHz using the internal MSSP I2C port. Because other microcontrollers have similar on-chip peripherals, the I2C communication routines provided in the example are intentionally split into separate I2C function calls to facilitate quick porting to other microcontrollers. Table 1 shows the separate I2C interface function calls used in the assembly program example.
The application circuit discussed here uses the MAX1169EVKIT, which includes the MAX1169, input buffer (MAX4430), and a proven PCB. The PIC and RS-232 transceiver IC (MAX3232) are not installed on the MAX1169EVKIT board. However, they have been added to the system, and a complete application circuit is shown in Figure 1. The SCL and SDA pads on the MAX1169EVKIT facilitate the connection of an I2C-compatible serial interface. For 400kHz I2C communication, 1.5k pull-up resistors are connected to R3 and R4.
The pinout of the MAX1169 facilitates the isolation of the analog and digital sections. The analog section is grouped on pins 8-13, distributed on the right side of the IC; the digital section is grouped on pins 1-7, distributed on the left side of the IC. Pin 14 is also part of the digital section, but can be conveniently organized with the left side of the IC. For best performance, it is recommended to use separate analog and digital power supplies, as shown in the schematic in Figure 1.
Figure 1. MAX1169 application schematic.
Separating the analog ground from the digital ground (as shown in Figure 2) can achieve better practical results. Use ferrite beads, such as TDK MMZ1608B601C, to connect the two ground planes. This layout can prevent the microcontroller system clock and its harmonic components from feeding into the analog ground. The system clock of the PIC18F442 is known to be 40MHz. Considering the special impedance and frequency characteristics of the MMZ1608B601C, we chose this ferrite bead. Figure 3 shows the impedance change curve of the MMZ1608B601C with frequency.
Figure 2. Separate analog and digital grounds.
Figure 3. TDK MMZ1608B601C ferrite bead impedance vs. frequency
The assembly program in the example reads the continuous conversion results of the 16-bit ADC MAX1169 at a frequency of 400kHz through the PIC's 2-wire interface. Once the PIC receives the data (digitized analog voltage), it will immediately send it out through the software UART at a rate of 115kbps. The RS-232 transceiver sends the data to a personal computer with a standard serial interface.
Table 1. Single I2C interface function calls
Figure 2. Separate analog and digital grounds.
Figure 3. TDK MMZ1608B601C ferrite bead impedance vs. frequency
The assembly program in the example reads the continuous conversion results of the 16-bit ADC MAX1169 at a frequency of 400kHz through the PIC's 2-wire interface. Once the PIC receives the data (digitized analog voltage), it will immediately send it out through the software UART at a rate of 115kbps. The RS-232 transceiver sends the data to a personal computer with a standard serial interface.
Table 1. Single I2C interface function calls
Previous article:Design and application of sampling clock for broadband and high dynamic digital IF system based on AD9516
Next article:New 32-bit microcontroller enables true single-chip DRM digital audio codec
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Help: D11, D13 selection, thank you
- I see this device is always used in the circuit drive part such as motor controller
- Keil simulator plays RTT multi-threaded lighting
- Sensor circuit problem
- Help!
- stm8s003 simulated serial port
- MSP430 development tools and their features
- Linux network card promiscuous mode and monitoring mode
- Design of the inverting input summing circuit
- [NXP Rapid IoT Review] + Essential content for web-based rapid design