firmware code for pic18f252


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Posts
    25

    Cool firmware code for pic18f252

    i am working on 200watt sine wave inverter with pic18f252, i have written the code but afraid of destroying the mosfes in one blow. can someone review/ modify my code ?.

    regards,
    babalola.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Post the code and maybe the schematic.

    I am having trouble reading it as is
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    thanks dave,

    the code and the schematics is attached.

    regards,
    babalola.
    Attached Images Attached Images

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default That does not look like PBP

    I guess you might have better luck with your program if you ask some C forum for help.

  5. #5
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    hi jumper,
    if you offer a pbasic review of the code,i will appriciate it. i understand a bit of basic language.

    thanks
    babalola.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    Hi,

    Looking a your document ...

    a simple breadboard , plus a scope are enough to verify the PIECE of code supplied ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    Thanks Alain,

    I don't have a scope now and that is why what i did after i programm the chip was to connect an diode led to the output of the pwm expecting some action but the led was just dead all through.

    Babalola.

  8. #8
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    since no one would review my c-code on this subject, ih have decided to modified suogata bacis code on sine wave inverter thread. i am using PIC16F72 for the evaluation because that is the processor that is readily available with me now.

    The picbasic iam using is the demo version and so i appriciate that i can't run a code more than 31 command line.however upon trying to compile the code ,the following erros are reported:

    1: Error line 116 :redefinition of label T0CON

    2: Error line 119: bad expression

    3: Demo limit of 31 command line exceeded (this is understood)

    pls, can any one fix these problem for me?.

    (a): With the way the modified code stands,can it generate two complimentary sine pwm signals DRIVE1& DRIVE2?.if yes how do i include a delay routine of about 470ns for dead-time control between the two signals?

    (b): If the code cannot generate the two complimentary sinepwm signals what do i do to fix the stuff?.

    regards,
    babalola.
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

Members who have read this thread : 0

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

Posting Permissions

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