1. Test voltage generator
All ADC and DAC modules require a reference signal, which is what we often call Vref+, Vref-.
The ADC12 module of MSP430 has an internal reference power supply. The internal reference power supply is started by controlling the REFON signal and
REF2_5V controls the internal reference power supply to generate 1.5V or 2.5V Vref+.
Finally, the reference voltage Vr+ and Vr- of the ADC module converter are set in 6 combinations through SREF_x:
Vr+ can be selected between AVcc (system analog power), Vref+ (internal reference power), Veref+ (external input reference power),
Vr- can be between AVss (system analog ground), Vref-/Veref- (internal or external reference power supply).
2. Main features of DC12:
n
n
nBuilt- in
n
n 8 external channels and 4 internal channels
nBuilt
n 4 modes of analog-to-digital conversion
n
n
n
nAutomatic
n
3. DC12 register
4. ADC12CTL0
ADC12SC: sampling conversion control bit (related to SHP, ISSH, ENC)
ENC: Conversion enable bit
ADC12TVIE: Conversion time overflow interrupt enable (multiple sampling requests)
ADC12OVIE: Overflow interrupt enable (ADC12MEMx write multiple times)
ADC12ON: ADC12 core control
REFON: Internal reference voltage generator control
REF2_5V: internal reference voltage selection 1.5V/2.5V
MSC: Multiple sampling/conversion control bit
SHT0x: Sample-and-hold time control for channels 0 to 7
SHT1x: Sample-and-hold time control for 8 to 15 channels
5. ADC12CTL1
CSTARTADD: Single channel mode conversion channel / multi-channel mode guard channel
SHSx: Sampling trigger source selection
SHP: Sampling signal SAMPCON selection
ISSH: Sampling input signal in the same direction/opposite direction
ADC12DIVx: ADC12 clock division control
ADC12SSELx: ADC12 clock selection
COMSEQx: Conversion Mode
ADC12BUSY: busy flag (converting...)
6. ADC12MCTLx
EOS: multi-channel conversion end channel flag
SREFx: Reference source selection
INCHx: corresponding analog voltage input channel
7. ADC12IFG
ADC12IFGx: interrupt flag
Corresponding to ADC12MEMx, when the A/D conversion is completed, the data is stored in ADC12MEMx, and the ADC12IFGx flag is set.
ADC12IEx: Interrupt enable bit
Corresponding to ADC12IFGx, if ADC12IEx is allowed, the interrupt service routine of ADC12 will be entered when ADC12IFGx is set.
8. C12 conversion mode
The ADC12 module provides a total of 4 conversion modes
Single channel
n
Single channel
n-
Previous article:MSP430 Learning Notes
Next article:An Engineer's Journey into Hardware
Recommended ReadingLatest update time:2024-11-16 22:39
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Electronic hourglass based on physical model
- EEWORLD University Hall----Live Replay: Melexis High Reliability Programmable Hall Switch
- 2. Onboard RGB light control
- How to self-test the fault of resistor parallel circuit?
- Auxiliary trainer for plank and push-up exercises
- MSP430 sets the main clock source, main clock source and auxiliary clock source
- What are the transmission distances of Zigbee and Bluetooth respectively? Which one has unlimited distance transmission?
- Impedance Matching and the Smith Chart: The Basics
- ATH10 temperature and humidity measurement is inaccurate
- Happy Little New Year! How many days off do you have for the New Year?