Search found 18 matches

by msahin1976
Mon Sep 09, 2019 1:56 pm
Forum: Flowcode V6
Topic: PWM Timer And CANBus PIN
Replies: 3
Views: 3627

Re: PWM Timer And CANBus PIN

Hi Benj, I was able to select TMR4 for PWM by writing to the registers. I have written down codes for those who interested. " #define TMR4PRESCALE 1 pr4 = (32000000 / (5000 x 4 x TMR4 PRESCALE)) -1; ccptmrs = ccptmrs | 0b00000010; ccp4con = ccp4con | 0b00001100; t4con = t4con | 0b00000101; trisc = t...
by msahin1976
Mon Sep 09, 2019 7:27 am
Forum: Flowcode V6
Topic: PWM Timer And CANBus PIN
Replies: 3
Views: 3627

Re: PWM Timer And CANBus PIN

Hi Benj,
I checked Flowcode 8 for this issue as you told me. But it has the same problem.

Also, I prefer Flowcode 6 which should be already doing these stuff.
by msahin1976
Thu Sep 05, 2019 9:28 am
Forum: Flowcode V6
Topic: PWM Timer And CANBus PIN
Replies: 3
Views: 3627

PWM Timer And CANBus PIN

Hello Everyone,
I'm using PIC18F45K80 and PIC18F46K80 at my projects and I face a problem when tried to adjust at FlowCode 6.

I can't select Timer 4 at PIC18F46K80 microcontroller for PWM.

I can't select second CANBus pins (CANTX C6, CANRX C7) at PIC18F46K80 and PIC18F45K80.
by msahin1976
Thu Sep 27, 2018 7:26 am
Forum: Flowcode V6
Topic: CAN BAUD RATE
Replies: 2
Views: 2819

Re: CAN BAUD RATE

Dear Benj, Thank you for your answer. I tried to change "BRGCON" register to set baud rate. The oscillator is 20 MHz. According to this clock, I set the register. The problem was writing to this register directly doesn't work. Later I found another subject CAN baud rate, and I changed the C code lik...
by msahin1976
Wed Sep 26, 2018 8:47 am
Forum: Flowcode V6
Topic: CAN BAUD RATE
Replies: 2
Views: 2819

CAN BAUD RATE

Hello,
I need to set can bus baud rate to 50kbps. I tried to do by writing C code, but nothing happened. Can anyone tell me how to do it?
by msahin1976
Mon Jul 23, 2018 11:56 am
Forum: Flowcode V6
Topic: PIC18F45K80 RC4 I/O
Replies: 5
Views: 4141

Re: PIC18F45K80 RC4 I/O

Dear Benj,
It's our own board and I checked the signals directly on the MCU pin by an oscilloscope.

Also, I checked if there is any short circuit or not and found nothing. I 'll check again.
by msahin1976
Mon Jul 23, 2018 7:34 am
Forum: Flowcode V6
Topic: PIC18F45K80 RC4 I/O
Replies: 5
Views: 4141

Re: PIC18F45K80 RC4 I/O

Hi Martin,
Actually, this project is going on and the other parts of the project are working. I test most of the other digital IOs' and they are working properly.
I didn't set a watchdog and the external oscillator is working properly.

You can see a copy of this project at the attachment.
by msahin1976
Fri Jul 20, 2018 2:14 pm
Forum: Flowcode V6
Topic: PIC18F45K80 RC4 I/O
Replies: 5
Views: 4141

PIC18F45K80 RC4 I/O

I'm using FlowCode version 6. I can't control RC4 output. It doesn't work as digital I/O.

This pin is dedicated to I2C and SPI communication, but I use neither of them.
by msahin1976
Mon May 21, 2018 12:33 pm
Forum: Flowcode V6
Topic: BOOSTC compiler problem
Replies: 1
Views: 2263

BOOSTC compiler problem

Hello,
We changed our computer with a new one and install flowcode 6 and activate it. First we met with compatibility problem but we fixed it.

Now when I tried to compile, it gives an error. I attached the message. What should I do?
by msahin1976
Wed Dec 06, 2017 1:26 pm
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

Hi Benj. It is working. Thank you for your help. :D
by msahin1976
Wed Dec 06, 2017 12:20 pm
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

After your message I totally removed the file and it is doing the same thing.
by msahin1976
Wed Dec 06, 2017 12:01 pm
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

Nothing changed. Flowcode v6 is giving the same error. Also, I checked Flowcode 6 version.

"Your current version is: 6.1.4
Your version of Flowcode6 is up to date."
by msahin1976
Wed Dec 06, 2017 11:21 am
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

LeighM wrote:Hi,
Could you post your Flowcode project file (*.fcfx)
And just confirm that you are using Flowcode v6?
Thanks
Yes, we are using Flowcode v6. I attached the project file. There are two PWM output in this project.
by msahin1976
Wed Dec 06, 2017 8:28 am
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

Dear Benj, Thank you for your fast answer. Now it is allowing to select the other timers to use for PWM. But now when I try to compile, it is showing an error as "Illegal redefinition of symbol: MX_PWM_PERIOD". It doesn't allow me to use it. Hello Benj, how are you? I'm waiting for this issue. Woul...
by msahin1976
Mon Dec 04, 2017 7:28 am
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

Re: PIC18F45K80 PWM

Dear Benj,
Thank you for your fast answer. Now it is allowing to select the other timers to use for PWM. But now when I try to compile, it is showing an error as "Illegal redefinition of symbol: MX_PWM_PERIOD". It doesn't allow me to use it.
by msahin1976
Fri Dec 01, 2017 12:33 pm
Forum: Flowcode V6
Topic: PIC18F45K80 PWM
Replies: 12
Views: 5754

PIC18F45K80 PWM

I need to use two PWM output in PIC18F45K80 at the same time. In the datasheet it seems that I can use Timer 2 or Timer4 as PWM timer. So I can make it. But Flowcode only allows Timer 2. I can’t use the second pwm output. Is this normal or can I fix it?
by msahin1976
Fri Feb 24, 2017 5:41 pm
Forum: Flowcode V6
Topic: TMR2 PROBLEM
Replies: 2
Views: 4039

Re: TMR2 PROBLEM

I allready fix the problem. Sorry to disturb you.
by msahin1976
Mon Feb 20, 2017 9:40 am
Forum: Flowcode V6
Topic: TMR2 PROBLEM
Replies: 2
Views: 4039

TMR2 PROBLEM

High, I've a problem with the PWM module in my project. I'm using FlowCode 6, and I it seems that I can only use TMR2 for PWM output. Also I use an interrupt based on timer (2ms). This one also want to use TMR2. When I select TMR4 or any other timer it doesn't react. The micrcontroller is PIC18F45K8...