PIC16F1705 PWM not working for all channel

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
tcm1986
Flowcode V4 User
Posts: 6
Joined: Sat Sep 05, 2009 7:16 pm
Been thanked: 1 time
Contact:

PIC16F1705 PWM not working for all channel

Post by tcm1986 »

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.

medelec35
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

Post by medelec35 »

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?
Martin

tcm1986
Flowcode V4 User
Posts: 6
Joined: Sat Sep 05, 2009 7:16 pm
Been thanked: 1 time
Contact:

Re: PIC16F1705 PWM not working for all channel

Post by tcm1986 »

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

medelec35
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

Post by medelec35 »

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?
tcm1986 wrote:
Sun Oct 31, 2021 12:02 pm
I will have make a short code just to test the PWM output which give the same error.
I did not get any errors or warnings, neither did you looking at your

Code: Select all

PIC16F1705 PWM Testing.msg.txt
Martin

tcm1986
Flowcode V4 User
Posts: 6
Joined: Sat Sep 05, 2009 7:16 pm
Been thanked: 1 time
Contact:

Re: PIC16F1705 PWM not working for all channel

Post by tcm1986 »

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!

User avatar
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

Post by Benj »

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.

tcm1986
Flowcode V4 User
Posts: 6
Joined: Sat Sep 05, 2009 7:16 pm
Been thanked: 1 time
Contact:

Re: PIC16F1705 PWM not working for all channel

Post by tcm1986 »

Hi Ben J,

Thanks for the update. it worked for us!.

Thanks very much

Post Reply