Raspberry Pi - New Microcontroller

Nagging hardware related question? Post here!
User avatar
NormanDunbar
Forum Moderator
Posts: 2273
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Raspberry Pi - New Microcontroller

Post by NormanDunbar »

This looks very interesting. I think you hardware types might like the Programmable I/O section of the data sheet. Similar to FPGA???

https://www.raspberrypi.org/blog/raspbe ... w-on-sale/

If you have a subscription to Hackspace magazine, you are getting a freebie. Good luck hitting the supermarkets/newsagents to get a copy otherwise!

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
Peter
QL Wafer Drive
Posts: 1987
Joined: Sat Jan 22, 2011 8:47 am

Re: Raspberry Pi - New Microcontroller

Post by Peter »

NormanDunbar wrote:I think you hardware types might like the Programmable I/O section of the data sheet. Similar to FPGA???
Except having two cores, it's a microcontroller like many others. Peripherals not too exciting, not even ADCs. Can't see any FPGA (or even PLD) like possibilities.
But thanks for the news!


User avatar
NormanDunbar
Forum Moderator
Posts: 2273
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Raspberry Pi - New Microcontroller

Post by NormanDunbar »

Interesting!

The data sheets pin out has 5 pins for ADC - AGND, ADC_VREF and ADC0, ADC1 & ADC2.

I've yet to read the 800+ pages of the chip datasheet and the board datasheet, so I'll defer to your better knowlege.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
tofro
Font of All Knowledge
Posts: 2700
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Raspberry Pi - New Microcontroller

Post by tofro »

Peter wrote: Except having two cores, it's a microcontroller like many others. Peripherals not too exciting, not even ADCs. Can't see any FPGA (or even PLD) like possibilities.
Well, the programmable PIO state machines are somewhat unique. Having 4 independent state machines running up to 32 instructions each independent from the main processor with access to arbitrary GPIO lines is a bit of CPLD-like and can relieve the main CPU quite a bit from bit-banging protocols. I'd guess thet for example implementing the QL network protocol might be quite a breeze on them.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
martyn_hill
Aurora
Posts: 924
Joined: Sat Oct 25, 2014 9:53 am

Re: Raspberry Pi - New Microcontroller

Post by martyn_hill »

I was looking at this device earlier this afternoon with a view to how it might replace the Teensy uC around which the current QLUB Adapter is designed.

Aside from the 3.3V to 5V translation (easy enough) , the other important aspect I'm still researching is how the onboard USB port is implemented - one reason why the usual Arduino dev boards didn't quite cut-it for the QLUB was due to the inherent latency of the FTDI to USB interface used in those devices compared to the Teensy's inbuilt USB support.

I haven't quite waded through the RP2040 datasheet yet, but it looks like a potentially good (and cheaper) alternative...


User avatar
NormanDunbar
Forum Moderator
Posts: 2273
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Raspberry Pi - New Microcontroller

Post by NormanDunbar »

Hi Peter,
Peter wrote:Peripherals not too exciting, not even ADCs.
There is indeed an onboard ADC. It'sbuilt in to the RP2040, has three channels and 12 bit resolution. There's a 4th channel used for the internal temperature sensor.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2273
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Raspberry Pi - New Microcontroller

Post by NormanDunbar »

Hi Martyn,
martyn_hill wrote:I haven't quite waded through the RP2040 datasheet yet, but it looks like a potentially good (and cheaper) alternative...
Maybe the "coming soon" RP2040 Tiny willbe better? If not a little more expensive!

https://shop.pimoroni.com/products/tiny-2040

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
Peter
QL Wafer Drive
Posts: 1987
Joined: Sat Jan 22, 2011 8:47 am

Re: Raspberry Pi - New Microcontroller

Post by Peter »

Hi Norman,
NormanDunbar wrote:There is indeed an onboard ADC. It'sbuilt in to the RP2040, has three channels and 12 bit resolution. There's a 4th channel used for the internal temperature sensor.
You are right of course. I was looking much too sloppy, and not directly into the data sheet. My apologies. Somewhere I read that a RP2040 based singleboard computer does not support ADC without external circuitry, but maybe that was board specific?
The programmable PIO state machines might indeed be sufficient to replace a PLD for specific, relatively slow purposes.
Also, there are boards for 4€, which is less than the microcontroller alone in many cases. For example, the AT90USB1286 used on the Teensy ++2.0 is about 7€ without the board.


User avatar
NormanDunbar
Forum Moderator
Posts: 2273
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Raspberry Pi - New Microcontroller

Post by NormanDunbar »

Hi Peter,
Peter wrote:Somewhere I read that a RP2040 based singleboard computer does not support ADC without external circuitry, but maybe that was board specific?
I'm not sure about that, sorry. The actual chip itself has the ADC on board. Maybe the board you were reading about doesn't bring the ADC connections out to headers?
Peter wrote:The programmable PIO state machines might indeed be sufficient to replace a PLD for specific, relatively slow purposes.
I think someone has used the PIO to provide two DVI outputs for the board. I am probably mistaken in that. Or maybe not! (For once!) https://github.com/Wren6991/picodvi from the engineer who did it.


Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
Peter
QL Wafer Drive
Posts: 1987
Joined: Sat Jan 22, 2011 8:47 am

Re: Raspberry Pi - New Microcontroller

Post by Peter »

Not mistaken, it took clever tricks, extreme overclocking, and spec violations to get there. ;) Compared to FPGA that seems a pain to implement, and would not be sufficient for Qzero-like resolutions. But still very impressive!

At first glance, I don't see where the RP2040 can be bought as a chip, do you have a link?


Post Reply