Page 1 of 1

PIC32 Bit Timings and Peripheral Issues

Posted: Thu May 18, 2017 12:19 pm
by Benj

Right we've had a few reports of delays and other peripherals not quite acting correctly on the PIC32 hardware.

I have purchased a range of chips and have been playing with the various reports.

If we could try and get all the problems covered here in this topic then hopefully we can get them all fixed and working.

Ok so I have started with the MX range of chips.

Here are my config settings and performing a 1 second flasher program I get 1 second delays.

PIC32Config.jpg (120.66 KiB) Viewed 2484 times

Firstly here is a new UART CAL which fixes the baud rate problem for the MX family when using a divide by 1 peripheral clock divisor.

(22.97 KiB) Downloaded 97 times

At the moment I am investigating the timer interrupts as there are reports that these are currently generating incorrect frequencies.

Re: PIC32 Bit Timings and Peripheral Issues

Posted: Thu May 18, 2017 12:53 pm
by Benj
Ok with the attached updated definitions all of the timer interrupt frequency issues should now be resolved in the MX family.

Simply extract the attached archive into your "Flowcode 7/FCD/PIC32" folder and restart Flowcode.
(715.82 KiB) Downloaded 99 times

I'm investigating other features now such as the I2C, PWM and SPI clock rates but if you're aware of another PIC32 issue then please let me know and I will investigate for you.

Edit: PWM looks ok on hardware using the latest definition files though the simulation of the duty looks wrong.

This latest PWM component should fix the simulation duty issue.

(7.98 KiB) Downloaded 86 times