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
...
Type: Posts; User: bwaxing; Keyword(s):
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
...
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...
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]
i've the changes in the code as you suggested above,but the waveform is still not smooth....5469
define OSC 4
;*****************VARIABLE...
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?
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...
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...
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...
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...
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...
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...
thank you,now it is well working after re-installing MPLAB :)
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...
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...
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...
no,it is not working
well, i've installed mplab ver 8.6 and m using micro code studio with mpsam checked as assembler...:)
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...
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...
m using PBP ver.2.6
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...
Thanks, i think i got it...let me experiment with the code i have and see what i got.....
thank again..:)
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...
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.....:)
Yes i'm compiling for the PIC16F877 using MPSAM as my assembler :)