Search found 182 matches: RS232

Searched query: rs232

by Mike
Tue Feb 06, 2024 3:47 am
Forum: Programming
Topic: Resetting IRQs
Replies: 10
Views: 2103

Re: Resetting IRQs

... (keyboard, jiffy clock, tape motor control) or the timing of tape load (T1 only) and save (T1 and T2). The VIA #1 timers produce NMIs (mostly for RS232 operations). It is somewhat possible to run standard IEC I/O alongside VIA#2 T1 IRQs, however as the KERNAL does block IRQs at certain time-critical ...
by toby405
Tue Dec 19, 2023 8:08 am
Forum: Programming
Topic: RS232 value of first character is doubled
Replies: 4
Views: 4326

Re: RS232 value of first character is doubled

Framing error is confirmed.

To fix, I just stored $01 to NINONE ($A9) right after the call to OPEN ($FFC0) and all is well!
by srowe
Tue Dec 19, 2023 1:05 am
Forum: Programming
Topic: RS232 value of first character is doubled
Replies: 4
Views: 4326

Re: RS232 value of first character is doubled

If this caused the bits of the first byte to be shifted one to the left (like what an ASL would do for example) it would result in the byte value being multiplied by two. Check the contents of RSSTAT ($0297) after receiving the first character, I bet you have $02 indicating a framing error. You sho...
by toby405
Mon Dec 18, 2023 9:03 pm
Forum: Programming
Topic: RS232 value of first character is doubled
Replies: 4
Views: 4326

Re: RS232 value of first character is doubled

Very interesting comments about RS232 in this post: https://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?p=119706#p119706 RINONE ($A9), the flag used to record when a start bit is received is not initialized when an input channel ...
by furroy
Mon Dec 18, 2023 4:33 pm
Forum: Programming
Topic: RS232 value of first character is doubled
Replies: 4
Views: 4326

Re: RS232 value of first character is doubled

probably off by a bit? make sure both sides are using same parity & stop bits settings i imagine
by toby405
Mon Dec 18, 2023 3:53 pm
Forum: Programming
Topic: RS232 value of first character is doubled
Replies: 4
Views: 4326

RS232 value of first character is doubled

... RS-232C device and waits for characters. I have a terminal set for 1200 baud connected to COM4 and I have the same settings in the VICE Userport RS232 section. The program displays the hex value of any character typed on the terminal keyboard. On program restart, the value of the first character ...
by Mike
Sun Apr 30, 2023 10:38 am
Forum: Programming
Topic: Porting CP/M to the VIC-20: memory map questions
Replies: 10
Views: 1244

Re: Porting CP/M to the VIC-20: memory map questions

... and thus effectively also allocated for BASIC. In $90..$FA is where the KERNAL I/O mostly does its things for keyboard, screen, tape, IEC, RS232; with some of the addresses shared between tape, IEC and RS232. Anything that could in the widest sense be regarded as implementation of a language ...
by Mike
Tue Jul 12, 2022 11:08 am
Forum: Programming
Topic: NTSC vs PAL
Replies: 2
Views: 403

Re: NTSC vs PAL

... KERNAL fitted, neither the other way round it is. Not only makes this the screen window off-center, but also the timing values for jiffy clock and RS232 Baud rates are completely off. A program really can't be expected to operate under such screwed-up circumstances. :) I'm going to have a rummage ...
by nbla000
Mon Apr 11, 2022 9:47 am
Forum: Programming
Topic: help with VIA test prog needed
Replies: 15
Views: 1197

Re: help with VIA test prog needed

... just a VIA 6522 default value on Power up? I'm asking because you may change these addresses apparently without problems at least if you don't use RS232 software, and these values do not change even if you reset the machine but only if you switch off the Vic-20, so how is supposed to use these ...
by doug_in_nc
Sat Nov 13, 2021 10:43 am
Forum: Programming
Topic: cc65 and RS232 User Port Serial
Replies: 91
Views: 40055

Re: cc65 and RS232 User Port Serial

Thanks !
by srowe
Sat Nov 13, 2021 1:54 am
Forum: Programming
Topic: cc65 and RS232 User Port Serial
Replies: 91
Views: 40055

Re: cc65 and RS232 User Port Serial

Sorry for the necro-post but I was looking through this thread and tried to download the final RS232 fix from srowe, but unfortunately the link is now broken. Does anyone have a copy of the file that they could post here for posterity and idiots like me? Oops, I missed ...
by doug_in_nc
Fri Nov 12, 2021 6:38 pm
Forum: Programming
Topic: cc65 and RS232 User Port Serial
Replies: 91
Views: 40055

Re: cc65 and RS232 User Port Serial

Sorry for the necro-post but I was looking through this thread and tried to download the final RS232 fix from srowe, but unfortunately the link is now broken. Does anyone have a copy of the file that they could post here for posterity and idiots like me? I'm looking at ...
by Mike
Fri Sep 10, 2021 12:42 pm
Forum: Programming
Topic: Reliving VIC20
Replies: 18
Views: 1495

Re: Reliving VIC20

... (especially not unrelated stuff) unless absolutely necessary for the modifications to work. So JiffyDOS somewhat deliberately removed the Tape and RS232 routines to make room for the new routines of the faster IEC protocol. Use of tape or RS232 triggers an ?ILLEGAL DEVICE NUMBER error with JiffyDOS. ...
by Mike
Tue Sep 07, 2021 1:29 am
Forum: Programming
Topic: Reliving VIC20
Replies: 18
Views: 1495

Re: Reliving VIC20

... no good idea - not only are the VIC registers wrongly initialised, but the jiffy clock also gets wrong timer values, and the timer constants for RS232 are also different!
by R'zo
Thu Dec 24, 2020 9:56 pm
Forum: Programming
Topic: Interrupts - wedged code
Replies: 11
Views: 2980

Re: Interrupts - wedged code

There's also the NMI ( N on M askable I nterrupt), which normally processes the RESTORE key as one of its sources. The RS232 routines in the KERNAL are another 'customer'. The corresponding vector resides at ($0318) - be warned: getting an own NMI routine working is already very advanced ...