![]() |
Forum Index : Microcontroller and PC projects : PICO: Serial CSUB's?
Author | Message | ||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
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 KingdomPosts: 10315 |
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 ZealandPosts: 9610 |
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: NetherlandsPosts: 5091 |
+1 PicomiteVGA PETSCII ROBOTS |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
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: NetherlandsPosts: 5091 |
@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 KingdomPosts: 10315 |
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: AustraliaPosts: 3292 |
Agah, my mistake. Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |