Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:40 16 Jun 2025 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 V6.00.02 release candidates - all versions

     Page 52 of 52    
Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2551
Posted: 10:02am 10 Jun 2025
Copy link to clipboard 
Print this post

Cutdown version.
' 24C32 EEPROM tester 3.bas
' Test program to fill 4 pages of a 24C32 EEPROM.
Dim Integer n, m, dummy, I2C.addr, Mem.addr
Dim D$, R$, txt$

For n = &H50 To &H58 'find the I2C address
  I2C CHECK n
  If Not MM.I2C Then  ' test for slave response. 1 = no response
   I2C.addr = n
   Print "I2C.addr = &H";Hex$(I2C.addr),
  EndIf
Next
Print

' Write to 4 32 byte pages on 24C32 EEPROM
Print "Writing to EEPROM. Page 0 = 32 0s to page 3 = 32 3s."

For n = 0 To 3  'make 32 byte pages
  Mem.addr = n * 32 'set the memory pointer
  D$=""
  For m = 0 To 31 : Inc D$, Str$(n) : Next 'make a page
  D$ = Chr$(Mem.addr>>8) + Chr$(Mem.addr And 255) + D$  'Add 2 byte Mem. address to the start of the Data'
  I2C WRITE I2C.addr,0,Len(D$),D$   'write 2 memory address bytes + data bytes
  Print Right$(d$,32);  'show the pages written
  Pause 6  'allow time to write
Next

Print :Print :Print "Data read from EEPROM"
Read_24C32_All

Sub Read_24C32_All ' Read all data from 24C32 EEPROM
  I2C WRITE I2C.addr, 0, 2, 0, 0  'return the pointer to 0
  I2C read I2C.addr, 0, 128, R$  'print all data, 4 pages per line, showing non-ASCII characters as "."
  Print R$
End Sub

End
Output
> RUN
&H50
Writing to EEPROM. Page 0 = 32 0s to page 3 = 32 3s.
00000000000000000000000000000000111111111111111111111111111111112222222222222222222222222222222233333333333333333333333333333333

Data read from EEPROM
00000000000000000000000000000000111111111111111111111111111111112222222222222222
>

Edited 2025-06-10 20:09 by phil99
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10169
Posted: 10:24am 10 Jun 2025
Copy link to clipboard 
Print this post

Thanks - fixed it
 
Gadgetguy
Regular Member

Joined: 26/04/2025
Location: France
Posts: 85
Posted: 11:34am 10 Jun 2025
Copy link to clipboard 
Print this post

Hello all, on my picomite usbhdmi, ctrl-c works, while ctrl+C (capital C) does not (it does not interrupt the running program)

Bug? Feature? The implication of course is that since i do not have a caps lock led on my keyboard, there will be cases where ctrl-c will not work (when caps lock is on)

Thank you
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10169
Posted: 11:58am 10 Jun 2025
Copy link to clipboard 
Print this post

If your keyboard sends a different code (or possibly no code) for ctrl-C when caps lock is on then I can't do anything about that - mine doesn't
Edited 2025-06-10 22:28 by matherp
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2551
Posted: 12:30pm 10 Jun 2025
Copy link to clipboard 
Print this post

  Quote  Thanks - fixed it
That was quick. Thank you.
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 419
Posted: 07:46pm 11 Jun 2025
Copy link to clipboard 
Print this post

  matherp said  V6.00.02RC26 is available on

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes bug in chain command
Fixes bug in mm.topic$ (untested)


I'm getting an error in the FRAMEBUFFER COPY F,N,B command. The B is causing the error although I am using an LCD as my console.

OPTION SERIAL CONSOLE COM1,GP0,GP1
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP6,GP7, SLOW
OPTION FLASH SIZE 4194304
OPTION LIBRARY_FLASH_SIZE  34000
OPTION COLOURCODE ON
OPTION CONTINUATION LINES ON
OPTION CASE UPPER
OPTION DEFAULT COLOURS GREEN, BLACK
OPTION KEYBOARD I2C
OPTION CPUSPEED (KHz) 252000
OPTION LCDPANEL CONSOLE ,, FF00
OPTION DISPLAY 26, 40
OPTION LCDPANEL ILI9488P, PORTRAIT,GP14,GP15,GP13,,INVERT
OPTION WIFI MySpectrumWiFie0-2G, **************, RP2350A
OPTION SDCARD GP17, GP18, GP19, GP16
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION PLATFORM PicoCalc
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10169
Posted: 09:37pm 11 Jun 2025
Copy link to clipboard 
Print this post

Background copy isn't available on the WebMite
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10169
Posted: 01:03pm 12 Jun 2025
Copy link to clipboard 
Print this post

The WebMite firmware has been a nightmare to get running reliably which is now does (for Geoff's watering controller which is the most complex Web program out there). Background copy uses the second processor, inter-processor fifos, and inter-processor mutex to work. The chances of the WebMite still being reliable if I enabled all this is IMHO next to zero and I'm not prepared to risk it.
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 419
Posted: 04:55pm 12 Jun 2025
Copy link to clipboard 
Print this post

  matherp said  The WebMite firmware has been a nightmare to get running reliably which is now does (for Geoff's watering controller which is the most complex Web program out there). Background copy uses the second processor, inter-processor fifos, and inter-processor mutex to work. The chances of the WebMite still being reliable if I enabled all this is IMHO next to zero and I'm not prepared to risk it.


I don't blame you a bit. Sorry if it sounded like I was complaining. It was just that I looked in the manual and didn't see anything excluding the Web version from using the B parameter so I was curious as to why mine wasn't working. I could never produce anything as complex as MMBasic so I'd be the last person to criticize you!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10169
Posted: 04:57pm 12 Jun 2025
Copy link to clipboard 
Print this post

No issue, should be mentioned in the manual
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 419
Posted: 10:04pm 12 Jun 2025
Copy link to clipboard 
Print this post

  matherp said  V6.00.02RC26 is available on

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes bug in chain command
Fixes bug in mm.topic$ (untested)


I put
OPTION SERIAL CONSOLE COM1,GP0,GP1

in my RP2350A. Now I'd like to get rid of it without reloading the firmware.

I tried
OPTION SERIAL CONSOLE DISABLE

and the system restarts but the original setting is still there. Is there a way to do it?
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2551
Posted: 10:58pm 12 Jun 2025
Copy link to clipboard 
Print this post

Perhaps specific to 2350. Tested on 2040 ok.

Just an idea, see if setting OPTION SERIAL CONSOLE gp1,gp0,B first then OPTION SERIAL CONSOLE DISABLE makes any difference.
Works on 2350VGA RC19.
Edited 2025-06-13 10:03 by phil99
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 419
Posted: 01:58am 13 Jun 2025
Copy link to clipboard 
Print this post

  phil99 said  Perhaps specific to 2350. Tested on 2040 ok.

Just an idea, see if setting OPTION SERIAL CONSOLE gp1,gp0,B first then OPTION SERIAL CONSOLE DISABLE makes any difference.
Works on 2350VGA RC19.


Error : Pin 2/GP1 is in use
 
     Page 52 of 52    
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025