Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:59 02 Aug 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 : PICO: Serial CSUB's?

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:01am 04 Jul 2022
Copy link to clipboard 
Print this post

Hello all.

Do any CSUB's exist for the PicoMite, that bitbang serial?
I'm looking for the equivalent of the SerialTx and SerialRx Cfunctions for the standard MM series of chips.

I often need MORE then two COM ports, and this is a bit of a brickwall for me at the moment with the PICO - only two COM ports.

I'm grateful for the two that DO exist, but has anyone - Peter? - done serial TX and RX CSUB's for the Pico module?

The TX one is the one I use the most.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 10:44am 04 Jul 2022
Copy link to clipboard 
Print this post

Grogster

Try this experimental version on a PicoMite (not VGA)


PicoMite.zip



BITBANG SERIALTX pinno, baudrate, ostring$
BITBANG SERIALRX pinno, baudrate, istring$, timeout_in_ms, status% [,nbr] [,terminators$]

e.g.


BITBANG SERIALTX 4, 115200, "Hello world"
BITBANG SERIALRX 5, 115200, a$, 10000, s%, ,chr$(10)


status% returns:
-1 = timeout (NB: use len(s$) to see number received)
2 = number of characters requested satisfied
3 = terminating character satisfied
Edited 2022-07-05 01:38 by matherp
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 11:38pm 04 Jul 2022
Copy link to clipboard 
Print this post

Wow - thank you.  
I have jobs to do today, but I will check this out and report back later tonight.

EDIT: The serialtx one seems to work perfectly.  

Have tested a few baudrates up to 115k2, all of which are working fine.  Not sure if there is an upper limit to the baudrate?

I will have a play with the serialrx one now, and will post back with results.

EDIT: Serialrx also works beautifully.

Any chance this can be added to the standard firmware and also the VGA version Peter?



Edited 2022-07-05 15:04 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 06:26am 05 Jul 2022
Copy link to clipboard 
Print this post

  Grogster said  
Any chance this can be added to the standard firmware and also the VGA version Peter?


+1
PicomiteVGA PETSCII ROBOTS
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 10:51am 05 Jul 2022
Copy link to clipboard 
Print this post

These are CSubs so they don't need to be "added to the standard firmware", you can just include them in your program.

I can add them to the PicoMite download.

Geoff
Geoff Graham - http://geoffg.net
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 11:07am 05 Jul 2022
Copy link to clipboard 
Print this post

@Geoff,

Unless I am mistaken, the CSUB's are already part of beta #14. Peter is faster than lightning...

Flash....

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 11:14am 05 Jul 2022
Copy link to clipboard 
Print this post

They actually needed quite a lot of work as they depend on tight timing and fast I/O so the CSUBs wouldn't have worked and it was easier to incorporate them into the firmware
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 06:09am 06 Jul 2022
Copy link to clipboard 
Print this post

Agah, my mistake.
Geoff Graham - http://geoffg.net
 
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