Microchip questions for you all.
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Microchip questions for you all.
Hi all. I have a project that I want to work on and I had been using the St arms.. FLowcode has some shortcomings with the ST chips so I wanted to see what Pic's you all are working with.
What 24 / 32 bit pics are you guys using? What do you use to program them pickit3? or something else..
Any other Pic info that is useful?
Thanks,
Chad
What 24 / 32 bit pics are you guys using? What do you use to program them pickit3? or something else..
Any other Pic info that is useful?
Thanks,
Chad
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
I am looking at Pic 32MZ0512EFE064. Does any one have any experience with this family and flowcode?
Matrix says it's supported. Do the peripherals and dsp stuff work?
Chad
Matrix says it's supported. Do the peripherals and dsp stuff work?
Chad
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Microchip questions for you all.
Hi Chad,
The PICkit 3 or 4 is used to program most if not all PIC devices and can be integrated into Flowcode so the complie to chip uses this.
We often use the dsPIC33EP256MU806 device family in house and so this should be fairly bullet proof. The PIC32 devices and ST ARM devices are the two newest families to Flowcode but we do try and jump on issues as they arrise.
If you do find a problem with a specific device then let us know and we can investigate.
The PICkit 3 or 4 is used to program most if not all PIC devices and can be integrated into Flowcode so the complie to chip uses this.
We often use the dsPIC33EP256MU806 device family in house and so this should be fairly bullet proof. The PIC32 devices and ST ARM devices are the two newest families to Flowcode but we do try and jump on issues as they arrise.
If you do find a problem with a specific device then let us know and we can investigate.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
Hi Ben,
Thanks for the info. I ordered the PiCkit 4 and will get some chips to play with...
chad
Thanks for the info. I ordered the PiCkit 4 and will get some chips to play with...
chad
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Microchip questions for you all.
Hi Chad
I've had a great experience with PIC32MZ2048EFG100 and Flowcode. For the evaluation you will find many cheap demoboards, very well documented. Some even add Eagle or Altium files. Also to develop your own board is easy. You have so many PIC32MZxxxx with more or less pins available.
Some more infos here
http://www.matrixtsl.com/mmforums/viewt ... 76&t=21332
regards
Stefan
I've had a great experience with PIC32MZ2048EFG100 and Flowcode. For the evaluation you will find many cheap demoboards, very well documented. Some even add Eagle or Altium files. Also to develop your own board is easy. You have so many PIC32MZxxxx with more or less pins available.
Some more infos here
http://www.matrixtsl.com/mmforums/viewt ... 76&t=21332
regards
Stefan
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
HI.
For your reference you can also use the Mplab Harmony SW framework to configure and setup the PIC32 and use the normal C code in FC
https://www.microchip.com/mplab/mplab-harmony
For your reference you can also use the Mplab Harmony SW framework to configure and setup the PIC32 and use the normal C code in FC
https://www.microchip.com/mplab/mplab-harmony
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
That's great guys, Keep it coming! It's been a decade since I have touched a pic.
Chad
Chad
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Something else
if you go the the device page https://www.microchip.com/wwwproducts/e ... 2048EFG100 under documents you will find all related documents / Application notes and code examples a useful resource all put in one place
if you go the the device page https://www.microchip.com/wwwproducts/e ... 2048EFG100 under documents you will find all related documents / Application notes and code examples a useful resource all put in one place
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
It's nice that they dump it all right there.. I am also looking at the smaller PIC32MX174F256B for little things. I am glad to hear that they work well with flowcode.. What oscillator frequencies are people using?
Chad
Chad
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
One more question... Do any of these have any program writable registers or do I have to add some external flash i2c/spi to store changeable variables?
I am still going over the datasheets but the answer hasn't jumped out at me yet... (eeprom)
thanks,
Chad
I am still going over the datasheets but the answer hasn't jumped out at me yet... (eeprom)
thanks,
Chad
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Hi
on the MX devices most people use the 80 MHz and the MZ devices 200MHZ
you can write to flash but here starts the limits with FC, you have to do that by C code ,I did not need that up to now may be Stephan knows more about this he played quite a bit with FC and PIC32MZ - adding SPI and I2C eeprom is easy as FC supports that directly
Just as an info any special features of these chips is not supported by FC we do this by using C calls and do our own config and drivers
on the MX devices most people use the 80 MHz and the MZ devices 200MHZ
you can write to flash but here starts the limits with FC, you have to do that by C code ,I did not need that up to now may be Stephan knows more about this he played quite a bit with FC and PIC32MZ - adding SPI and I2C eeprom is easy as FC supports that directly
Just as an info any special features of these chips is not supported by FC we do this by using C calls and do our own config and drivers
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
Hi Guys,
Ok so after fighting with the pk4 it sometimes shows up in IPE and I can see the chip on my protoboard.
Ok so it seems to be programing ok now.
Also I have a 12mhz oscillator How should I be setting the clock stuff?? Sorry new chip, still learning..
Does any one have a blank program for the mz with the goods set?
I made a little program that just toddles a bit in a while loop and It is toggling at 144khz. I played with some of the multiplier settings and it doesn't seem to change the freq. I could use some guidance on config stuff..
**edit:
Qmesar: thanks for the info it is starting to click a little. I have a hello world on a little i2c display working now.. YAY just not sure what I am missing in the config.
Thnaks!!
chad
Ok so after fighting with the pk4 it sometimes shows up in IPE and I can see the chip on my protoboard.
Ok so it seems to be programing ok now.
Also I have a 12mhz oscillator How should I be setting the clock stuff?? Sorry new chip, still learning..
Does any one have a blank program for the mz with the goods set?
I made a little program that just toddles a bit in a while loop and It is toggling at 144khz. I played with some of the multiplier settings and it doesn't seem to change the freq. I could use some guidance on config stuff..
**edit:
Qmesar: thanks for the info it is starting to click a little. I have a hello world on a little i2c display working now.. YAY just not sure what I am missing in the config.
Thnaks!!
chad
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Microchip questions for you all.
Hi Chad
Which of this PIC are you using now?
PIC32MX174F256B (80Mhz)
PIC32MZ0512EFE064 (200Mhz)
Are you using just the PIC or do you have a complet demoboard?
regards
Stefan
Which of this PIC are you using now?
PIC32MX174F256B (80Mhz)
PIC32MZ0512EFE064 (200Mhz)
Are you using just the PIC or do you have a complet demoboard?
regards
Stefan
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
Hi Stefan,
I am using the PIC32MZ0512EFE064 (200Mhz). I used a tqfp breakout board board and soldered it up, so I don't have a real demo board.
It is kind of working, but I am new to the chip and programmer and config bits so I am going through all of the learning curve.
I have a PK4, and I am using a 12mhz oscillator. I had a hard time getting the programmer to like my computer. It would show in windows but FC or X IPE wouldn't see it. I played the usb port shuffle game and it is mostly working now. I am able to get FC to toggle a bit and have got a i2c display to print a hello world and mostly successfully program it.
My big question mark is the clock configuration. I have been reading the clock flow chart from the datasheet but I am too new to it and it hasn't sunk in yet. I am just trying to get the chip clocked up to ~200 and stable then I can get back into FC and start in on my project.
Thanks,
Chad
It's almost 3 am here and I am going to head to bed... lol
I am using the PIC32MZ0512EFE064 (200Mhz). I used a tqfp breakout board board and soldered it up, so I don't have a real demo board.
It is kind of working, but I am new to the chip and programmer and config bits so I am going through all of the learning curve.
I have a PK4, and I am using a 12mhz oscillator. I had a hard time getting the programmer to like my computer. It would show in windows but FC or X IPE wouldn't see it. I played the usb port shuffle game and it is mostly working now. I am able to get FC to toggle a bit and have got a i2c display to print a hello world and mostly successfully program it.
My big question mark is the clock configuration. I have been reading the clock flow chart from the datasheet but I am too new to it and it hasn't sunk in yet. I am just trying to get the chip clocked up to ~200 and stable then I can get back into FC and start in on my project.
Thanks,
Chad
It's almost 3 am here and I am going to head to bed... lol
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Microchip questions for you all.
Hi Chad
At first... there is a wrong config from FC8 for the PIC32MZ0512EFE064.
The max clock is 200MHz and not 80Mhz.
Maybe Ben can fix it....
You are using a 12 Mhz Osci external. You can use MPLAB IDE with Harmomy to generate the Fowcode-Project Options- configure- parameter.
It looks like the pictures. Do you know that the PIC has a built-in 24 Mhz osci that you can use?
regards
Stefan
At first... there is a wrong config from FC8 for the PIC32MZ0512EFE064.
The max clock is 200MHz and not 80Mhz.
Maybe Ben can fix it....
You are using a 12 Mhz Osci external. You can use MPLAB IDE with Harmomy to generate the Fowcode-Project Options- configure- parameter.
It looks like the pictures. Do you know that the PIC has a built-in 24 Mhz osci that you can use?
regards
Stefan
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Stefan thanks for the nice post
@chad if you are not aware Harmony is not installed if you install MPLABX, you need to go to the Harmony page on MC web page and do it manually the configuration addin I am not 100% sure but I think you have to installed that also once you have installed Harmony worth while checking this out
@chad if you are not aware Harmony is not installed if you install MPLABX, you need to go to the Harmony page on MC web page and do it manually the configuration addin I am not 100% sure but I think you have to installed that also once you have installed Harmony worth while checking this out
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Microchip questions for you all.
Hello,
Thanks for the spot, done!At first... there is a wrong config from FC8 for the PIC32MZ0512EFE064.
The max clock is 200MHz and not 80Mhz.
Maybe Ben can fix it....
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
Thanks, guys great information!
Stefan, I Knew it had an internal oscillator, I didn't know it was 24mhz. I was always under the impression that internal oscillators weren't very accurate. If it is good enough for usb's and and serials then that would be great! One less thing to put on the board!
I did install harmony and play with it a little. I hadn't found the OCI config stuff yet but it will look for it!
Thanks! Keep the good info coming!
Chad
Stefan, I Knew it had an internal oscillator, I didn't know it was 24mhz. I was always under the impression that internal oscillators weren't very accurate. If it is good enough for usb's and and serials then that would be great! One less thing to put on the board!
I did install harmony and play with it a little. I hadn't found the OCI config stuff yet but it will look for it!
Thanks! Keep the good info coming!
Chad
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
The MC internal Fast oscillators are very accurate !I didn't know it was 24mhz. I was always under the impression that internal oscillators weren't very accurate
never used the PIC32MZ Internal OSC but on the P16/18 they are very accurate I am using Internal with Serial and USB on a PIC16F1455
they actually have a OSCTUNE register that allows you to calibrate it but in my experience the standard OSCCON setting is accurate enough by far
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
That is really interesting!. I have my chip running with the internal oscillator right now.
I have been playing with the harmony configurator. I used it to help me figure out the clock configs then just changed them in the configuration in FC. I haven't figured out what files it generates need to get imported into fc and where to stick them yet, but slowly things are coming into place.
Thanks again guys for helping get a newbie up to speed. I bought fc almost a year ago for my st arms and had to give up because of issues. Switched to pic32 and hopefully they can get things working on them. I have yet to complete a project with fc.
chad
I have been playing with the harmony configurator. I used it to help me figure out the clock configs then just changed them in the configuration in FC. I haven't figured out what files it generates need to get imported into fc and where to stick them yet, but slowly things are coming into place.
Thanks again guys for helping get a newbie up to speed. I bought fc almost a year ago for my st arms and had to give up because of issues. Switched to pic32 and hopefully they can get things working on them. I have yet to complete a project with fc.
chad
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Hi chad,
I think the chances for you to get a project done in FC with a PIC32 is quite good as there are more support from users and Ben on PIC32
I am quite sure we will get you to do a project (Hopefully )
good luck the PIC32 is not the PIC you worked with 10 years ago
I think the chances for you to get a project done in FC with a PIC32 is quite good as there are more support from users and Ben on PIC32
I am quite sure we will get you to do a project (Hopefully )
good luck the PIC32 is not the PIC you worked with 10 years ago
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Hi Chad
for example - I use MPLABX code configurator to generate me a driver for UART then I use the functions created by MPLABX in a C call block in FC works fine for PIC32MX,and PIC16/18 however MZ is only supported in the high level Harmony and did not try that as yet but it should be possible also
maybe Ben can help us with some info here
Well this is how I do it also and I think Stefan too , there is not really any way to include external generated files into FC.I have been playing with the harmony configurator. I used it to help me figure out the clock configs then just changed them in the configuration in FC. I haven't figured out what files it generates need to get imported into fc and where to stick them yet
for example - I use MPLABX code configurator to generate me a driver for UART then I use the functions created by MPLABX in a C call block in FC works fine for PIC32MX,and PIC16/18 however MZ is only supported in the high level Harmony and did not try that as yet but it should be possible also
maybe Ben can help us with some info here
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: Microchip questions for you all.
Sorry for the delay in responding. I have been really busy with work stuff.
Been playing with stuff a little more, slowly sinking in. One question, why would you use harmony to instantiate a UART and not just use the FC component?
Chad
P.s. I ordered some of the little 8 pin pic's you like. Don't know what I am going to do with them yet, but I was ordering some stuff for another project and threw them in. Now I need to get the 8 bit pack.. Ouch$
Been playing with stuff a little more, slowly sinking in. One question, why would you use harmony to instantiate a UART and not just use the FC component?
Chad
P.s. I ordered some of the little 8 pin pic's you like. Don't know what I am going to do with them yet, but I was ordering some stuff for another project and threw them in. Now I need to get the 8 bit pack.. Ouch$
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Microchip questions for you all.
Hi Chad.
I just use the UART as an example to be a bit clear in my message, no need to do that In Harmoney /Code configurator but quite possible once done , then advance things like a FOC algorithm for a BLDC motor becomes and easy task which is not supported in FC
hope this explain my example of the UART use in Harmoney secondly just came to my mind now FC relay on Harmoney to configure PIC32 USB stuff
example math accelerator module ,PID Hardware module processes PID with no CPU intervention Numerical Oscillator and many more
I just use the UART as an example to be a bit clear in my message, no need to do that In Harmoney /Code configurator but quite possible once done , then advance things like a FOC algorithm for a BLDC motor becomes and easy task which is not supported in FC
hope this explain my example of the UART use in Harmoney secondly just came to my mind now FC relay on Harmoney to configure PIC32 USB stuff
I like this just take a look the PIC16F1xxx devices has some really advance peripherals and they run independent from the CPU it free up a lot CPU processing and that increase Processioning power really a lotI ordered some of the little 8 pin pic's you like. Don't know what I am going to do with them yet, but I was ordering some stuff for another project and threw them in. Now I need to get the 8 bit pack.. Ouch$
example math accelerator module ,PID Hardware module processes PID with no CPU intervention Numerical Oscillator and many more
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 243
- Joined: Tue Nov 27, 2012 12:53 pm
- Location: Cambridge, UK
- Has thanked: 140 times
- Been thanked: 118 times
- Contact:
Re: Microchip questions for you all.
Hi Guys.
As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No Harmony, no other info, and it just worked!
I therefore recommend downloading Microchip's MX and MZ Oscillator Configurator Excel workbook (there are separate worksheets for each PIC type) from here:
https://microchipdeveloper.com/32bit:mz-osc
Simply adjust your settings in the applicable worksheet (which incidentally red flags any settings that are out of bounds), transfer them to Flowcode configuration option registers by the same name as those featured in the spreadsheet, and declare SPLL as your clock speed under Flowcode "General Options".
Enjoy!
All the best,
Brendan
As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No Harmony, no other info, and it just worked!
I therefore recommend downloading Microchip's MX and MZ Oscillator Configurator Excel workbook (there are separate worksheets for each PIC type) from here:
https://microchipdeveloper.com/32bit:mz-osc
Simply adjust your settings in the applicable worksheet (which incidentally red flags any settings that are out of bounds), transfer them to Flowcode configuration option registers by the same name as those featured in the spreadsheet, and declare SPLL as your clock speed under Flowcode "General Options".
Enjoy!
All the best,
Brendan
LinkedIn Profile...
http://www.linkedin.com/in/brendantownsend
http://www.linkedin.com/in/brendantownsend