Microchip’s PIC32MZ DA — The Microcontroller With A GPU

When it comes to displays, there is a gap between a traditional microcontroller and a Linux system-on-a-chip (SoC). The SoC that lives in a smartphone will always have enough RAM for a framebuffer and usually has a few pins dedicated to an LCD interface. Today, Microchip has announced a microcontroller that blurs the lines between what can be done with an SoC and what can be done with a microcontroller. The PIC32MZ ‘DA’ family of microcontrollers is designed for graphics applications and comes with a boatload of RAM and a dedicated GPU.

The key feature for this chip is a boatload of RAM for a framebuffer and a 2D GPU. The PIC32MZ DA family includes packages with 32 MB of integrated DRAM designed to be used as framebuffers. Support for 24-bit color on SXGA (1280 x 1024) panels is included. There’s also a 2D GPU in there with support for sprites, blitting, alpha blending, line drawing, and filling rectangles. No, it can’t play Crysis — just to get that meme out of the way — but it is an excellent platform for GUIs.

The PIC32MZ DA chips are available in three packages, including a 169-pin BGA, a 288-pin BGA, and a 176-pin LQFP. Program size for these chips is either 1024 KB or 2048 KB and data memory is either 256 KB or 640 KB. The PICs come with an option for an DDR2 controller with an optional “on die” 32 MB of DDR2 SDRAM. This ‘on die’ SDRAM specifically isn’t; instead, we’re looking at something like a package-on-package component. Either way, some of these parts come with 32 MB of DDR2 encapsulated in a blob of epoxy.

Two starter kits for the PIC32MZ DA will be available shortly, one featuring the stacked DRAM, and the other featuring external DRAM. Additionally, a WQVGA touchscreen daughterboard will also be available. This daughterboard is not necessary, though, and Microchip has put a lot of effort into creating new tools to get LCD panels up and running quickly. A new version of the MPLAB IDE features a Display Manager, that allows a developer to generate drivers for any display in minutes.

 

The volume pricing for the PIC32MZ DA starts at $7.73 in 10k unit quantities.

GPUs are the in thing right now, and between the latest from Nvidia and tiny cheap ARM boards that can push pixels to a 4k display, you could be forgiven to think the only way to add a large, high-resolution display to a product is to include a Linux-based SoC. The PIC32MZ DA is a bridge between these SoCs and traditional microcontrollers, allowing for simpler boards with easier routing that are still able to pump pixels out to a display.

This is a small personal observation, but since the release of the Raspberry Pi and the deluge of cheap ARM boards with HDMI, Hackaday hasn’t seen many microcontrollers used for video applications. There are always people messing around with VGA, but remember that the Uzebox was at one time a very popular product. Part of this is due to the increasing availability of Linux-based boards, but part of it is also due to the tiny amount of RAM microcontrollers are still shipping with. This is a very cool chip, and we can’t wait to see what it will eventually wind up in.

62 thoughts on “Microchip’s PIC32MZ DA — The Microcontroller With A GPU

  1. Looks like a good fit for the example they give – a coffee maker UI. The one at work is a touch-screen that looks similar, but it certainly doesn’t need more than the 2D functions listed here, or more than 32MB.

    The only issue is cost, when you can get a full ARM SoC with GPU and 1GB memory for under $10… isn’t the low-end Pi using a $5 SoC including RAM?

      1. Pi Zero is a loss leader. They can’t make it at $5 which is why they’re always out of stock. Broadcom don’t supply BCM2835 to whoever’s unknown company, and a real CPU like that is going to be PITA to debug if you’re spinning your own board. Whereas Microchip…

  2. At over $7 each just for the chip, it’s going to be a tough sell when the Pi Zero (without wireless) retails at $5 each, unless you can make use of the features the Pi doesn’t have like a high speed ADC. Of which, 18MHz sample rate would make a pretty decent SDR.

    1. It may be a tough sell for a hobbyist, but not for someone looking to source these for a product. When you’re building a product, the supply chain is as important as the parts you choose. So while you get potentially better performance from a Pi Zero at $2 less, you may not be able to source them in quantity. There’s also the value in having variety in the product market. I’ve often thought a part wouldn’t be worth producing only to be proven wrong by others who saw a niche for it that I never would have.

      1. Yeah, a closer competitor might be something like the $6 Next Thing Co GR8 system-on-module with on-package DDR3 RAM, if they’ve got the supply chain for that sorted out (which is always a big if).

      2. What’s funny bit, is that – minus an MMU – this thing is far more capable than the first engineering workstations based on the original R2000 and R3000 MIPS CPUs which sold for tens of thousands of dollars.

        1. Ah, kids today! The MIPS M500 had a R1000 in it. Not one of those new fangled R2Ks. Now get of my lawn! :-)

          We had two M500s at Harris to port MACH to the MIPS processor way back when.

        2. Actually, all the PIC32MZ line have a standard MIPS page-mode MMU (including support for mixed huge page sizes, so you can have 4k pages alongside 64k pages alongside 256M pages). Given the TLB is only 16 entries but on a small machine like this that isn’t bad.

    2. Not a tough sell at all when you cannot buy a Pi Zero in anything approaching 10k quantities.

      The Pi foundation makes a point of not making it easy for the product to be used in any sort of mass-produced application.

      1. It’s still hard to buy a PiZero in the U.S. for under $25.00. Adafruit sells them for $10.00, that’s when they’re in stock.

        So it’s a no go for production volumes.

        I can also see a use for it in retro systems and apps that don’t need Linux and the overhead/IO laterncies introduces.

  3. It’s not that tough of a sell when you can’t buy a Raspberry Pi Zero in quantity > 1. Maybe a tough sell to hacker types, but that’s not the intended market (of just about any silicon, for that matter).

  4. Interesting. Espressif is working on a variant of the ESP32 called “Wrover” that has a few megabytes of pSRAM attached via SPI, but no GPU. Wonder what the pricing will be.

    This looks like a nice SoC for a retro console!

    1. except you cant replicate this hack, authors github repo was always empty, and he tried his best to stay anonymous, probably because he based his work on NDA documentation.

      1. It’s possible that the CPU cache is only set up to work with SRAM since it likely has different timing requirements than DRAM. The PIC32 can run out of RAM which is unusual for a PIC, so I guess we’ll have to see whether it’s actually possible or not to use data directly out of the video RAM.

  5. “GPUs are the in thing right now”
    Been working with GPU’s for twenty years now, I think they can now be considered an established technology.

    There has also been many 2D accelerated micro controllers, some even with OpenVG acceleration, before this.

    The line between what a micro controller is and a SoC is so blurred I don’t think you could even call it a line.

  6. @HaD: Boooooooooring!
    Rather than starting the this-is-not-a-hack-discussion, I’d like to start the this-is-a-pathetic-advertisement-discussion.
    Neither the technology is new (STM32F4 and F7 are on the market for years now with similar “GPU”-like peripherals) and nor is the MCHP cores worth to mention (no real innovative feature found yet).

    1. There is nothing to discuss about it, because regular readers already know that Benchhoff is responsible for sponsor’s brand placement (and the usual product’s praise based solely on the press release documents, mandatory to every successful tech blog). Are you new here ??
      That explains such statement as “The volume pricing for the PIC32MZ DA starts at $7.73 in 10k unit quantities.” which is rather ridiculous on a blog mostly aimed at DIY hackers and hobbyists, but was probably chosen to maximize a sense of affordability.

      Now the reallity wouldn’t fit that well in this promotional presentation :
      – At present, the GPU feature is rougly described in only ONE of the 800 pages datasheet exclusively dedicated to this new chip ! (page 603 of linked pdf)
      – The listed launch price for a single unit order of the chip is $15.6 WITHOUT the integrated 32MB DDR2 SDRAM (and 256KB RAM only) at the international electronic components retailer Mouser.
      And it starts at $22 for the 32MB + 640KB models. This is perhaps coherently priced for this range of devices, but really far from the inapropriate (if not misleading) amount advertised here.

      1. > Benchhoff is responsible for sponsor’s brand placement

        False. Keep in mind the burden of proof is on you.

        > based solely on the press release documents

        False. Had a nice chat with a few of the engineers working on this. Of course, this post was coordinated with Microchip PR under embargo — just like this post on the verge, this post on Wired, and, if you want to go historic, this cover story from Popular Electronics. Coordinating a post, story, or publication in conjunction with a manufacturer/person of interest/whatever is standard practice for literally all media.

        > which is rather ridiculous on a blog mostly aimed at DIY hackers and hobbyists…

        You know they just don’t come out and say what the quantity one pricing will be, right? I doubt Microchip has even calculated the quantity one pricing. They probably let Mouser or Digikey or whoever do that. Keep in mind this post was written before quantity one pricing was available.

        How about you reserve those claims of Hackaday selling out for a time when we actually do sell out?

        1. Glad that you can give us some perspective about your practices, with historical examples of infomercial in tech publications :D
          One thing is the Truth, what happened behind the curtains, etc.., another is how what you publish sounds like. For the proof : https://hackaday.com/author/brianbenchoff/ :) I was thinking of many similar annoucement you made, like the new Arduino Cinque recently, or all the sponsored “Hackaday Prize” articles, but that was mostly sarcasm anyway.

          For the quantity one pricing, I just tried the 176-pin LQFP (usually preferred to BGA for hand-soldering) references found in the datasheet on Mouser’s online shop to get their price per unit, and gave it as an indicator of the average retail price, so it’s available today.

          Now I can believe the chips were not listed by any resellers at time of writing, and that Microchip won’t bother calculating the probable “one unit order” price, but as you mentionned the price (granted, not the main point about this long awaited and interesting PIC32 with GPU). Nonetheless you could have suggested, based on your market knowledge, a possible unit price over $20 to give a lot more relevant idea of the price point from the average hobbyist / small batch producer / HaD reader point of view.

    1. You know unless you’re a gamer or watching pirated movies you don’t need HD.

      The fact is a lot I&C apps, medical, CNC just don’t need HD. A good visual display is all they need and this fits the bill.

    1. It’s not even out yet.

      And its designed so you don’t need Linux to do graphics – like the EVE modules that FTDI sells. Which makes it cool, you get a GUI without the Linux bloat and can do real time I/O as well.

      Excellent for certain embedded and retro apps.

  7. So much hate in the comments, but this may actually be perfect for my next project! I want a decent GUI but don’t want a SoC or the need to run Linux or “boot up” on start. I don’t need HD video or wireless, just a reasonably pretty screen with good draw time for rather basic graphics, menus, and plots. I’d love to get my hands on a dev kit for one of these!

  8. STM32 (ChromeArt), Renesas Synergy and RH850 (D/AVE2D) already had a “GPU”, and these are CM4 or equivalent types of devices. GPU in a device with 32MB of RAM (not even static) is nothing new, as most dedicated SoC’s that run RTOS’es or Linux have a powerful GPUT (often with AVC/HEVC and 3D acceleration).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s