The dsPIC30F2010-based Drop-In Woofer Servosystem linearizes loudspeaker cone movement via feedback from a pressure-sensing microphone. The manipulate roll feedback comes from a somesthesia device region the closed speaker papers
DCON1bits.SSRC — conversion trigger source select Internal counter ends sampling and starts conversion (auto-convert) Motor control PWM GP timer3 Active transition on INTO pin Clearing SAMP bit ADCON3 Register At 29.4 MIPS, Tcy = 33.9 ns = Instruction Cycle Time
The A/D converter will take 12*Tad periods to convert each sample So for ~1 MSPS we need to have Tad close to 83.3ns Using equaion in the Family Reference Manual we have ADCS = 2*Tad/Tcy – 1 Sampling begins immediately after last conversion completes. SAMP bit automatically set Sampling begins when SAMP bit is set
Password: 320volt.com
Published: 2010/05/26 Tags: dspic projects, microchip projects, microcontroller projects
dsPIC30F3012 rs232 interface power frequency monitor
The Power Frequency Monitor (PFM) is a MicroChip dsPIC30F3012 micro controller based device used for high resolution measurement of AC power frequency. The Power Frequency Monitor communicates easily with a computer using a RS232 interface.
PHzMon – Power Line Frequency Monitor 10/09/07 SPI and EEPROM Unit Tests completed ASCII commands “0”..”9″ UART PC Interface Input Capture Options Internal Fast RC Oscillator @ 7.37 MHz _FOSC(CSW_FSCM_OFF & FRC); Watch Dog OFF Enable MCLR reset pin and turn off the power-up timers. Disable Code Protection Using External Clock Oscillator @ 12.000 MHz * PLL4 = 48 MHz