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.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9757
Posted: 05:49am 15 Feb 2022
Copy link to clipboard
Print this post
As per title.
I don't see them mentioned in the PM manual, so I am just curious.
I am specifically wanting to use the additional ports functions such as the serial transmit and receive, and possibly the I2C and SPI transmit and receive C routines.
Yes? No?Smoke makes things work. When the smoke gets out, it stops!
panky Guru Joined: 02/10/2012 Location: AustraliaPosts: 1116
Posted: 06:07am 15 Feb 2022
Copy link to clipboard
Print this post
CSUB... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2832
Posted: 06:17am 15 Feb 2022
Copy link to clipboard
Print this post
Yes, and at the address below Peter provides an example. (They need to be compiled for the PicoMite, others won't work)
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9757
Posted: 02:41am 16 Feb 2022
Copy link to clipboard
Print this post
Excellent, thanks.
EDIT: Is there a way to re-compile the serial, I2C and SPI Cfunctions/Csubs for the standard MM series to the PM? A nice simple application that converts from one to the other would be nice, but probably does not exist. Edited 2022-02-16 12:46 by GrogsterSmoke makes things work. When the smoke gets out, it stops!
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4147
Posted: 08:39am 16 Feb 2022
Copy link to clipboard
Print this post
"Just" install the toolchain & use it, I expect.
Worked for me to build the picomite sources, so very likely the same.
(Though it will depend on what those CSUBs do. If they directly access hardware, e.g. I/O ports, those parts will need rewrites similar to the rewrites MMBasic needs on every port.)