Back to Blog
Ad8232 didnt show signal6/3/2023 ![]() TIMER_A0->CTL = TIMER_A_CTL_TASSEL_2 | // SMCLK as source for timer TIMER_A0->CCTL = TIMER_A_CCTLN_CCIE //Enable CC interrupt PCM->CTL0 = PCM_CTL0_KEY_VAL | PCM_CTL0_AMR_AM_LDO_VCORE1 ĬS->KEY = CS_KEY_VAL //Unlock CS registersĬS->CTL0 = CS_CTL0_DCOEN | CS_CTL0_DCORSEL_4 //Choose 24 MHz clock speedĬS->CTL1 = CS_CTL1_SELS_3 | CS_CTL1_SELM_3 //Use DCOCLK as source for MCLK, SMCLK + HSMCLKĪDC14->CTL0 &= ~ADC14_CTL0_ENC // Reset ENC bit for configurationĪDC14->CTL0 = ADC14_CTL0_PDIV_1 | // Pre-divide clock by 4ĪDC14_CTL0_SSEL_3 | // ADC clock source is MCLKĪDC14_CTL0_CONSEQ_2 | // Repeat-single channelĪDC14_CTL0_SHT0_2 | // Sampling length of 16 ADC clock cyclesĪDC14->CTL1 = ADC14_CTL1_RES_3 // 14-bit resolutionĪDC14->MCTL = ADC14_MCTLN_INCH_6 // ref+ = AVcc, channel = A1 P4->SEL0 |= BIT7 // Enable A/D channel A6 P4->DIR &= ~(BIT7) // Analog input channel A6 ![]() WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD // stop watchdog timer Can I get guidance? I'll leave my code below. I'm not hearing anything but static so far. ![]() ![]() What I want to achieve is getting audio from my microphone electret (Adafruit MAX9814), sample the signal at 44.1 kHz (the signal would be converted from analog coming from the microphone to digital), convert that digital signal back to analog and output it to a speaker so I can listen to the sound. Hello, I'm new to programming the MSP432 and I have problems with my code.
0 Comments
Read More
Leave a Reply. |