MMBasic Pico Logic Analyser

Advert

MMBasic Pico Logic Analyser

Home Forums Electronics in the Workshop MMBasic Pico Logic Analyser

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #631877
    IanT
    Participant
      @iant

      WARNING – Look away now Dave!

      As some here will know, I've been a user of 'Micromites' for some time now, as in my view they are easier to set-up and debug for many embedded applications than the better known alternatives. My early ones used a 28pin PIC32 chip. Micromites all run a modern version of BASIC, known as Micromite Basic (MMB).

      Most recently, I've been using 'Picomites' – Mites based on the RPi Pico, which give a very powerful, inexpensive and easy-to-use controller. Another version of the Picomite (PicomiteVGA) uses the second CPU (and one PIO) to deliver 16 colour VGA graphics, whilst also delivering full compute power from the other CPU (e.g. a 'Home' computer)

      I'm busy building two of these PicomiteVGA computers. One for myself and one for my Grandson, mainly as a fun way to get him into computers and also something that can play simple games (without needing Internet access). I happen to have two old VGA monitors and PS2 keyboards (but I think you can still buy them) – so the cost will be very low – about £20 each in my case.

      However, the clever people who have made all this possible have been busy exploring ways to build a PIO (Programmable I/O) 'assembler' into (Pico) MMB and have been making very good progress in this area. The Pico has two PIO channels that are very fast and can operate independantly of the two ARM CPUs. So once you've set them up, they can race away, regardless of what the main processors are up to.

      Recently, one of the Programmers behind the PIO effort has developed an 8 Channel Logic Analyser that is starting to look very useable. Enough so that I'm thinking of building another PicomiteVGA as a dedicated LA system ( I ordered x 5 PMVGA PCBs) – the cost of the other components being minimal, with the software being free of course.

      I'm not aware of anything that provides this level of functionality at this price point, so I thought it was worth a mention here. Please don't ask me too many technical questions at this point, I'm familiar with 'Mites' in general but not the PIO aspects at this time. Fortunately, the LA coding has been done for us and it's a simple cut and paste job to load it. The PMVGA also has a filing system (SD card or Flash) so you can data-log too (if you are cleverer than me).

      More info here:

      TheBackShed.com – Forum

      Regards,

       

      IanT

      MMB Pico logic analyser - feb23.jpg

       

       

      Edited By IanT on 03/02/2023 13:55:57

      Edited By IanT on 03/02/2023 13:58:31

      Advert
      #32321
      IanT
      Participant
        @iant

        An inexpensive logic analyswer based on a PicomiteVGA

        #631892
        Michael Gilligan
        Participant
          @michaelgilligan61133

          Very interesting post, Ian … Thanks yes

          MichaelG.

          #632404
          IanT
          Participant
            @iant

            I'm going to make another update to this thread because I'm really impressed by what's been done here and the fact that none of this would have been possible just a few years ago. I could never have afforded a Logic Analyser for the very occessional use I might put it too. I dabble in electronics but it's certainly not my main hobby.

            The Pico LA has grown out of a collaboration between a few enthusiasts in UK, Holland and Australia. It started as a 'Tutorial' to help forum members understand how the Pico PIOs worked. It was picked up by the lead developer who added to MMB to enable access to the PIOs within MMB. A series of exercises were built to help users gain experience and within a few weeks this software started to emerge. A quite remarkable achievement from a few clever people scattered around the world.

            For anyone who doubts the capability of this little device – it is capable of sampling upto 42 msps (million samples per second) – so a bit faster than my Z80 based Nascom 2 could manage. I have some older DROs I'd like to hook up to an external display (and be able to programme the output) and I think this will give me the means to do so.

            In the meanwhile, a few early PicoLA routines are already emerging for anyone who needs to look at I2C or SPI devices – in principle any serial communications.

            Anyway – I'll update this thread from time to time as I think it has a lot of potential and hopefully will be of use to folk who might also "dabble" in these things like myself.

            Regards,

            IanT

            mmb pico la - spi.jpg

            mmb pico la - i2c.jpg

            #632533
            John Olsen
            Participant
              @johnolsen79199

              Funnily enough I once had an HP logic analyser given to me, but it had no probes, and I never managed to source any or find out what was in them. So I ended up giving it to someone who had a collection of HP stuff. But now I have one of the Kingst USB logic analysers, and it works fine. Mine is the cheapest model. You can get their software and run it in a demo mode to see how it looks. I have no connection with them, other than as a satisfied customer.

              John

              #632569
              IanT
              Participant
                @iant

                I wasn't aware of these devices John but they do look very capable and not expensive at £80.

                A basic (stripped down) PicomiteVGA can be built for the cost of the Pico, a few resistors and a VGA socket. You don't need the PS2 keyboard as you can use the serial console. For a one-off (quick) fault find, you could just put it together on a breadboard for less than £10. You'd need a VGA monitor for display of course but some new monitors still support VGA – or you can buy 'refurbished' ones for under £30. I have several sitting unused under my desk currently.

                I am already building two 'Peter Mather' based PMVAGs. Using his gerbers I ordered five boards from JCLPCB, which cost me £16.58 (inc shipping & taxes) so I have three spare PCBs. Peters' design includes an RTC, Audio, SD Card and PS2 keyboard support, a 40pin I/O connector and two Pico 'expansion' slots but most of it is optional – you don't need to populate all of it to have a working device.

                In my case I want to understand how to access the PIOs and use them within my own MMB applications. All of the LA code is open to view, use parts and alter to suit my specific needs – a large leg-up. I can read serial and parallel devices and have programmed responses. It's just limited by my imagination and (in)ability to get off my butt and actually do it!

                Regards,

                IanT

              Viewing 6 posts - 1 through 6 (of 6 total)
              • Please log in to reply to this topic. Registering is free and easy using the links on the menu at the top of this page.

              Advert

              Latest Replies

              Viewing 25 topics - 1 through 25 (of 25 total)
              Viewing 25 topics - 1 through 25 (of 25 total)

              View full reply list.

              Advert

              Newsletter Sign-up