CCPxM3:CCPxM0 (CCPxCON<3:0>) to capture every rising edge of the waveform ??if m considering 18f4431 ...
CCPxM3:CCPxM0 (CCPxCON<3:0>) to capture every rising edge of the waveform ??if m considering 18f4431 ...
The DSM feature would allow you to select a comparator as one of your qualifiers. Whenever your arcing input exceeds your selected (possibly through DAC) threshold, your HF is passed through. FWIW I played with the PIC16F1828 this weekend specifically to experiment with the DSM.
Here's what my version looked like:
http://s223.photobucket.com/user/mpgchris/media/246_zps91083c15.jpg.html
Mike
hello mike
actually what i have in my mind is carrier if 20khz il generate tru microcontroller itself by using the up-dwn counters.my oli problem is hw do i generate 50hz ref to compare it with my carrier .
The Data Signal Modulator allows you to choose from:
- MDCIn1
- MDCIn2
- CLKR
- CCP<1:4>
- Comparator C1,2
- EUSART Tx
There are 3 signals that can be modulated; CarrierH, CarrierL, and Modulator. Configuring COMP1 as your modulator signal. Create the 20khz from CCP1, and your 50hz from CCP2. Make one your CARL and the other your CARH. From there look at Figs 23-2 through 23-5 on pages 207-8 of the PIC16F1824_28 data sheet.
Hope this helps.
An analog option would use a comparator for a high/low output, send that to the RESET pin (4) of a LM555 timer set up for your 20khz and a whole different set-up for your 50hz.
Mike
Bookmarks