• AVR Freaks

AnsweredHot!Problems using MCC with a dsPIC33EP64GS504 device

Author
Cpt_Nemo
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2013/01/15 13:55:02
  • Location: 0
  • Status: offline
2020/02/14 06:35:32 (permalink)
0

Problems using MCC with a dsPIC33EP64GS504 device

Hello,
 
i want to use a dsPIC33EP64FG504 (44-Pin TQFP package) in a new project and be fore finishing the PCB, i tried to use MCC to check if all pin assignments are correct.

While doing this, i encountered some problems:

1: Remappable Peripherals for Post C2
I want to use the SPI1 module with the SS1 (SPI1 - Slave Select input) on the Pins 36 (Port C2, RP50). MCC does not offer me Port C2 (RP50) for assignment. In the datasheet, i could find no reason why it should not be possible to use this pin for the SS1 input.

2. Shared ADCs
I use the ADC cores 1-4 with dedicated inputs and the shared core to measure 4 different input signals (AN17, AN19, AN20, AN21). in MCC, it is not possible to configure the analog input ports AN19, 20 and 21. Only AN17 seems to be availabe.

3. ADC Trigger from PWM4
The 4 dedicated SAR cores shall be triggered from the PWM generators 1-4. But i cannot choose "PWM Generator 4 primary trigger" as trigger source, only PWM generators 1-3 are listed. In the datasheet, the description for the TRGSRC-Bits lists PWM Generators 1-5 as possible trigger source.


How can i find out, if these problems are errors in MCC or if the description in the datasheet is wrong? Or did i understand the datasheet not right?
I don't want to wait for the finished PCB to find out, if the intended pin assignment is OK or not.


#1
_dex
Starting Member
  • Total Posts : 86
  • Reward points : 0
  • Joined: 2008/03/19 13:57:34
  • Location: 0
  • Status: offline
Re: Problems using MCC with a dsPIC33EP64GS504 device 2020/02/14 07:36:49 (permalink)
2 (1)
AD1 I had a problem with SCK2 signal in SPI2 resources for 33EP256MC506. Check the tables in DataSheet:
INPUT PIN SELECTION FOR SELECTABLE INPUT SOURCES
SELECTABLE INPUT SOURCES (MAPS INPUT TO FUNCTION)
 
If the tables says is possible, could be a bug or missing definition in MCC, like with my SCK2 entire row. Try to do it by hand, it just one extra line, and check if the SS output is working. Actually I have asked if we must take care of setting SS personally or does the library doing that. No answer so far, and I make it by hand by calling SS_Setlow / High.
post edited by _dex - 2020/02/14 07:39:59
#2
Cpt_Nemo
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2013/01/15 13:55:02
  • Location: 0
  • Status: offline
Re: Problems using MCC with a dsPIC33EP64GS504 device 2020/02/14 08:51:54 (permalink)
0
Hello,
thanks for your reply.
 
For me, not the entire row is missing, but the column for Port C2 can not be selected for almost any peripheral function:

The only possible functions seem to be the GPIO module and some analog functions (EXTREF1, CMP4D and AN9)
 
I think, this is a bug in MCC, but i can not test if this pin is working without a PCB and i would like to clarify this before making the PCB.
Maybe someone can confirm that the Pin C2 can be used like any other pin on this device for digital IO functions.
 
Does someone have any ideas for my other issues?

Attached Image(s)

#3
_dex
Starting Member
  • Total Posts : 86
  • Reward points : 0
  • Joined: 2008/03/19 13:57:34
  • Location: 0
  • Status: offline
Re: Problems using MCC with a dsPIC33EP64GS504 device 2020/02/14 13:25:18 (permalink)
0
From what I have seen in DS reg 10-13 you should be able to map SS1 to any of RP1 - RP181 pin, and RP50 is in the range. This must be missing definition in mcc or you have different package selected in the Grid View, the one which perhaps does not offer it (  I did not check the others).
MCC is not perfect.
post edited by _dex - 2020/02/14 14:25:08
#4
pr.mchp
Starting Member
  • Total Posts : 37
  • Reward points : 0
  • Joined: 2015/03/23 06:20:48
  • Location: 0
  • Status: offline
Re: Problems using MCC with a dsPIC33EP64GS504 device 2020/02/18 21:39:13 (permalink) ☼ Best Answerby Cpt_Nemo 2020/02/19 09:07:40
0
Hi Cpt_Nemo
The concerns raised in all the three points are valid, and the same shall be rectified in the next MCC release.
Thanks for your valuable feedback.
 
#5
Jump to:
© 2020 APG vNext Commercial Version 4.5