Search found 8 matches

by ty9000
Sun Nov 21, 2021 5:56 pm
Forum: Programming
Topic: 16-bit Subtraction
Replies: 9
Views: 1511

Re: 16-bit Subtraction

I'm curious as to how your .receieveBits routine works.

So, I did move away from bit-banging the code into RAM one bit at a time and instead moved over to "byte-banging" the code using a '595 shift register. It's much more stable this way. But, I do still have the .receiveBits code around ...
by ty9000
Thu Nov 18, 2021 9:09 pm
Forum: Newbies
Topic: R6551 & Arduino
Replies: 7
Views: 6547

Re: R6551 & Arduino

ty9000, I have not gotten into Arduino, but I suspect it does not have the RS-232 line drivers and receivers...

No, I don't think Arduinos have line drivers/receivers - some of the larger ones have multiple Serial interface ports (Tx and Rx) where the baud rate can be defined, whereas smaller ...
by ty9000
Thu Nov 18, 2021 6:35 pm
Forum: Newbies
Topic: R6551 & Arduino
Replies: 7
Views: 6547

Re: R6551 & Arduino

Sorry! I know I'm not being very clear on what I am asking for; that's my fault. I did read over the 6551 datasheet and added some code to initialize it, setting up the command and control registers for parity, baud rate, echo, and all that. I made sure to read back the registers to make sure my ...
by ty9000
Thu Nov 18, 2021 12:51 pm
Forum: Newbies
Topic: R6551 & Arduino
Replies: 7
Views: 6547

Re: R6551 & Arduino

To start with, I just wanted to get it working - that is, load data into RAM from an Arduino. I was thinking since the 6551 chip is TTL, the Arduino could send bits to the RxD pin directly. I don't really understand how the 6551 chip works, to be honest. Reading over the 6551 datasheets doesn't seem ...
by ty9000
Thu Nov 18, 2021 12:30 am
Forum: Newbies
Topic: R6551 & Arduino
Replies: 7
Views: 6547

R6551 & Arduino

Hello all! I've just started working on adding an R6551 to my 65c02 computer. I have read over some of Garth's RS-232 primer guide and just had a quick question - is it possible to use an Arduino as a RS-232 transmitter to an R6551 receiver without a line driver/receiver, like the MAX232? Thanks!
by ty9000
Wed Nov 03, 2021 9:28 pm
Forum: Programming
Topic: 16-bit Subtraction
Replies: 9
Views: 1511

Re: 16-bit Subtraction

Yes, that was it - thank you so very much! That has been kicking my butt for way too long. Adding in that code even made the program shorter, overall. Still trying to get the hang of this all. Thanks again!!
by ty9000
Wed Nov 03, 2021 7:43 pm
Forum: Programming
Topic: 16-bit Subtraction
Replies: 9
Views: 1511

Re: 16-bit Subtraction


Before going any further, you know that the X register is only 8-bits wide and will wrap to zero after 255 ...
-Gordon

Doh! That's what my issue is! I even thought about that a few days ago before I started to code anything and I must have just forgotten about it in all the excitement of getting ...
by ty9000
Wed Nov 03, 2021 7:15 pm
Forum: Programming
Topic: 16-bit Subtraction
Replies: 9
Views: 1511

16-bit Subtraction

Hello all! I am working on expanding the Ben Eater 6502 project and I started looking at implementing a serial function, with data coming from an Arduino and being loaded into RAM. I managed to get the code to work properly, but only for an 8-bit amount of instructions. If the number of instructions ...