Search found 1793 matches

by LeighM
Tue Dec 03, 2019 1:06 pm
Forum: 32-Bit ARM
Topic: STM32 ADC missing ports
Replies: 2
Views: 63

Re: STM32 ADC missing ports

This is turning out to be quite tricky.
It needs some changes in the way Flowcode handles the ADC component, which has historically handled only one converter.
So it might be a while before I get this implemented.
by LeighM
Tue Dec 03, 2019 1:01 pm
Forum: 32-Bit ARM
Topic: STM32 ADC Interrupt?
Replies: 1
Views: 41

Re: STM32 ADC Interrupt?

I’ve done an experimental update to the F303RE FCD, if you would like to try it out. I’ve not had the time to test it, but it might work and help you :) The ADC value should get passed as the parameter to the macro created for the interrupt. I’ve only implemented ADC1 for initial testing. Just creat...
by LeighM
Mon Dec 02, 2019 4:31 pm
Forum: Flowcode V8
Topic: error compiling on pic18f26k22
Replies: 19
Views: 305

Re: error compiling on pic18f26k22

Hi,
Until we get this fixed, please roll back to previous version ...

roll-back.png
roll-back.png (13.59 KiB) Viewed 93 times
by LeighM
Mon Dec 02, 2019 8:38 am
Forum: 32-Bit ARM
Topic: STM32 ADC missing ports
Replies: 2
Views: 63

Re: STM32 ADC missing ports

Thanks!
I will check it out...
by LeighM
Fri Nov 29, 2019 10:38 am
Forum: 32-Bit ARM
Topic: STM32 PWM Disable ??
Replies: 5
Views: 150

Re: STM32 PWM Disable ??

Here is an updated CAL file with PWM disable function (for Flowcode V7) ...
by LeighM
Fri Nov 29, 2019 10:16 am
Forum: 32-Bit ARM
Topic: STM32 PWM Disable ??
Replies: 5
Views: 150

Re: STM32 PWM Disable ??

Thanks.
I'm just looking at this now.
btw. Do you get a compile error with the PWM?
What device are you using? F303?
by LeighM
Fri Nov 29, 2019 9:24 am
Forum: Flowcode V8
Topic: XC16 compiler setting. help me!!
Replies: 8
Views: 177

Re: XC16 compiler setting. help me!!

Thanks QMESAR
Yes, I have same as you.
Looks like Ben might have made a typo with his copy'n'paste,
(we have a lot on at the moment, interesting new products)
by LeighM
Thu Nov 28, 2019 9:59 am
Forum: 32-Bit ARM
Topic: STM32 PWM Disable ??
Replies: 5
Views: 150

Re: STM32 PWM Disable ??

Thanks, I will have a look into it
by LeighM
Wed Nov 27, 2019 1:44 pm
Forum: 32-Bit ARM
Topic: STM32 Port Interrupt
Replies: 6
Views: 119

Re: STM32 Port Interrupt

Could you please try replacing this in the FCD directory ...
by LeighM
Wed Nov 27, 2019 11:00 am
Forum: 32-Bit ARM
Topic: STM32 Port Interrupt
Replies: 6
Views: 119

Re: STM32 Port Interrupt

Thanks, I will look into it ...
by LeighM
Wed Nov 27, 2019 9:40 am
Forum: 32-Bit ARM
Topic: STM32 Port Interrupt
Replies: 6
Views: 119

Re: STM32 Port Interrupt

Hi,
Which particular device are you using?
by LeighM
Tue Nov 26, 2019 11:48 am
Forum: Flowcode V8
Topic: Can't get correct pwm speed going on PIC12f1501
Replies: 8
Views: 140

Re: Can't get correct pwm speed going on PIC12f1501

Looks like it's resetting, check watchdog timer setting
by LeighM
Tue Nov 26, 2019 11:34 am
Forum: Flowcode V8
Topic: RPI and long distance radio
Replies: 22
Views: 509

Re: RPI and long distance radio

Thanks guys, this is an interesting read. These real life experiences are valuable.
Last time I attempted RF data comms was within castles, no chance! :lol:
Ps. Drilling holes through walls for cables ain’t allowed :roll:
by LeighM
Tue Nov 26, 2019 11:23 am
Forum: Flowcode V8
Topic: Can't get correct pwm speed going on PIC12f1501
Replies: 8
Views: 140

Re: Can't get correct pwm speed going on PIC12f1501

Ah, right, so might deleted post applies :oops:
And as QMESAR post, the PWM max prescaler is divide by 16, and with an 8 bit counter you cannot get below that 1K.
Yes, you could consider a timer interrupt and software based counter to generate your lower frequency
by LeighM
Tue Nov 26, 2019 11:08 am
Forum: Flowcode V8
Topic: Can't get correct pwm speed going on PIC12f1501
Replies: 8
Views: 140

Re: Can't get correct pwm speed going on PIC12f1501

Sorry, I deleted my previous post because I realised that it should be possible to get a PWM in that range when the Int Osc is down at 31KHz,
which I now guess you are doing based on another post.
What is your actual result on hardware?
by LeighM
Mon Nov 25, 2019 3:58 pm
Forum: Flowcode V8
Topic: AD on AN3 and AN4 not working PIC18F87J50
Replies: 6
Views: 135

Re: AD on AN3 and AN4 not working PIC18F87J50

Thanks for the contribution, I have pushed this into our repo, Ben will process this into the auto update system in due course
by LeighM
Mon Nov 25, 2019 11:17 am
Forum: Flowcode V8
Topic: AD on AN3 and AN4 not working PIC18F87J50
Replies: 6
Views: 135

Re: AD on AN3 and AN4 not working PIC18F87J50

Could you please try the attached, to go into
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC
Thanks
by LeighM
Mon Nov 25, 2019 9:26 am
Forum: Flowcode V8
Topic: error compiling on pic18f26k22
Replies: 19
Views: 305

Re: error compiling on pic18f26k22

Did you put the file in ...
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC
The folder is usually hidden
And re-start Flowcode?
by LeighM
Mon Nov 25, 2019 9:15 am
Forum: Flowcode V8
Topic: error compiling on pic18f26k22
Replies: 19
Views: 305

Re: error compiling on pic18f26k22

Ah, looks like a recent update with a workaround for the missing TRISE issue has been applied to too many devices. Some Microchip headers have the definition, others don't :roll: Until we get this fixed roll back the last update to 18F26K22.fcdx Or drop the attached into … C:\ProgramData\MatrixTSL\F...
by LeighM
Fri Nov 22, 2019 9:52 am
Forum: 32-Bit ARM
Topic: STM32 ADC settings?
Replies: 2
Views: 108

Re: STM32 ADC settings?

The “Number of samples” is the number samples that are taken in a loop to accumulate and return an average value. The DelayUs parameter of the GetAverage functions is actually the sample time in ADC clock cycles. It is the equivalent of the “Acquisition Time” for the single sample read functions, wh...
by LeighM
Tue Nov 19, 2019 12:59 pm
Forum: Flowcode V7
Topic: PIC18f2553 RE3/Mclr
Replies: 9
Views: 385

Re: PIC18f2553 RE3/Mclr

I think (maybe) that the project option config which disables mclr in leu for Re3 is not working

I've checked the FCD against the device datasheet and it looks OK, I'll see if Ben has a view on this one
by LeighM
Mon Nov 18, 2019 3:01 pm
Forum: Flowcode V7
Topic: PIC18f2553 RE3/Mclr
Replies: 9
Views: 385

Re: PIC18f2553 RE3/Mclr

The problem is that with RE3 being only input there is no TRISE for this device, so our generic port control throws the error. This is a similar issue https://www.matrixtsl.com/mmforums/viewtopic.php?f=76&t=20252 A work-around might be to try adding this code into the (Build->Project Options) Su...
by LeighM
Wed Nov 06, 2019 9:01 am
Forum: Flowcode V8
Topic: MAX31864 SPI
Replies: 16
Views: 463

Re: MAX31864 SPI

Hi, From the datasheet page 18 it shows how to write to a register with a two byte transaction. So set the register address, e.g. the Config address of 0x80, into DataOut[0] = 0x80 Set the value into DataOut[1] Then set Numbytes to 2 and call TransactionArray() The fact that you sometimes get 255 an...
by LeighM
Tue Nov 05, 2019 4:13 pm
Forum: Flowcode V8
Topic: MAX31864 SPI
Replies: 16
Views: 463

Re: MAX31864 SPI

Might be worth reading the "Fault Status" register (0x07)
and setting up the "Configuration" register (0x80)?
by LeighM
Tue Nov 05, 2019 12:32 pm
Forum: Flowcode V8
Topic: MAX31864 SPI
Replies: 16
Views: 463

Re: MAX31864 SPI

Try changing the SPI properties...
"Use Auto CS" to "No"
"Clock Polarity" to "Idle High"