Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: bwaxing; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hellow,

    i've managed to generate SPWM signal using 4MHz xtal :),thanx to Henrik for the tip of modifying the lookup table values,this is the screen shoot taken from the actual scope.....5654
    ...
  2. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hi,
    i've noted that my code produce inverted sine waveform and it is not the one i intend to produce,here is my complete code:


    define OSC 20

    ;*****************VARIABLE...
  3. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hellow,

    thanx for the useful comments and suggestions,i learn a lot from them...

    Henrik and Scalerobotics,
    i've changed the code and include this Code:



    Temp = SineVal[StepCount]
  4. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    i've the changes in the code as you suggested above,but the waveform is still not smooth....5469



    define OSC 4

    ;*****************VARIABLE...
  5. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    the 877 pic on the board i'm using have 4Mhz clock, and i'm using the same filter as above.are the calculations above correct?
  6. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hellow Henrik,
    thanx for the tips, i've re-worked my sine table,also i've include the code for accuracy although i'm not sure if i've place it in a right place!
    For a 4MHz xtal and TMR1 prescaler...
  7. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hi,
    i've managed to get the sinusoidal output sine wave although i'm getting frequency of 202Hz instead of 50Hz and peak voltage of 4.58v instead of 4.5v.Also the waveform is not smooth.5461What...
  8. Replies
    4
    Views
    5,184

    Re: Problem on sending data on serial port

    i've not understand you above,but i modified the code and tried to simulate it again,the results on the terminal is not what i sent.....
    code:

    define osc 20
    char var byte
    trisb=1
    trisc=0...
  9. Replies
    4
    Views
    5,184

    Problem on sending data on serial port

    hellow everyone,

    i want to send a number of words (strings) to a serial port, but when simulating the design on proteus isis,the virtual terminal to display the strings (words) of the serial...
  10. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    i have changed the number of array size together with other modifications but there is no change in the simulation result,it is still a line....


    define OSC 20

    ;*****************VARIABLE...
  11. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    sure,it is just a line and not a sine wave form as expected....the simulation log say there are attempts to read unimplemented memory locations being ignored..i dont know what does that mean and if...
  12. Replies
    12
    Views
    6,611

    Re: help please...!

    thank you,now it is well working after re-installing MPLAB :)
  13. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    hellow everyone,

    I'm simulating this code on proteus Isis but m not getting the expected waveform(sinusoidal wave form)....the code compiles successful...but the waveform i'm getting getting on...
  14. Replies
    12
    Views
    6,611

    Re: help please...!

    there is no that include file in MPSAM suite



    m not sure if i understand that,but in compile and program option in MCS at assembler category,use MPASAM is checked although the path is pointed...
  15. Replies
    12
    Views
    6,611

    Re: help please...!

    other errors are:
    INC 22:symbol not previously defined [XT_OSC]
    INC 22:symbol not previously defined [WDT_ON]
    INC 22:symbol not previously defined [LVP_OFF]
    INC 22:symbol not previously defined...
  16. Replies
    12
    Views
    6,611

    Re: help please...!

    no,it is not working
  17. Replies
    12
    Views
    6,611

    Re: help please...!

    well, i've installed mplab ver 8.6 and m using micro code studio with mpsam checked as assembler...:)
  18. Thread: sinusoidal pwm

    by bwaxing
    Replies
    1
    Views
    3,352

    Re: sinusoidal pwm

    hellow,
    i'm trying to simulate this code on proteus isis but m getting nothing meaningful.My code compile succesfully...i need help..please

    define OSC 20

    ;*****************VARIABLE...
  19. Thread: sinusoidal pwm

    by bwaxing
    Replies
    1
    Views
    3,352

    sinusoidal pwm

    hellow,
    i'm trying to simulate this code on proteus isis but m getting nothing meaningful.My code compile succesfully...i need help..please

    define OSC 20

    ;*****************VARIABLE...
  20. Replies
    12
    Views
    6,611

    Re: help please...!

    m using PBP ver.2.6
  21. Replies
    12
    Views
    6,611

    help please...!

    hellow everyone,

    m trying to compile my program but m getting these assembler errors....i've tried to reinstaill my compiler but it is not working and if i set to pic16f877 it compiles...
  22. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    Thanks, i think i got it...let me experiment with the code i have and see what i got.....
    thank again..:)
  23. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    Thanks for the tip....yup,it's it working well now....:)
    i'm reading the pic16f877 data sheet page 63 about how to change the duty cycle of th pwm,it says the duty cycle is specified by writing to...
  24. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    I've converted the .lst file into pdf format so that i will be able to attach it,hope it will still serve the purpose.....:)
  25. Thread: sinusoidal PWM

    by bwaxing
    Replies
    83
    Views
    59,284

    Re: sinusoidal PWM

    Yes i'm compiling for the PIC16F877 using MPSAM as my assembler :)
Results 1 to 25 of 37
Page 1 of 2 1 2