Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP PLEASE WITH EXPLAINING EVERY STEP!! Draw a flowchart outlining the steps to configure the ADC on the MSP432E401Y. Hint: there are 13 steps. void

image text in transcribedHELP PLEASE WITH EXPLAINING EVERY STEP!!

Draw a flowchart outlining the steps to configure the ADC on the MSP432E401Y. Hint: there are 13 steps.

void ADC_Init(void) { //config the ADC from Valvano textbook SYSCTL RCGCGPIO R = Ob00010000; while ((SYSCTL PRGPIO R & Ob00010000) == 0) {} GPIO PORTE DIR R &= -0x10; GPIO PORTE AFSEL R = Ox10; GPIO PORTE DEN R&= -0x10; GPIO PORTE AMSEL R = Ox10; SYSCTL_RCGCADC_R [= Ox0l; ADCO_PC_R = 0x01; ADCO SSPRI R = Ox0123; ADCO ACTSS R&= 0x0008; ADCO EMUX R&= - OxF000; ADCO SSMUX3 R = 9; ADCO_SSCTL3_R = 0x0006; ADCO IM R&= 0x0008; ADCO ACTSS R = Ox0008; // 1. activate clock for port E // wait for clock/port to be ready // 2) make PE4 input // 3) enable alternate function on PE 4 // 4) disable digital I/O on PE 4 // 5) enable analog function on PE 4 // 6) activate ADCO // 7) maximum speed is 125K samples/sec // 8) Sequencer 3 is highest priority // 9) disable sample sequencer 3 // 10) seq3 is software trigger // 11) set channel Aing (PE4) // 12) no TSO DO, yes IEO ENDO // 13) disable ss3 interrupts // 14) enable sample sequencer 3 == == == == == == == ==== = == == == == == == == ==== = == == == == == == ==== == == == = == == == == ==== == == =

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

sharing of non-material benefits such as time and affection;

Answered: 1 week ago