Search found 374 matches

by jollybv
Tue Aug 17, 2021 3:15 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi
Thanks I'm going to play around with this and see what I can do I have checked around and many people are having problems with the grounding of the probe using the max6675. So I will see if I can find a solution somewhere out there.
by jollybv
Tue Aug 17, 2021 7:28 am
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi Martin I am not using any pull up resistors as all the documents say you don't need pull ups for SPI but I did put a 10 pull up in and it did not change anything so what I have done is put a 33pf cap to ground and it seems to work right. The only problem I'm having now is that if the K probe oute...
by jollybv
Sun Aug 15, 2021 8:32 am
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi Martin I still seem to have a slight timing problem and it is very weird. I have set the board to 16Mhz internal clock and the SPI prescale Fosc/16 the weird part is that if I connect the scope to the SCK on the max6675 it reads the correct temperature. When I take the scope probe off then I read...
by jollybv
Thu Jul 29, 2021 8:01 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

No need for more tricks UART working like a dream you a genius thanks again. Next is to get the spi to read a Max 6675 but I will deal with that next week.
by jollybv
Thu Jul 29, 2021 7:12 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Wow Martin
That worked I really appreciate your help, now to see if the SPI works in my other program on the board
by jollybv
Thu Jul 29, 2021 6:15 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Thanks Martin

Will wait to hear from you.
by jollybv
Thu Jul 29, 2021 5:55 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi Martin

I set the scope to 1 second per division and it give me just under 2s, but what I can understand is that the display on the board is displaying correct.
scope shot 1.png
scope shot 1.png (50.96 KiB) Viewed 11007 times
by jollybv
Thu Jul 29, 2021 4:04 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi Martin I don't know if I'm being stupid but I have been trying to get the UART to work I have connected a display to the hardware an that works but the UART refuses. It send data but garbage (øxxxøxøxøx€) and I'm almost sure it is something to do with timing. I have sent the day trying to get thi...
by jollybv
Thu Jul 29, 2021 11:16 am
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

Re: PIC18F45K22 Clock setup

Hi Martin

Thanks for the explanation it has helped a lot I learnt something new, I always thought setting the clock in the project options set everything up but now I know why I have always battled setting the clock speed.
by jollybv
Wed Jul 28, 2021 3:18 pm
Forum: Flowcode V6
Topic: PIC18F45K22 Clock setup
Replies: 19
Views: 11049

PIC18F45K22 Clock setup

Hi guys I'm a bit confused I have been trying to set the clock speed to run internally at 64 Mhz but with no luck I see in the data sheet • Precision 16 MHz Internal Oscillator Block: - Factory calibrated to ± 1% - Selectable frequencies, 31 kHz to 16 MHz - 64 MHz performance available using PLL – n...
by jollybv
Mon Aug 31, 2020 3:41 pm
Forum: Flowcode V7
Topic: Compiling Error
Replies: 3
Views: 4035

Re: Compiling Error

Hi Martin

Thanks for that i reduced the size of some of the String variables and problem sorted.
by jollybv
Mon Aug 31, 2020 1:12 pm
Forum: Flowcode V7
Topic: Compiling Error
Replies: 3
Views: 4035

Compiling Error

Hi Guys

I have a strange problem and not sure what to do when I compile i get an error which does not make sense see the picture below
Error.JPG
Error.JPG (30.26 KiB) Viewed 4035 times
If i disabel the text that has been circled below it compiles without error, what could be the problem?
Message.JPG
Message.JPG (24.23 KiB) Viewed 4035 times
by jollybv
Fri Jul 17, 2020 2:14 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Ben

Thanks for your reply that seems to have solved the problem I set it to Focs / 128, now I need to get the PID side of things working (tried buying a PID controller but with this Vuires cant get much here in SA)
by jollybv
Fri Jul 17, 2020 8:40 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Guys Im not sure if this is still part of the problem with the A/D component not working correctly. On A0 I have a voltage of 0.182 which im trying to display on the LCD screen. I'm using (get analog voltage) and then converting it to a string then printing to screen but what it displays is 0.078...
by jollybv
Fri Jul 03, 2020 8:47 am
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 5152

Re: PID Temperature Control

Hi Ben Thanks for the reply I'm getting somewhere the problem I'm having is the PWM output I have tried implementing the Scaledtemp but don't seem to know what I'm doing. Say I want to have a maximum temperature if 125 and temperature is 0 then the pwm must be 255 and when it gets closer to the 125 ...
by jollybv
Thu Jul 02, 2020 1:24 pm
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 5152

Re: PID Temperature Control

Hi Qmesar

Thanks for the reply my only problem is that I am not using a DsPIC so not sure if the DSP functions will work on a PIC18F47K40
by jollybv
Thu Jul 02, 2020 9:13 am
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 5152

PID Temperature Control

Hi Guys I'm trying to make a PID controller but am a bit lost I have made a test program using a PID example I found on the net with no luck I'm not sure where to insert the changing temperature that will then change the duty cycle of the PWM can someone please explain what I need to do. PIDTest.fcfx
by jollybv
Tue Jun 30, 2020 4:49 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 3551

Re: Percentage

Thanks Guys I've got it working
by jollybv
Tue Jun 30, 2020 3:59 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 3551

Percentage

Hi Guys I'm trying to display percentage on my LCD display the formula I'm using is Percentage = ((DutyCycle / 255) * 100) what happens it will display 100% (255 / 255) * 100 but will not display any other value eg Percentage = (( 253 / 255) * 100 ) which should give me 99.21 % except it gives me 0%...
by jollybv
Thu Jun 04, 2020 2:05 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Martin

I have given it a try and it is now working Thanks so much :D
by jollybv
Thu Jun 04, 2020 1:50 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Martin

Sorry for responding so late been out the whole day, Thanks for your help I will give it a try and let you know
by jollybv
Thu Jun 04, 2020 7:22 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Guys

As the PWM Component is not working and I'm waiting for Ben to have a look at it, does anyone know how I can make a PWM using a timer interrupt?
by jollybv
Tue Jun 02, 2020 3:40 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi yes have remapped with no success
and did set the duty cycle to 15 but alas no luck,
by jollybv
Tue Jun 02, 2020 3:08 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Thanks, Martin but ist still does not work think there must be something wrong with the PWM component
by jollybv
Tue Jun 02, 2020 2:31 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 9341

Re: PWM PIC18F47K40

Hi Martin I'm a bit lost now The PWM will work at the correct frequency if Timer2 interrupt Prescale Rate is set to the required PWM Prescale. Timer 2 interrupt Rollover Value is set to the required PWM period. The timer 2 interrupt can be enabled, then disabled straight away. I have set the rollove...