This thread is dedicated to gathering suggestions related to what features could be improved or added in the next release of MC2. Please try to provide some arguments for your suggestions as they will help when proposing the idea to the team. Providing arguments will also help the team in better estimating what your needs are.
Please help us to improve MC2!
Please look at the Silabs configurator. There are so many overloaded pins on the PIC24 that it is a nightmare to configure.
A configurator that has descriptive files that it can parse for information for a device.
So suppose you have the same issue I currently have. A PIC24FJ128GC006. I need 4 analog ADC channels, 2 comparators and both opamps, and 2 dacs along with some 30 I/O lines.
I would like a tool that I could
1. select the part.
2. go into the ADC, and select which 4 channels I want from drop down boxes. This will tie up corresponding pins
in the pin map, which I can look at.
3. Then go into the comparators, and select two of them, and assign from a drop down list POPULATED WITH THE
REMAINING pins that I can use, since I have used 4 analogs up already, and I can pick the pins for the comparators. As I pick the pins for the first one, it automatically ties up those pins and limits the ones I can pick for the next compartor. After I pick those three pins, it again updates the map of the pins, and removes the ones used from the eligible pins.
4. I go the the op amps, I need both. I select the input and output pins, and as I do, my choices will have been restricted to the remaining analog pins. Once I have used the drop down boxes to select the pins both input and output, if there are gain registers, I can select the gain for those.
5. I move to DAC's and again pick two pins that are still available.
6. I then move to the I/O map and remap the pins that I want, or just select the pins. Each pin has a box that can be set to Open Drain, Digital out or Analog as I see fit.
7. I then click a button and the code writes a function that does whatever it needs to to make the I/O pins be correct.
8. I can then go into say a timer, and select an output and input, again, limited to what is available, and again the code is generated to configure that timer for the clock I select, the pins I select, any reload constants etc.
9. I go the the uart, pick a clock, set it's pins if needed, establish the baud rate etc.
this is what the Silabs configurator essentially does.
The output will be code that initializes the pins, and the registers, creates a comment block with descriptions of each pin, whether they are open drain, input/output analog and which peripheral controls them.
I don't want driver code. I just want an easier way to configure and select the proper i/o pins, the constants, and set the registers to what they need to be to make the peripheral work.
I am not even sure I am going to use the PIC24 because the configuration is so complex. It is going to take hours to figure out the pins by hand.