--
You received this message because you are subscribed to the Google Groups "Altair-Duino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair-duino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/6f4c47e1-d7b5-4705-86ab-a1a892d50e6bn%40googlegroups.com.
The 2SIO with 6850 ACIA will not transmit if CTS is not active. When CTS goes low, the Transmit Buffer Empty bit is also goes low even if it’s empty. Are you checking that the Transmit Buffer Empty bit of the status port is high before sending a character?
10 GOSUB 1000
20 GOSUB 1100
30 PRINT A
40 A=ASC("*")
50 GOSUB 1300
60 GOSUB 1200
70 PRINT CHR$(A)
999 END
1000 REM 2SIO BASIC SUBROUTINES
1010 REM SET 2SIOPORT TO BASE ADDRESS
1020 SIOPORT=&H12
1030 RDRF=1:TDRE=2
1050 OUT SIOPORT,3
1060 OUT SIOPORT,15
1070 RETURN
1100 REM 1100 CONST - RETURNS TRUE IF CHARACTER AVAILABE
1110 A=INP(SIOPORT)
1120 A=A AND RDRF
1130 RETURN
1200 REM 1200 CONIN - RETURNS INPUT CHARACTER IN A VARIABLE
1210 WAIT SIOPORT,RDRF
1220 A=INP(SIOPORT+1)
1230 RETURN
1300 REM 1300 CONOUT - SEND CHARACTER IN A VARIABLE
1310 WAIT SIOPORT,TDRE
1320 OUT SIOPORT+1,A
1330 RETURN
--
You received this message because you are subscribed to the Google Groups "Altair-Duino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair-duino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/804f9269-a9a7-4435-931b-9f1ab1569ed7n%40googlegroups.com.
[...] I can write to the ports, but not read from them yet.
1050 OUT SIOPORT,&H03
1060 OUT SIOPORT,&H15
--
You received this message because you are subscribed to the Google Groups "Altair-Duino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair-duino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/4436cdc1-3157-4aa7-9118-df44ff2549a0n%40googlegroups.com.
On Jul 8, 2024, at 5:26 PM, Hendrik Magilsen <ve3...@gmail.com> wrote:
Thanks! A few things for me to try over the next week and experiment with. Good point about pulling the unused signals high/low. I miss my trusty old RS232 breakout box. :-) These Aliexpress MAX232 modules generally don't carry over all the signals. Best I've found is VCC/GND, TX/RX, CTS/RTS. I may have to build my own.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/652c9854-e244-47c2-99cd-ad3d3759e485n%40googlegroups.com.
10 GOSUB 1000
20 GOSUB 1100
30 PRINT A
40 A=ASC("*")
50 GOSUB 1300
60 GOSUB 1200
70 PRINT CHR$(A)
999 END
1000 REM 2SIO BASIC SUBROUTINES
1010 REM SET SIOPORT TO BASE ADDRESS
1020 SIOPORT=&H12
1030 RDRF=1:TDRE=2
1050 OUT SIOPORT,&H03
1060 OUT SIOPORT,&H55
1070 RETURN
1100 REM 1100 CONST - RETURNS TRUE IF CHARACTER AVAILABE
1110 A=INP(SIOPORT)
1120 A=A AND RDRF
1130 RETURN
1200 REM 1200 CONIN - RETURNS INPUT CHARACTER IN A VARIABLE
1210 S=INP(SIOPORT)
1220 IF (S AND RDRF) <> RDRF THEN GOTO 1210
1230 A=INP(SIOPORT+1)
1240 RETURN
1300 REM 1300 CONOUT - SEND CHARACTER IN A VARIABLE
1310 S=INP(SIOPORT)
1320 IF (S AND TDRE) <> TDRE THEN GOTO 1310
1330 OUT SIOPORT+1,A
1340 RETURN
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/410B2BB8-E03C-46E7-877E-105DEBCB7434%40deltecent.com.