Author Topic: dsPIC33A: new 32bit DSP!  (Read 12688 times)

0 Members and 1 Guest are viewing this topic.

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3237
  • Country: ca
Re: dsPIC33A: new 32bit DSP!
« Reply #75 on: July 24, 2024, 04:26:47 pm »
Well it arrived today... just don't make the same mistake I did: order one of the MCU DIM modules EV18H47A and/or EV02G02A too, otherwise you have a paperweight, and not a very heavy one either.

I ordered a couple of  EV68M17A. Looks like they have programming/debugging connectors. Should be enough to figure out how it all works.
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #76 on: July 24, 2024, 07:25:03 pm »
Well it arrived today... just don't make the same mistake I did: order one of the MCU DIM modules EV18H47A and/or EV02G02A too, otherwise you have a paperweight, and not a very heavy one either.

I ordered a couple of  EV68M17A. Looks like they have programming/debugging connectors. Should be enough to figure out how it all works.

Turns out I got the DIM part number dramatically wrong somehow.I ordered EV68M17A and EV67K87A.
 

Offline JPorticiTopic starter

  • Super Contributor
  • ***
  • Posts: 3500
  • Country: it
Re: dsPIC33A: new 32bit DSP!
« Reply #77 on: July 24, 2024, 07:33:53 pm »
New document has appeared - a migration guide. It explains few things. Instruction times are definitely subject to instruction bus wait and SFR wait. SFRs have various access time and may run 1:1, 1:2, 1:4 to system clock. The instruction clock is the same as the oscillator (was 2:1). Does it mean that simultaneous read/write in the same instruction will require 2 cycles? 2kb (512 instructions) cache for instruction flash fetches. How fast is it without cache? Can cache be controlled? Can execute from RAM for faster execution. But is it subject to bus contention with data fetches? Overall it looks like predictability was sacrificed for faster CPU clock.

Other than that lots of improvements, practically everywhere.

I've read that!
hm... would be interesting to compare against M4F (and maybe M7? though they come with such high clock frequency it's probably pointless...)
Why did they say dsPIC33C is 1 step pipeline? Isn't it 2 step pipeline (Fecth/Execute)?

> Execute from RAM
yes!!!

Tomorrow i'll try to see if FAE are still a thing here in italy, i'd like to see a datasheet and prices because there could be many new features i'd want to have in a new series of products, mainly security, and i don't really want to wait to mid september for masters... only to find out i can't use them (that document mentions no SCCP for the first series of devices, i need many independent channels, and i'm not sure i can coerce the PWM module into that... they surely can't do input capture)
« Last Edit: July 24, 2024, 07:48:10 pm by JPortici »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #78 on: July 24, 2024, 10:38:13 pm »
New document has appeared - a migration guide.

I've read that!

My Google foo clearly isn't up to it, do you have a reference please?
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3237
  • Country: ca
Re: dsPIC33A: new 32bit DSP!
« Reply #79 on: July 25, 2024, 12:44:05 am »
My Google foo clearly isn't up to it, do you have a reference please?

I searched for dsPIC33A on Microchip Website (this method was suggested by one of the early posters here). Here's the direct link:

https://ww1.microchip.com/downloads/aemDocuments/documents/MCU16/ProductDocuments/SupportingCollateral/dsPIC33CK-to-dsPIC33AK-Migration-and-Performance-Enhancement-Guide-DS70005574.pdf
 
The following users thanked this post: Howardlong

Offline uer166

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: us
Re: dsPIC33A: new 32bit DSP!
« Reply #80 on: July 25, 2024, 05:20:16 am »
Looks like upper end devices have up to to 5 ADC cores at 40MSPS. That is quite useful! (Even though CPU can't process all at 40MSPS obviously)
 

Offline marcov

  • Newbie
  • Posts: 8
  • Country: nl
Re: dsPIC33A: new 32bit DSP!
« Reply #81 on: July 29, 2024, 09:25:11 am »
In case you haven't seen, some more datasheets on the microchip site

https://www.microchip.com/en-us/search?searchQuery=dspic33a&category=ALL&fq=start%3D0%26rows%3D19

The one from the curiosity board seems to have 16kb ram
« Last Edit: July 29, 2024, 09:58:48 am by marcov »
 
The following users thanked this post: Howardlong

Offline JPorticiTopic starter

  • Super Contributor
  • ***
  • Posts: 3500
  • Country: it
Re: dsPIC33A: new 32bit DSP!
« Reply #82 on: July 29, 2024, 10:19:29 am »
In case you haven't seen, some more datasheets on the microchip site

And Erratas... None is a dealbreaker to me, phew
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #83 on: July 29, 2024, 05:12:20 pm »
A short vid has just appeared, that, like many Microchip videos, are too short to offer anything more than the most minimal amount of information.

https://youtu.be/AOySt6iHVw8?si=KtqgQqtwhDfgADhN
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5031
  • Country: bt
Re: dsPIC33A: new 32bit DSP!
« Reply #84 on: July 29, 2024, 06:16:01 pm »
There are 800-1500 pages long datasheets to download, afaik..

PS: hopefully at least 3-4 ADCs are simultaneously sampling..
« Last Edit: July 29, 2024, 06:23:53 pm by iMo »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #85 on: July 30, 2024, 03:41:28 pm »
There are 800-1500 pages long datasheets to download, afaik..

PS: hopefully at least 3-4 ADCs are simultaneously sampling..

They seem to have dropped the datasheet + FRM method, where you often end up referring to multiple documents, and have to figure out anything different between datasheet and FRM.

The current chips have two ADCs for simultaneous sampling.

Fastest Tad is 12.5ns (80MHz derived from a 320MHz clock, using the ADC's fixed divide-by-4), parameter AD50 on Table 37-40 p1484, document DS70005539B.

Sampling time Tsamp for 12 bits must be 9ns minimum (assuming typical internal Ric = 1k ohm and Chold = 1pF, and negligible source impedance, AD60 & AD62 on Table 37-40 p1484). The next available sample time is 31.25ns, from Section 15.3.6 p851.

Conversion time Tconv is 1.5 Tad, or 18.75ns irrespective of the number of conversion bits you need, it always converts 12 bits. Section 15.4.3 p865.

Tconv + Tsamp = 50ns, so 20MHz sample rate is maximum rate for 12 bits (also applies if you're only interested in 9, 10 and 11 bits).

If you want to do an in-spec conversion at minimum Tsamp (6.25ns) and Tconv (1.5 Tad or 18.75ns), 8 bits is the maximum effective resolution (it still converts 12 bits, but only up to 8 bits are reliable).
« Last Edit: July 30, 2024, 03:47:03 pm by Howardlong »
 
The following users thanked this post: glenenglish, iMo

Offline JPorticiTopic starter

  • Super Contributor
  • ***
  • Posts: 3500
  • Country: it
Re: dsPIC33A: new 32bit DSP!
« Reply #86 on: July 30, 2024, 03:54:16 pm »
They seem to have dropped the datasheet + FRM method, where you often end up referring to multiple documents, and have to figure out anything different between datasheet and FRM.

Hope not, i'd like to have an in depth description of the security module with examples (hopefully some application notes will come..) as it was the custom with the FRM chapters
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #87 on: August 01, 2024, 04:46:53 pm »
It's here!

Did a blinky, got it running at 200MHz, although the fastest I've been able to toggle a pin is about 33MHz. I'd have expected to toggle at 50MHz as the standard peripheral bus is Fcy/2.

I've already encountered a handful of errors in the datasheet so far, in particular regarding the PLL example code.

I'll put more info up on Microchip dsPIC33 forum.

 
The following users thanked this post: JPortici, uer166

Online coppice

  • Super Contributor
  • ***
  • Posts: 9210
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #88 on: August 01, 2024, 04:55:43 pm »
I've already encountered a handful of errors in the datasheet so far, in particular regarding the PLL example code.
MCU example code that doesn't work? I'm shocked. :)
 

Offline glenenglish

  • Frequent Contributor
  • **
  • Posts: 434
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
Re: dsPIC33A: new 32bit DSP!
« Reply #89 on: August 01, 2024, 07:54:53 pm »
Tconv + Tsamp = 50ns, so 20MHz sample rate is maximum rate for 12 bits (also applies if you're only interested in 9, 10 and 11 bits).
If you want to do an in-spec conversion at minimum Tsamp (6.25ns) and Tconv (1.5 Tad or 18.75ns), 8 bits is the maximum effective resolution (it still converts 12 bits, but only up to 8 bits are reliable).
Any numbers of full power bandwidth and ENOB ?
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #90 on: August 01, 2024, 09:51:08 pm »
Tconv + Tsamp = 50ns, so 20MHz sample rate is maximum rate for 12 bits (also applies if you're only interested in 9, 10 and 11 bits).
If you want to do an in-spec conversion at minimum Tsamp (6.25ns) and Tconv (1.5 Tad or 18.75ns), 8 bits is the maximum effective resolution (it still converts 12 bits, but only up to 8 bits are reliable).
Any numbers of full power bandwidth and ENOB ?

Not specified and 10.5 bits.
 
The following users thanked this post: glenenglish

Offline kilohercas

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
  • Engineer
Re: dsPIC33A: new 32bit DSP!
« Reply #91 on: August 04, 2024, 06:00:01 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 9210
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #92 on: August 04, 2024, 07:41:45 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.
You need something like 78ps to be competitive in the control market these days. They are all doing it since the C2000 started the trend.
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #93 on: August 04, 2024, 11:33:58 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.

You need a PWM peripheral with "Fine edge placement" in Microchip terms. The currently documented dsPIC33A devices don't have this feature. *

In their other dsPIC33's with this feature, they go down to 250ps resolution, but it dictates a specific clock frequency as it relies on a fixed multi-tapped delay line for the last 3 bits of resolution.

* Edit: For some reason I missed the "don't" out. Doh!
« Last Edit: August 05, 2024, 03:25:15 pm by Howardlong »
 

Offline JPorticiTopic starter

  • Super Contributor
  • ***
  • Posts: 3500
  • Country: it
Re: dsPIC33A: new 32bit DSP!
« Reply #94 on: August 05, 2024, 01:59:37 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.

the currently available device does not have the high speed mode (fine edge placement) so it should be only 400MHz
I see mention of this 78ps resolution for an upcoming "second generation" device in the "dsPIC33C to dsPIC33A Migration guide"
 
The following users thanked this post: Howardlong, PCB.Wiz

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: dsPIC33A: new 32bit DSP!
« Reply #95 on: August 05, 2024, 03:26:35 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.

the currently available device does not have the high speed mode (fine edge placement) so it should be only 400MHz
I see mention of this 78ps resolution for an upcoming "second generation" device in the "dsPIC33C to dsPIC33A Migration guide"

Correct, I don't know how I missed the *don't* bit out, but you're right, that is exactly what I meant.

Regarding forthcoming devices, I expect to see ethernet as there's an RMII interface on the EV74H48A Curiosity dev board. USB 2.0 HS would be a choice of mine.
« Last Edit: August 05, 2024, 08:25:43 pm by Howardlong »
 

Offline JPorticiTopic starter

  • Super Contributor
  • ***
  • Posts: 3500
  • Country: it
Re: dsPIC33A: new 32bit DSP!
« Reply #96 on: August 05, 2024, 08:18:32 pm »
I am having difficulty understanding the discrepancy between the specifications and the promotional material. The datasheet specifies a 2.5 ns PWM resolution, whereas the promotional video claims a 78 ps resolution. However, I was unable to find any supporting data for the higher resolution PWM. The 78 ps PWM step would be very intriguing for me, especially in the context of eGaN devices.

the currently available device does not have the high speed mode (fine edge placement) so it should be only 400MHz
I see mention of this 78ps resolution for an upcoming "second generation" device in the "dsPIC33C to dsPIC33A Migration guide"

Correct, I don't know how I missed the *don't* bit out, but you're right, that is exactly what I meant.

Regarding forthcoming devices, I expect to see ethernet as there's an RMII interface on the EV74H48A Curiosity dev board.
Unless it comes with an SPI controller/phy

Quote
USB 2.0 HS would a choice of mine.

Same. USB full speed for bog slow PIC24, but not anymore for dsPIC, or PIC18 for that matter. I've been asking that for years..
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1745
  • Country: au
Re: dsPIC33A: new 32bit DSP!
« Reply #97 on: August 05, 2024, 08:25:28 pm »
the currently available device does not have the high speed mode (fine edge placement) so it should be only 400MHz
I see mention of this 78ps resolution for an upcoming "second generation" device in the "dsPIC33C to dsPIC33A Migration guide"

Can they capture to 400MHz/2.5ns as well, or is that 2.5ns only PWM out ?
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3237
  • Country: ca
Re: dsPIC33A: new 32bit DSP!
« Reply #98 on: August 05, 2024, 09:26:13 pm »
USB full speed for bog slow PIC24, but not anymore for dsPIC, or PIC18 for that matter. I've been asking that for years..

Yes, USB HS would be great for dsPIC33, but, they don't even use USB FS. If you compare dsPIC33A with PIC32MZ. Both running at 200 MHz. Home come PIC32MZ gets its USB HS while dsPIC33A doesn't.
« Last Edit: August 05, 2024, 10:03:26 pm by NorthGuy »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15094
  • Country: fr
Re: dsPIC33A: new 32bit DSP!
« Reply #99 on: August 05, 2024, 09:44:18 pm »
I guess the market is just not there? It's interesting to see that USB HS is still a rarity in MCUs and usually reserved for the "performance" ones (like Cortex-M7 based) with very few exceptions, especially if you're looking for one with an integrated PHY.

That's one point which makes me like the CH32V30x.
 
The following users thanked this post: Howardlong


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf