Hello
small error with the PIC32MZ2048EFH100 200Mhz Flip Clickboard PIC32MZ
Loop with second cycle runs at second cycle
LED one sec on one sec off.
The second LED should do the same with a 10msec cycle in conjunction with a counter up to 100. But flashes faster
I have output the count value via a RS232 and it was the same, much too fast.
The build rate was correct.
With kind regards
SpeedPic32
small clock error PIC32MZ2048EFH100
-
- Posts: 256
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: small clock error PIC32MZ2048EFH100
Hello,
What sort of speed is the second LED flashing at? Is it twice as fast or something totally different.
The register setup looks to be correct for the rate to be correct. I haven't spotted a problem so far anyway.
What sort of speed is the second LED flashing at? Is it twice as fast or something totally different.
The register setup looks to be correct for the rate to be correct. I haven't spotted a problem so far anyway.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 256
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: small clock error PIC32MZ2048EFH100
the LED that is controlled via the interrupt clocks twice as fast
mfg SpeedPic32
mfg SpeedPic32
-
- Posts: 256
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: small clock error PIC32MZ2048EFH100
Hello,
It looks like we are expecting the interrupt clock to be the same as the main core clock and a previous mod I did to change the UART/SPI clocks to be correct has effected the interrupt clock too.
For now please can you set the rate to be 2X what it should be and I'll see if I can narrow down the range of effected devices here to provide a fix that doesn't cause more knock on problems with other devices.
It looks like we are expecting the interrupt clock to be the same as the main core clock and a previous mod I did to change the UART/SPI clocks to be correct has effected the interrupt clock too.
For now please can you set the rate to be 2X what it should be and I'll see if I can narrow down the range of effected devices here to provide a fix that doesn't cause more knock on problems with other devices.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: small clock error PIC32MZ2048EFH100
Hello,
Do you want to give this modified definition file a go. It looks like it should be calculating the timer frequency correctly now but we might have to double check that delays have not become effected by the change.
The file needs to be placed here and then Flowcode will need restarting if you have it open.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC32
Do you want to give this modified definition file a go. It looks like it should be calculating the timer frequency correctly now but we might have to double check that delays have not become effected by the change.
The file needs to be placed here and then Flowcode will need restarting if you have it open.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC32
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 256
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: small clock error PIC32MZ2048EFH100
hello,
unfortunately there has been no change
With kind regards
SpeedPic32
unfortunately there has been no change
With kind regards
SpeedPic32
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: small clock error PIC32MZ2048EFH100
Hello,
The change should be that the interrupt enable icon now shows 200Hz instead of the previous 100Hz it was showing before. So the calculated frequency should now match the hardware frequency.
The change should be that the interrupt enable icon now shows 200Hz instead of the previous 100Hz it was showing before. So the calculated frequency should now match the hardware frequency.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 256
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: small clock error PIC32MZ2048EFH100
Hello,
the LEDs flash differently even in the simulation
With kind regards SpeedPic32
the LEDs flash differently even in the simulation
With kind regards SpeedPic32
-
- Posts: 256
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: small clock error PIC32MZ2048EFH100
Hello,
I recompiled it with your fcdx file.
In the interrupt settings, I set the frequency to 100.00 Hz. This worked
I have recompiled this and it works. The LEDs now flash the same way
at some point I got the message that an update is available.
I have imported this and it also runs. Thank you
With kind regards SpeedPic32
I recompiled it with your fcdx file.
In the interrupt settings, I set the frequency to 100.00 Hz. This worked
I have recompiled this and it works. The LEDs now flash the same way
at some point I got the message that an update is available.
I have imported this and it also runs. Thank you
With kind regards SpeedPic32