CPCWiki forum

General Category => Programming => Topic started by: Neurox66 on 18:13, 01 September 24

Title: AUX Port
Post by: Neurox66 on 18:13, 01 September 24
Hi,
I've a CPC 6128 Plus and I should read the AUX port (the one with the RJ-11 cable for the light pen) what addresses should I read with INP() ?

Thanks  :D
Title: Re: AUX Port
Post by: GUNHED on 22:21, 01 September 24
Read the signal from the CRTC, like any other light pen.
Title: Re: AUX Port
Post by: McArti0 on 09:01, 02 September 24
Frame:out &bcff,17 : L%=inp(&bfff):frame:out&bcff,16:H%=inp(&bfff)
Title: Re: AUX Port
Post by: Neurox66 on 16:08, 04 September 24
Thank you for replies.
I actually don't want to use the port to connect a pen or gun but use it to receive data.
I'll try 
Title: Re: AUX Port
Post by: andycadley on 16:29, 04 September 24
I think, at that point, you just have a rubbish version of the joystick port with only a fire signal. I'm not sure the CRTC position could be usefully used really.
Title: Re: AUX Port
Post by: Neurox66 on 17:05, 04 September 24
Not the position of the CRTC but the keys pressed. 
Basically by simulating key presses I can construct a kind of morse code to pass messages to the CPC 6128Plus  ;D ;D
Title: Re: AUX Port
Post by: andycadley on 18:03, 04 September 24
But, since you can't really use the LPEN signal, you're just limited to signals you could send via the joystick port.
Title: Re: AUX Port
Post by: Bryce on 18:20, 04 September 24
Quote from: Neurox66 on 17:05, 04 September 24Not the position of the CRTC but the keys pressed.
Basically by simulating key presses I can construct a kind of morse code to pass messages to the CPC 6128Plus  ;D ;D

It won't be morse, as the pulses would all have the same length, but you could "bit-bang" some sort of serial data into the CPC.

Bryce.
Title: Re: AUX Port
Post by: dthrone on 23:59, 04 September 24
Quote from: Neurox66 on 17:05, 04 September 24Not the position of the CRTC but the keys pressed.
Basically by simulating key presses I can construct a kind of morse code to pass messages to the CPC 6128Plus  ;D ;D
Could send wacky data format to the analogue port? ???
Title: Re: AUX Port
Post by: GUNHED on 12:06, 05 September 24
Better use the joystick ports, not fun to fry the ASIC in the 6128plus. 
Powered by SMFPacks Menu Editor Mod