Vic 20 user port at no more than 1200 baud?

Modding and Technical Issues

Moderator: Moderators

rwv01
Vic 20 Enthusiast
Posts: 161
Joined: Thu Nov 01, 2007 8:14 am

Vic 20 user port at no more than 1200 baud?

Post by rwv01 »

Hi guys.
For some reason, I my Vic is only able to operate at 1200 baud or less
with my modem or RS232 interface. The modem is an Aprotek Minimodem C24 and the RS232
interface is a Vic 1011A, both capable of 2400 baud rates as are the terminal programs used supposed to be.
Any ideas about this?
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Vic 20 user port at no more than 1200 baud?

Post by Mike »

The RS232 routines of the VIC-20 KERNAL don't work reliably with more than 1200 baud, and also have their share with other bugs (for example, the hardware handshake is broken). However, lately, srowe developed a wedge which fixes the errors of the original code, and which should also work at 2400 baud - see here for more details.
User avatar
plbyrd
Vic 20 Hobbyist
Posts: 135
Joined: Tue Jun 01, 2010 9:32 pm
Website: http://thesharp.ninja
Location: Clarksville, TN
Occupation: Software Engineer

Re: Vic 20 user port at no more than 1200 baud?

Post by plbyrd »

NinjaTerm supports 2400 baud. I've used it reliably with the EZ232 interface and a RPi. I had mixed results with the Jim Drew WiFi modem.

https://github.com/sharpninja/ninjaterm
rwv01
Vic 20 Enthusiast
Posts: 161
Joined: Thu Nov 01, 2007 8:14 am

Re: Vic 20 user port at no more than 1200 baud?

Post by rwv01 »

Thanks guys.
I tried srowe's wedge but I could only get up to 1200 baud, even with ninjaterm.
Of course It could be just my equipment, or maybe I didn't load the wedge properly.
I loaded it first with 32k ram (,8 + run right?), and at the ready promt I loaded the terminal program and ran it.
As I understand from the thread about it, the wedge only supports up to 1200 baud at this point.
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Vic 20 user port at no more than 1200 baud?

Post by Mike »

rwv01 wrote:[...] I loaded it first with 32k ram (,8 + run right?), [...]
Not quite so. You need to load the wedge absolute, with ",8,1" and then start it with SYS40960. Indeed RAM in BLK5 is necessary.

After that, it's also necessary to reinit pointers of BASIC with NEW, so you won't get any ?OUT OF MEMORY errors (<- this is not especially related to the wedge, it happens with all programs/data that are loaded outside the memory range available for BASIC programs).

That being said, it would actually be nice to either prepend a BASIC stub (so the file can easily be loaded and run like a BASIC program) or prepend a cartridge header. Srowe?
User avatar
srowe
Vic 20 Scientist
Posts: 1325
Joined: Mon Jun 16, 2014 3:19 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by srowe »

I'll stick an autostart on the front of it.
User avatar
srowe
Vic 20 Scientist
Posts: 1325
Joined: Mon Jun 16, 2014 3:19 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by srowe »

Try the following.
Attachments
rs-232-fix-4.zip
(8.12 KiB) Downloaded 60 times
rwv01
Vic 20 Enthusiast
Posts: 161
Joined: Thu Nov 01, 2007 8:14 am

Re: Vic 20 user port at no more than 1200 baud?

Post by rwv01 »

Thanks for the update, srowe.
I'll let you know what happens!
rwv01
Vic 20 Enthusiast
Posts: 161
Joined: Thu Nov 01, 2007 8:14 am

Re: Vic 20 user port at no more than 1200 baud?

Post by rwv01 »

OK. I was able to use the wedge at 2400 baud with Ninjaterm and Plus Term.
I loaded the wedge using ",8,1" and the terminal programs with ",8 +run".

Also tried it with Mighty Term, but could not get it to work. Mighty Term has to be loaded
using ,8,1, then sys8192. Could that be causing a conflict?
User avatar
srowe
Vic 20 Scientist
Posts: 1325
Joined: Mon Jun 16, 2014 3:19 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by srowe »

Shouldn't do. As long as Mighty Term doesn't try to change the NMI or OPEN vectors is should work too.
You are doing a reset after loading the wedge, otherwise it won't be functioning.
User avatar
RobertBe
Vic 20 Elite
Posts: 2304
Joined: Sat Jul 14, 2007 2:48 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by RobertBe »

rwv01 wrote:OK. I was able to use the wedge at 2400 baud with Ninjaterm and Plus Term.
Plus Term... sweet!

Writing from the Los Angeles area,
Robert Bernardo
Fresno Commodore User Group
http://www.dickestel.com/fcug.htm
User avatar
Ghislain
Realms of Quest
Posts: 1279
Joined: Sun Aug 08, 2004 12:54 am

Re: Vic 20 user port at no more than 1200 baud?

Post by Ghislain »

rwv01 wrote: Sat Oct 28, 2017 11:52 pm OK. I was able to use the wedge at 2400 baud with Ninjaterm and Plus Term.
I loaded the wedge using ",8,1" and the terminal programs with ",8 +run".

Also tried it with Mighty Term, but could not get it to work. Mighty Term has to be loaded
using ,8,1, then sys8192. Could that be causing a conflict?
I can confirm this is the case for me as well--while I can get Plus Term to work in 2400 baud with the wedge, I'm simply unable to get this to work with Mighty Term.

Plus Term only works in 22 columns, however. But maybe I can recompile srowe's source code so that it can be relocated away from $A000 and then I can get it to work with VICTERM 40 (which is also located at $A000). Being able to do some BBSing in 40 columns at 2400 baud would be a really great thing to do.

@srowe: is your wedge relocatable?
"A slave is one who waits for someone to come and free him." -- Ezra Pound
User avatar
srowe
Vic 20 Scientist
Posts: 1325
Joined: Mon Jun 16, 2014 3:19 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by srowe »

Ghislain wrote: Fri Apr 30, 2021 6:45 am @srowe: is your wedge relocatable?
Sure, where would you like it to reside?
User avatar
Ghislain
Realms of Quest
Posts: 1279
Joined: Sun Aug 08, 2004 12:54 am

Re: Vic 20 user port at no more than 1200 baud?

Post by Ghislain »

srowe wrote: Fri Apr 30, 2021 7:29 am
Ghislain wrote: Fri Apr 30, 2021 6:45 am @srowe: is your wedge relocatable?
Sure, where would you like it to reside?
Thanks for the quick reply! I think $0400 (1024) would be great.

Failing that, I might just use SCREEN 40 and a dumb terminal program (@2400 baud) and go from there.
"A slave is one who waits for someone to come and free him." -- Ezra Pound
User avatar
srowe
Vic 20 Scientist
Posts: 1325
Joined: Mon Jun 16, 2014 3:19 pm

Re: Vic 20 user port at no more than 1200 baud?

Post by srowe »

Here's a version that loads at $0400, you'll need to SYS1033 to start it.
Attachments
rs-232-fix-0400.zip
(1.04 KiB) Downloaded 27 times
Post Reply