parameters on which PIC is selected


Closed Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Mar 2014
    Posts
    7

    Default parameters on which PIC is selected

    Hello
    i'am doing project on multilevel inverter using 8 switches to b gated according to switches sequence.m unable to select pIC controller as i have 4 PWM signals to b generated.there are 4 switches in DC link ( 2 pwm required and other 2 r opposite of generated pwm )and a H-bridge

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    Hi,
    Another new member and YAIP (Yet Another Inverter Project), here we go again :-)
    Take a look at the 18F2431, it will most likely do what you need. It has a PCPWM module with 3 separate (4 for the 18F4431) PWM generators with complementary outputs (up to 6/8 outputs) and deadtime insertion. A fast ADC which can sample two channels simultanously and a boatload of other features.

    There are several other devices with 2 (or more) ECCP modules with complementary outputs, use the product selector tool at Microchips website to find them, then look at the datasheet to see if it'll do what you need.

  3. #3
    Join Date
    Mar 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    hey thanks man
    bt the prob is der r gating signals with varying duty cycles evrytim the carrier cuts with the reference signal so how its possible to measure the duty cycle of the signals ,to program accordingly .m attaching snapshot of the matlab simulation result.Name:  gating signals.JPG
Views: 457
Size:  72.9 KB

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    Hi,
    I'm sorry, I have no idea.

  5. #5
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    May I suggest the PIC16F1824 (14-pin) or PIC16F1828 (20-pin) enhanced processors. Get the data sheet, these chips are awesome for what you're wanting to do! First, they include 4 ECCP channels, allow you to invert outputs, PLUS include a cool feature called Data Signal Modulator (DSM) that would allow you to embed your higher frequency within the slow clock, and even PWM that higher frequency while PWM the slow clock.

    Hope this helps.
    Mike

  6. #6
    Join Date
    Mar 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    hey thanks man
    bt the prob is der r gating signals with varying duty cycles evrytim the carrier cuts with the reference signal so how its possible to measure the duty cycle of the signals ,to program accordingly,hardware point of view .m attaching snapshot of the matlab simulation result.Name:  gating signals.JPG
Views: 427
Size:  72.9 KB

  7. #7
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    If you have a fixed period (as shown in the above pic), then measure either on-time or off-time with T1G (or T2G, T3G, etc) and subtract it from the total period. Simple math & you have your DC%.

    If you have a varying period, use "Toggle Mode" to measure a period, then disable Toggle Mode and set up Single-Shot Mode to measure either on or off time. From there it is once again simple math.

    Am I getting closer?

    Mike

  8. #8
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    try this

    move1:
    Lbyte = (position1 & %00001111) 'servo 0 + lownib
    Hbyte = %10000000 |( (position1 & %11110000)>>4) 'servo 0 + highnib
    SEROUT2 serial_out,baud1,[Lbyte,Hbyte] 'send command to FT639
    PAUSE 100
    RETURN

    edit oops wrong thread
    Last edited by richard; - 6th April 2014 at 00:48.

  9. #9
    Join Date
    Mar 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    hi mike
    gt ur point,so ur saying taking the reference and carrier signal (20khz) frm ADC n checking for its on and off time??
    cos if you c ma reference its a absolute and i dnt have my negative cycle.so how do i generate my ref n carrier 1st??
    i'am thinking of taking in signals from ADC and den comparing...
    m i right??

  10. #10
    Join Date
    Mar 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    CCPxM3:CCPxM0 (CCPxCON<3:0>) to capture every rising edge of the waveform ??if m considering 18f4431 ...

  11. #11
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    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

  12. #12
    Join Date
    Mar 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    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 .

  13. #13
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    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.

  14. #14
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: parameters on which PIC is selected

    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

Similar Threads

  1. Serin parameters ??
    By Rony in forum General
    Replies: 6
    Last Post: - 21st August 2011, 18:01
  2. dc motor parameters
    By iugmoh in forum Off Topic
    Replies: 0
    Last Post: - 10th October 2009, 19:32
  3. DC motor parameters ?
    By iugmoh in forum Off Topic
    Replies: 2
    Last Post: - 28th June 2008, 10:46
  4. MCSP Bootloader Parameters
    By CocaColaKid in forum General
    Replies: 0
    Last Post: - 19th September 2005, 18:15
  5. @ Device Parameters
    By Randy_Suwanee in forum General
    Replies: 2
    Last Post: - 11th August 2004, 14:40

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts