Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:50 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 2 new Picos announced!

     Page 3 of 6    
Author Message
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 482
Posted: 09:02am 10 Aug 2024
Copy link to clipboard 
Print this post

No doubt the ADC will be tested  thoroughly       so the reality will be interesting to watch .. (getting cynical    )
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 09:10am 10 Aug 2024
Copy link to clipboard 
Print this post

Well, they *say* it's fixed. :)

Interestingly, on the bigger version of the chip you can have up to 8 ADC channels.

The Datasheet has been upgraded from 647 to 1347 pages. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
al18
Senior Member

Joined: 06/07/2019
Location: United States
Posts: 205
Posted: 12:31pm 10 Aug 2024
Copy link to clipboard 
Print this post

Interesting the RP2350 has a new peripheral called HSTX, that can drive DVI without using PIO and without needing to overclock the ARM33 cores. HSTX is discussed in Adafruit’s video https://www.youtube.com/live/n5j3Y2Naao0?si=ROPbVDTQF1BQucQE

Yesterday, Adafruit’s CircuitPython developer Scott posted a very long video discussing HSTX and showing a demo with CircuitPython displaying still pictures on DVI at 320x240, 16 bit color, 640x480 at 8 bit color, 4 bit color, 2 bit color and 1 bit monochrome.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 01:39pm 10 Aug 2024
Copy link to clipboard 
Print this post

I feel bad for those who are oblivious to this wonderful world of MCUs.
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 01:54pm 10 Aug 2024
Copy link to clipboard 
Print this post

interesting indeed, HSTX could well be a game-changer as it looks like it is capable of providing at least 640x480 without need to overclock or tie up the second core. the second core would then be free to act as a graphics co-processor (including sprites, etc) while mmbasic runs on the first core.

i wonder if the HSTX peripheral allows for horizontal and/or vertical pixel-doubling? if so one could output a 1080p signal (1920x1080) while only using a 960x540 frame buffer. 960x540/8 = 64800 bytes of frame buffer for monochrome 960x540, then add in whatever else is required to accommodate 8x8 tiles (960x540/256 = 8100 bytes) to achieve 16-colours of background and foreground for the tile colours.


cheers,
rob   :-)
Edited 2024-08-10 23:58 by robert.rozee
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 03:45pm 10 Aug 2024
Copy link to clipboard 
Print this post

Lol! I like the Metro... Arduino on mega-steroids. :D

Yep, HSTX is intriguing. A bit like like the fast port on the Armmite F4.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
al18
Senior Member

Joined: 06/07/2019
Location: United States
Posts: 205
Posted: 04:03pm 10 Aug 2024
Copy link to clipboard 
Print this post

I watched the CircuitPython developer demo - the resolutions mentioned above are maximums due to the memory limitation on the RP2350. Pixel doubling is supported - the 320 x 240, 16 bit mode is doubled to 640 x 480.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 04:32pm 10 Aug 2024
Copy link to clipboard 
Print this post

It's all lovely new toys at the moment. I'm not certain that all the presenters are fully clued up. I noticed that Lady Ada said that both cores have to be the same. That's not what the Datasheet says in section 3.9.2. I get the feeling that it's not really recommended though. lol
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4223
Posted: 04:56pm 10 Aug 2024
Copy link to clipboard 
Print this post

I will remain loyal to 2040. I do not see a CMM1.7 on the roadmap. When you sacrifice all RAM to video, and all potential speed gain to copying more memory, better make a larger step. When you need more: H7 or CMM2.
Chips are available, and JLC boards not expensive.

Volhout
Edited 2024-08-11 03:03 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 05:21pm 10 Aug 2024
Copy link to clipboard 
Print this post

Oh, go on... I bet you'd love to play with the enhanced PIO modules, especially when you have an extra one as well. :)

TBH I'd not be bothered about increasing the video capabilities at all. The extra RAM can be used for other things. The Pico 2 doesn't have all the bells and whistles of the new chip anyway - it hasn't enough pins. It is a drop-in replacement though, so I could see it being useful in that respect.

It remains to be seen whether it can generate VGA anyway. Apparently it's been run successfully at 300MHz using the Arm cores.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 07:42pm 10 Aug 2024
Copy link to clipboard 
Print this post

Reminder: We're talking Matherp, guys

MMBasic achievements thus far? Mind blowing.

Love the H7 but the PIO brings all kinds of possibilities to a Basic interpreter.

These products are making me look like the wizard that I definitely ain't  
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 04:58am 11 Aug 2024
Copy link to clipboard 
Print this post

Hi Mick,

I could not left this uncommented (I tried, though   ).
I am using/teaching Python in my work and have used a lot of MicroPython/CircuitPython for projects.

  Mixtel90 said  Python is lower level than MMBasic.

I would say that Python is a similar high level language as Basic. It is a carefully designed language and in a way, more logical (to me) as any Basic dialect. But that's a matter of taste and what one grew up with (I "started" my computer experience with TI Extended Basic ). Python tends to be further away from the hardware, because hardware access often requires compatibility layers, e.g., to offer the same interface on different controllers - and there is the garbage collector that - in my experience - makes critically timed programs difficult. This is one reason why I switched to MMBasic for some of my projects. It is timing-wise so much more predictable.

  Mixtel90 said  Your programs fail more often and with more spectacular consequences as a result. :)

Well, sometimes. But as discussed in the forum, MMBasic can also fail quite spectacularly. But for MMBasic, the loop to THE developer ( ) is much closer and the community is much smaller. Issues in (Micro)Python are also addressed quite quickly, in my experience.

  Mixtel90 said  It's not really a horrendously difficult language though and you can do simple stuff pretty quickly.

I agree, one can get started off quite quickly, at the same time, the language offer a lot of modern features for software design that one can discover later (or not) and where the learning curve becomes steep. And, whether on likes it or not, it is the language of machine learning and AI.

  Mixtel90 said  You have to unlearn most of what you are familiar with in MMBasic though. Like the Arduino it has libraries for just about everything.

Yes, the language is small; most functionality is packed into standard or external packages/libraries. There is a package for anything - the problem is rather to find one among many that fits your needs best *and* is still being actively supported.

  Mixtel90 said  Like BASIC it comes in different "flavours" which can vary a lot. Python2 has been around for many years and is being replaced by Python3 (which is taking a long, long time because they aren't exactly compatible and a lot of older programs depend on Python 2).

There are exactly two Python flavours, and the "old" flavour (Python2) should not be touched anymore. Every Python implementation for microcontrollers I know is based on Python3. Sure, Python3 is continued to be developed, but there are rarely "breaking" changes. Also, I am aware that there is still Python2 code out there but if you start, you don't need to worry about that and go with Python3. There are flavours of Python for microcontrollers (see below) but they mainly differ in their I/O libraries - they use the same Python3 core.

  Mixtel90 said  I particularly like Circuit Python. It is developed for the Raspberry Pi family and is designed to give simple operation of all sorts of IO handling.

Yes, for microcontrollers, I would also recommend Adafruit's CircuitPython, especially if you are a beginner and using Adafruit's gadgets (not only the ones, they develop but also ones they sell from other companies) - everything is almost immediately supported by some library. The "original", MicroPython, is more "cutting edge", that is, new Python developments are more quickly integrated (not always improving stability), but it supports almost any controller you can think of. And then there is, e.g., the MicroPython distribution from Pimoroni, which adds libraries to support their boards and gadgets. What I like about Pimoroni's distribution is that they typically wait until the bugs in a new MicroPython release are exterminated before they integrate it in their code. Very clever.

All this said, I love MMBasic for the Pico and hope for a Pico2 version
... but for some applications, (Micro/Circuit)Python is just the easier approach.

Rant over.

Best
Thomas
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 06:42am 11 Aug 2024
Copy link to clipboard 
Print this post

Thanks. :)
I still feel that Python is lower level while I'm using it (which is pretty rarely). That's probably because you have to include libraries for so many things. It just "feels" like that. :)

I'm not certain why it was Raspberry Pi's language of choice. I'm unlike you, I find it pretty illogical (as I do C and C++) and I'm not sure I'd like to be learning to program using it. Mind you, I've not lived with it for any length of time. I suppose it could grow on me eventually.

As long as I don't have to use C or C++ I'll be happy. The Zeap Z80 assembler was easier...   :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9306
Posted: 07:26am 11 Aug 2024
Copy link to clipboard 
Print this post

  Volhout said  I will remain loyal to 2040. I do not see a CMM1.7 on the roadmap. When you sacrifice all RAM to video, and all potential speed gain to copying more memory, better make a larger step. When you need more: H7 or CMM2.
Chips are available, and JLC boards not expensive.

Volhout


My position also.

The new chips seem very interesting, and very much a CANDIDATE for an MMBASIC port, but lets not forget who does 99% of the porting these daze.....

If it ain't broke, don't fix it.

Watching with interest, though!  
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 07:53am 11 Aug 2024
Copy link to clipboard 
Print this post

This is the point though. If you are an industrial user of the RP2040 it *is* broke and needs fixing. The ADC is broke, but that's a minor problem when someone can come along, read your code and copy it, pinching your profits overnight. For the hobbyist it doesn't matter, but it's selling in quantity to industrial users that will both keep the cost down and pay for more R&D for future silicon. The RP2040 is also at the bottom of the list for safety. The M33 core is *much* better for both security and safety.

The Pico is great for the hobbyist, I've no problem with that and I'll stick with it too - at least for the moment. The Pico 2 is slightly more expensive at the moment, but it might end up costing about the same after a while. There's no financial advantage to the RP2040 then (unless you are using large quantities where a fraction of a penny may be important).

Whether the new chip will run MMBasic isn't relevant for its survival. It may eventually replace  the RP2040 if industrial demand is high enough as there won't be much point in making it if only the hobbyists are buying it. That market simply isn't big enough.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 07:55am 11 Aug 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  Thanks. :)

Welcome  

  Mixtel90 said  I'm not certain why it was Raspberry Pi's language of choice. I'm unlike you, I find it pretty illogical (as I do C and C++) and I'm not sure I'd like to be learning to program using it. Mind you, I've not lived with it for any length of time. I suppose it could grow on me eventually.

They choose it because it the THE programming language students get taught today. Certainly at (German) universities and at least in non-IT fields, such as neuroscience (my field). In my community, many researchers are switching from the proprietary Matlab (expensive) to open source software, such as Python and R. For computing in research and data science, Python is currently quite dominant.  

  Mixtel90 said  As long as I don't have to use C or C++ I'll be happy. The Zeap Z80 assembler was easier...   :)

Again, I think a lot depends on what you grew up with. I need to have something like a command line and and editor; I cannot deal with graphical programming languages, such as Scratch or LabVIEW - they hurt my brain  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 08:53am 11 Aug 2024
Copy link to clipboard 
Print this post

I once attempted Visual Basic. Never again. What a horrible experience. lol

I used to use AutoCAD and you could write scripts in AutoLisp. That was interesting. A textual language that defines or edits stuff on the screen. You could write your own controls in it.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 09:29am 11 Aug 2024
Copy link to clipboard 
Print this post

I'm a pure C person at heart, before that Fortran, (full flight aircraft simulation) but I Love the immediacy of MMBasic & use it almost exclusively now for hardware projects. I also exclusively use Vi for editing, even MMBasic, if I'm not editing on the Pico, I believe someone famous once said the commands for editing in Vi resemble line noise ;-) but with only a few of them, you can do quit a lot.

Personally, I'm still holding out for what I said back in May
We may never know.
The HSTX, was a surprise, if you need a display looks great, up to 640x480, at various colour depths, with no CPU involvement, other than putting stuff in the display buffer, obviously there will be a memory bus hit as the HSTX needs to access the ram, but hopefully minimal, not that MMBasic needed the second processor back, but a nice new feature anyway.
Regards Kevin.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 01:53pm 11 Aug 2024
Copy link to clipboard 
Print this post

I just came across an article about the development of the TS9900 CPU and found this quote. It instantly made me think about the RP2040 and how true it still is.

  Quote  
... for anyone developing a product based on rapidly changing high technology, being first to market is paramount, no matter how extensive the limitations of your initial product may be; today, this concept is known to Silicon Valley types as creating a “minimal viable product.” Provided your product has distinctive new capabilities, your customers will explore innovative ways to use it.


Link to article
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2120
Posted: 05:11pm 11 Aug 2024
Copy link to clipboard 
Print this post

I bought a esp32 cos I saw fabgl and it's a cheap board with vga and 2 ps2 but never got it used  but seems python may work with fabgl.
 
     Page 3 of 6    
Print this page
© JAQ Software 2024