Search found 13 matches

by mhuang
Thu Apr 28, 2011 10:00 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi Benj Thanks for your example, I have donwload new verison and run the file. when I change the delay time to 1s, it is not stable, because the simulation shows the B0 is brighten and B1 is off after running 50 second. Please verify what I am saying for the program, many thanks. Furthermore, for th...
by mhuang
Thu Apr 28, 2011 4:31 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi

The file is created by the V4 or other further version, but I only have the V3 in my computer, so please attach the file for V3.
In addtion, for this new program, how to control the duty cycle? Please also explain for me in the reply, Many thanks.


Huang Min
by mhuang
Wed Apr 27, 2011 6:31 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi

For example, the duty cycle of B0 is 20%, the B1 is 60%, so how is setting the LED_brighten_variable.Many thanks.


Huang Min
by mhuang
Wed Apr 27, 2011 5:30 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi

Thanks for your help. I have programed following what you said, but it alson doesn't sort my problem, because the current task need wait to previous task complete, so the OFF can not control depend on how long for the previous task running. The file is enclosed below, please check.

Huang Min
by mhuang
Thu Apr 21, 2011 4:24 pm
Forum: General / Misc
Topic: Delay time
Replies: 4
Views: 3671

Re: Delay time

Hi

The file is enclosed, when I change the delay time, e.g. delay_10us(1) to delay_10us(10), the waveform is no change after compile to chip. So what's problem?


Huang Min
by mhuang
Thu Apr 21, 2011 12:33 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi I still don't know how to control the duty cycle only by the software solution, not CCP, the flow code should follow the C code which explain my idea, Please see my flowcode, tell me where the problem is, many thanks. Huang Min > >> MAX_COUNT = 2^N; > >> MASK = 2^N - 1; > >> PWM_output = 1; > >> ...
by mhuang
Wed Apr 20, 2011 3:49 pm
Forum: General / Misc
Topic: Delay time
Replies: 4
Views: 3671

Re: Delay time

Hi

I try to add the c code to make the delay in microseconds, the simulation is fine, but the compile to chip is failure. Please help me to solve it. I use the flowcode V3.




Huang Min
by mhuang
Wed Apr 20, 2011 3:20 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi

Thanks your reply, the I hav download website link files, whether it can modify the my enclosed c code ?

I think some files need add the c code icon, and the frequency is so slow.


Huang Min
by mhuang
Tue Apr 19, 2011 7:23 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi I just want to show you my idea, define the timer to counte the period time, the file also shows my design specificated. I think I can not use the flowchart to define the timer, it should be embeded with c code, for the flowcode v3, it is quite limited function for program, but it is only version...
by mhuang
Tue Apr 19, 2011 3:57 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi Ben I need control the period the duty cycle, and I need the define the timer and a frequency counter to count the period of time, the similar project for me, Can you give me your eamil address,because my pdf file is so big that don't upload the webpage, after you recieve the file please help me ...
by mhuang
Tue Apr 19, 2011 2:11 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi
I have download the flowcode v4 and run the example, but when it connects to oscilicope, the waveform always change in the same period time, otherwise, can you explain foe me how to control the duty cycle, thanks!

Huang min
by mhuang
Mon Apr 18, 2011 3:11 pm
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Re: Need help for PWM control

Hi Ben:

Thanks your reply, Can you give me a link or send me the Flowcode file by V3? In my computer, only have Version V3.
By the way, I just use the Low pass filter to generete the output depend on the duty cycle, so I can build the multi-channel in the PIC 16F88, many thanks.

Huang Min
by mhuang
Mon Apr 18, 2011 1:24 am
Forum: General / Misc
Topic: Need help for PWM control
Replies: 17
Views: 10128

Need help for PWM control

Hi This is my first time to post here,and also a fresh student to use the PWM in my project. For aim of my project, it needs build the circuit to generate the different voltage output, so I choose to use the Multi-channel PWM control by the PIC 16F88, in order to I am a little experience to program,...