When i compile the it give a warning message "1705 pwm test.c: 226: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)
"
The PWM have no output signal at all. The code is very simple, just enable PWM and assign duty cycle 125 for testing and yet it have still no output
Thanks in advance.
PIC16F1705 PWM not working for all channel
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC16F1705 PWM not working for all channel
Hi
Have tried a one-second flasher to make sure your hardware is running at the correct speed?
Can you also post your flowchart and generated C code from your project folder?
Have tried a one-second flasher to make sure your hardware is running at the correct speed?
Can you also post your flowchart and generated C code from your project folder?
Martin
Re: PIC16F1705 PWM not working for all channel
Hi Mededec35,
Thanks for the reply.
We have a code Pic16f1825 previously, however this chip is shortage in singapore.
So we switch to PIC15F1705 but the PWM do not give us any output.
I will have make a short code just to test the PWM output which give the same error.
Please download the file from this link
PIC 1705 PWM Testing:
http://gofile.me/2zi03/CZskpmqYK
Thanks in advance
Thanks for the reply.
We have a code Pic16f1825 previously, however this chip is shortage in singapore.
So we switch to PIC15F1705 but the PWM do not give us any output.
I will have make a short code just to test the PWM output which give the same error.
Please download the file from this link
PIC 1705 PWM Testing:
http://gofile.me/2zi03/CZskpmqYK
Thanks in advance
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC16F1705 PWM not working for all channel
The only things I have noticed it PLL and low voltage programming are enabled.
You have not stated if tried the one-second flasher?
Was the timing spot on?
You have not stated if tried the one-second flasher?
Was the timing spot on?
I did not get any errors or warnings, neither did you looking at your
Code: Select all
PIC16F1705 PWM Testing.msg.txt
Martin
Re: PIC16F1705 PWM not working for all channel
Hi thanks for the quick reply.
We have tested the 1 sec flash, the flash is spot on.
I had attached a video in the previous link which shows 1 red led and 2 yellow leds.
The red LED is the 1 second flasher while the Yellow led is connected PWM channel 1 and channel 2.
From the video, you can see there's no output to both Yellow led.
Thanks!
We have tested the 1 sec flash, the flash is spot on.
I had attached a video in the previous link which shows 1 red led and 2 yellow leds.
The red LED is the 1 second flasher while the Yellow led is connected PWM channel 1 and channel 2.
From the video, you can see there's no output to both Yellow led.
Thanks!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC16F1705 PWM not working for all channel
Hello,
Thanks for letting us know I've made some changes to the definition file and pushed them to the update system.
Let us know if this makes a difference for you.
Thanks for letting us know I've made some changes to the definition file and pushed them to the update system.
Let us know if this makes a difference for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: PIC16F1705 PWM not working for all channel
Hi Ben J,
Thanks for the update. it worked for us!.
Thanks very much
Thanks for the update. it worked for us!.
Thanks very much