Hello,
I am new to hardware design and would like to design a 6502 SBC. I am now trying to design a memory mapper/decoder.
The memory layout I came up with is as follows
0000-BFFF = RAM
C000-CFFF = I/O
D000-FFFF = ROM
And the decoder (oututs active low for chip selects)
decoder.PNG
Is that ...
Search found 12 matches
- Wed May 22, 2019 5:47 am
- Forum: Hardware
- Topic: Help designing address decoder
- Replies: 4
- Views: 1139
- Fri Sep 21, 2012 8:30 pm
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
Re: 1Mhz 6502 bitbang 57kbaud
Thank you bogax. Much appreciated.
- Sun Sep 16, 2012 10:20 am
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
Re: 1Mhz 6502 bitbang 57kbaud
OK guys, I need your help one more time.
I rewrote my 68.2k routine to check for timeout. This adds 7 cycles to the first wait for start bit loop. And now for the hell of me I can't cycle-up the thing. Please advise :)
Here's the code:
read_from_serial ldx #$3f
wb: ;this is the additional 7 ...
I rewrote my 68.2k routine to check for timeout. This adds 7 cycles to the first wait for start bit loop. And now for the hell of me I can't cycle-up the thing. Please advise :)
Here's the code:
read_from_serial ldx #$3f
wb: ;this is the additional 7 ...
- Mon Sep 10, 2012 9:57 am
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
Re: 1Mhz 6502 bitbang 57kbaud
BigDumbDinosaur wrote:
Incidentally, the pedantic devil in me must point out that the 57kbaud reference in the topic subject line is technically incorrect terminology.
What you mean is 57 Kbps.
- Sun Sep 09, 2012 10:59 pm
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
Re: 1Mhz 6502 bitbang 57kbaud
Hello everyone, just thought I let you know that I managed to get 68,2kbit/s with on the fly checksuming from this sucker :)
Here's the code if anyone's interested. Sekbuf is buffer, count is 0=256bytes $80=128 bytes.
read_from_serial ldx #$3f
lda #0
tay
sta cksum
sta sekbuf-1,y
wb: bit ...
Here's the code if anyone's interested. Sekbuf is buffer, count is 0=256bytes $80=128 bytes.
read_from_serial ldx #$3f
lda #0
tay
sta cksum
sta sekbuf-1,y
wb: bit ...
- Mon Feb 13, 2012 2:34 pm
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
Thanks all again, very insightful tips.
Now, I have, i believe, a clever idea.
Consider only pin 6 changes on portb. and bit7 is 0.
What about this to sample one bit?
Now, I have, i believe, a clever idea.
Consider only pin 6 changes on portb. and bit7 is 0.
What about this to sample one bit?
Code: Select all
ldx portb
cpx #$3f
ror @
.....
- Sun Feb 12, 2012 4:32 pm
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
- Sun Feb 12, 2012 11:23 am
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
- Sun Feb 12, 2012 12:00 am
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
- Sat Feb 11, 2012 11:28 pm
- Forum: Programming
- Topic: 1Mhz 6502 bitbang 57kbaud
- Replies: 47
- Views: 16166
1Mhz 6502 bitbang 57kbaud
Hey,
I'm doing a software serial routines for a 1Mhz 65xx device that needs to communicate at 57600 bit/s. But my receive code does not work.
57600 gives 17 cycles per bit.
Data comes in negated and it comes in on portb's D6. Protocol is
Startbit-Databits-Stopbit (8N1)
#cycle is a macro that ...
I'm doing a software serial routines for a 1Mhz 65xx device that needs to communicate at 57600 bit/s. But my receive code does not work.
57600 gives 17 cycles per bit.
Data comes in negated and it comes in on portb's D6. Protocol is
Startbit-Databits-Stopbit (8N1)
#cycle is a macro that ...
- Wed Apr 07, 2010 10:28 am
- Forum: Hardware
- Topic: superfluous memory access and hardware registers
- Replies: 6
- Views: 2583
- Fri Mar 26, 2010 1:07 am
- Forum: Hardware
- Topic: superfluous memory access and hardware registers
- Replies: 6
- Views: 2583
superfluous memory access and hardware registers
Hey, I'm new here :)
I seem to remember faintly that 6502-like processors had some constrains about the write-sensitive hardware registers. Namely, that write sensitive hardware registers should be decoded with some space between the registers to avoid false writes/reads. Like a page or so. So if ...
I seem to remember faintly that 6502-like processors had some constrains about the write-sensitive hardware registers. Namely, that write sensitive hardware registers should be decoded with some space between the registers to avoid false writes/reads. Like a page or so. So if ...