News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Universal Serial Interface for Amstrad CPC (a.k.a USIfAC)

Started by ikonsgr, 19:20, 05 January 19

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ComSoft6128


GUNHED

Connecting a CPC with a CPC using a 3-wire cable works very well. I got my new wires and soldered them together, and the Terminal program works very well. I used:

Tx --- Rx
Rx --- Tx
GND - GND

Next step: Make a CPC network out of them.
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

ikonsgr

GUNHED, you can also use bluetooth modules instead of direct cables, that way, you can have amstrads in a distance up to 10 meters apart!
For Amstrad LAN, you should use wifi modules, and better try it first using  a router as access point (where all wifi modules should connect to), and if all goes well, then you could try to use one of wifi modules as access point to create a completely "Amstrad only" lan network! 
I'm still waiting for a couple of wifi modules i've ordered to make some tests my self...  ::)

GUNHED

Well, I tried it, with two HC-06 modules (without button). But they don't communicate. I'm probably the most inexperienced Bluetooth user ever.

In case I enter in one of the terminal windows: AT+ROLE=1 nothing happens. I do a reset of the CPC and start terminal again. Nothing happens. Sorry, I still seem to forget something.

Maybe it's because they are both HC-06?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

ikonsgr

BT modules without button, can't enter in administration mode easily, in order to  give AT commands (i think there is a way ,by holding ENABLE pin to ground or something like that) , so you can't change either role or  speed.

GUNHED

Ok then I get one HC-05 for one CPC and can use the other HC-06 for the other CPC, right?

http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

ikonsgr

Yes,i suppose you could do that, but they will only be able to communicate at default speed which is 9600bps.

GUNHED

http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

ikonsgr

MAJOR UPDATE!

[attach=1,msg172275]

- Finally,a dsk image function is added to the utility program! It supports data/system format images and with quite fast speeds: ~55seconds to write a 180kb dsk image to an unformmated disk, or ~40seconds to an already amstrad formatted disk (@460800bps)!

- MAJOR update of user guide: new sections with detailed instructions and help photos for each function were added, along with an active table of contents for easy guide, as manual has become 20+pages!

- Add an extra button <Caps Lock> on Amstrad CPC2PC program,to select/unselect all the files at once! This is useful, if you want to transfer all files of the disk, or if you want to "invert" the already selected files (e.g. all selected files will be unselected, and all other, will be selected).

- Fix a bug which prevented the enumeration of serial ports in Windows vista/7 32bit

- Added a "rescan" button for rescanning serial ports after application is started (in order to avoid close/reopen of application for serial port acknowledge)

ikonsgr

Added ~20 more games in direct load games list (games that are tested and verified that work ok with direct load function):
https://www.dropbox.com/sh/hzp3a4b7fktcn8c/AAAj2U8otKw26j-chnd8uUxla?dl=0

GUNHED

Just a question for completeness. The USIfAC I guess works with 8N1. Is it possible to change, Parity, Bits/Byte, Stop-Bits ... ?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

LambdaMikel

Good question.

Any somebody please try the MP3 module test with USIfAC as well (if nobody volounteers, I will try at some point). It worked well with LambdaSpeak 3's serial port.

GUNHED

You could connect to LS3 serial port? Did you use 8N1?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

LambdaMikel

Quote from: GUNHED on 15:43, 15 April 19
You could connect to LS3 serial port? Did you use 8N1?


Yes, 9600 8N1. You can see how to send play / volume / stop  commands in the video I posted.
I can also share the DSK.


ACtually, the latest LS30.DSK should already have "mp3.bas". I guess it should be easy to adjust for USIfAC.

LambdaMikel

#114
Hmm, does not allow to upload DSK... here are screenshots for the MP3.bas


EDIT: note that you only need to send ONE 255... it just because 255 needs to be escaped in LambdaSpeak serial interface.

ikonsgr

Quote from: GUNHED on 16:25, 11 April 19
Just a question for completeness. The USIfAC I guess works with 8N1. Is it possible to change, Parity, Bits/Byte, Stop-Bits ... ?
These are not supported by the hardware serial interface on PIC 16F1579.
 


LambdaMikel

Quote from: ikonsgr on 11:40, 22 April 19
   These are not supported by the hardware serial interface on PIC 16F1579.

I guess these modi are mostly for exotic and devices of historical interest anyhow... never had anything else than 8N1 anyhow. @GUNHED do you know of any devive that's not using 8N1?

Dandare

The PIC EUSART supports 9-bit transmission. This bit could be used for data, parity or serve as a second stop bit, but not any two of them at the same time. Calculation of the parity bit should be sent alongside the data byte, by setting TX9D. In the same way, testing for receiving data parity should be done on the RCIF ISR.


Including a second stop bit or even half a stop bit for 1,5 standard value could potentially be done by a timer or delay after the TXIF is set, using the idle status of the line as a stop bit. This is, however, a bit of a stretch of the EUSART.


So, potentially this is what the PIC could do, Note that sometimes the stop bit is done by the hw peripheral itself and sometimes by means of said delay.


9,N,x
8,(Even/Odd),x


But... at the end of the day, almost everything is 8,N,1.  :)

GUNHED

There _were_ lots of other devices than 8N1 back the day, but today I guess I'm pretty fine with having only functions dealing with 8N1.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

260Z

This project sounds awesome  :D


Will send a PM


Cheers,
Rob

Fabrizio Radica

Hi :)
I've recently bought this module on ebay :)

Can i connect, and use (fm player?), this FM Module on CPC? i've already use it on C64.

https://www.youtube.com/watch?v=FUan3vibg18
Ciao!


Fabrizio Radica

Quote from: LambdaMikel on 22:10, 10 June 19
Unlikely. That's I2C, not serial / UART.
You could use it with LambdaSpeak 3 instead of RTC board  ;)


This one might do for UART / USIFAC:
https://www.amazon.com/UTP-87-108MHZ-Receiver-Wireless-Microphone/dp/B07FKRML7B/ref=sr_1_6?keywords=stereo+radio+module&qid=1560200987&s=toys-and-games&sr=1-6


Or this one:
https://www.amazon.com/UTP-87-108MHz-Wireless-Microphone-Receiver/dp/B07FKR5GYD/ref=sr_1_20?keywords=stereo+radio+module&qid=1560200987&s=toys-and-games&sr=1-20
oh.. can i use USIFAC + LambdaSpeak 3 + Mp3 module?
if yes.. i would like to buy LS3, now (how much costs?) :)
Sounds great for my LocomotiveBasic Games like this.


https://www.youtube.com/watch?v=qhCgyKwt6JQ

GUNHED

Quote from: Fabrizio Radica on 12:23, 11 June 19
oh.. can i use USIFAC + LambdaSpeak 3 + Mp3 module?
if yes.. i would like to buy LS3, now (how much costs?) :)
Well, here I run a CPC 6128 with USIfAC and LambdaSpeak III very well.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

LambdaMikel

@Fabrizio Radica if you want to buy LS 3 because of the UART Radio, then let's wait a little bit, I also ordered on of these to check them out, so I can give you better support once I got one running.


The prices for LS 3 vary depending on what you want to get - it is configurable. The prices have been posted in the LS 3 thread, please have a look there.


Cheers
Michael

Powered by SMFPacks Menu Editor Mod