cleaning up the 6502 serial code, so I can finish it and get serial software upload working :)
I suppose I'll still have to write a little monitor.. hmm..
The 6502/6522 code is able to receive a character at 9600 baud and send it back!
... Once, then it all goes to hell and corrupts the memory...
working on it! :)
When your servicing an edge interrupt, and in that service you disable the edge interrupt, you get one more edge interrupt before its disabled?...
Chapter two, Serial IO...
I have defeated the 6522, it now clocks 9600 baud serial bits into the shift register, BUT. I have to get them out, and then reverse them (the 6522 clocks it in backwards)
I have to do some code cleanup too, some parts of the code are starting to step on each other.
I have a working transmitter already. so I can send back the values I read to see if their right.
hahah, being a z80 guy I didn't quite notice those instructions are off-key for a 6502!
:) fixed.
-- THE 6522 --
6502 peripheral chip that was ahead of its time, and did not seem to be understood by the people who wrote its very datasheet...
[vs Rue]
* thead *
I have SO many other projects I should be working on right now....
SO There are two timers in the 6522, T1, a fully capable 16 bit interval or duration timer...
And T2, a footnote in the datasheet mentioning that it exists too...
"Timer 2 is 'One Shot' mode only"
ok, but, Its not tho...