Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:20 09 May 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 : PicoMite Alpha Firmware - a27 onwards - starting on displays

     Page 14 of 14    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3852
Posted: 10:53am 11 Jul 2021
Copy link to clipboard 
Print this post

Hi Peter,

I'm trying to port some CMM2 code to the PicoMite and was wondering if you might implement the additional MEMORY commands:

Option Base 0
Option Default None
Option Explicit

Dim foo%(9) = (1,2,3,4,5,6,7,8,9,10)
Dim bar%(9)
Dim foo_addr% = Peek(VarAddr foo%())
Dim bar_addr% = Peek(VarAddr bar%())
Dim i%

For i% = 0 To 9 : Print foo%(i%); " " ; : Next
Print
Memory Copy foo_addr%, foo_addr%, 80
For i% = 0 To 9 : Print bar%(i%); " " ; : Next
Print
> run "memory_test"
1  2  3  4  5  6  7  8  9  10
Program:
  1K ( 1%) Program (15 lines)
 79K (99%) Free

RAM:
  1K ( 0%) 5 Variables
  0K ( 0%) General
111K (100%) Free
0  0  0  0  0  0  0  0  0  0


It looks like it just treats MEMORY COPY as if it were the vanilla MEMORY command, and I'm guessing that will be the same for MEMORY SET.

Also any chance of support for:

> Print Mm.Info(Option Base)
Error : OPTION is not declared


Thanks,

Tom
Edited 2021-07-11 20:55 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3022
Posted: 01:00pm 11 Jul 2021
Copy link to clipboard 
Print this post

Should it be necessary to re-issue the SETPINs for a uart when re-opening a com port which has been closed?

> SetPin 21,uart0tx:SetPin 22,uart0rx
> Open "com0:115200" As #1
> close #1
> Open "com0:115200" As #1
Error : Pins not set for UART0
> SetPin 21,uart0tx:SetPin 22,uart0rx
> Open "com0:115200" As #1
> close #1

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8600
Posted: 01:06pm 11 Jul 2021
Copy link to clipboard 
Print this post

  Quote  Should it be necessary to re-issue the SETPINs for a uart when re-opening a com port which has been closed?


Yes

Note to all: No updates for the next 3 weeks or so
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3022
Posted: 01:37am 12 Jul 2021
Copy link to clipboard 
Print this post

An update on Picromite PCBs

I got the PCBs that I posted gerbers for here

Because the PCB without the MCP23017 is identical except for that module, I started with the one which has the module.



I first soldered on the SD module and it tested OK. I soldered in male headers for the RTC module, and it wasn't recognized. I traced it to no ground on the RCT pins. I had run a trace from the middle point on the 3 pads at the bottom of the Pico, which I had somewhere seen was 0V--but I had no pin connecting it to the pad. I soldered a wire to 0V on the SD pins, and the RTC worked.

The other 5 modules all worked--ILI9488 (with MISO snipped off), ESP-01 module, and MCP23017 module. The ESP-01 is upside down, but it doesn't care, even if I do.



And with ILI9341:


These are the modules:

SD

RTC

LCD

ESP-01 module

MCP23017 module

Next will be testing the 2x20 expansion port.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3564
Posted: 06:33am 12 Jul 2021
Copy link to clipboard 
Print this post

I am glad to hear there was only 1 missing ground wire.
Any concrete project in mind with this board ? Or is it just for experiments...?

Volhout
PicomiteVGA PETSCII ROBOTS
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3022
Posted: 11:20am 12 Jul 2021
Copy link to clipboard 
Print this post

No particular project. This is the functionality I usually look at for a Micromite (ever since the MM+), and I wanted 2x20 connection compatibility with the CMM2 and with the F4 PCB I produced earlier.

The MCP23017 was just because it's so easy to add, and who knows when the pins will be useful (model railroad controller, dollhouse lighting controller, etc.).
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
     Page 14 of 14    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024