6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:26 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Oct 09, 2019 8:40 pm 
Offline
User avatar

Joined: Wed May 30, 2012 7:45 pm
Posts: 58
Location: Dallas, TX
Attachment:
board.png
board.png [ 928.68 KiB | Viewed 530 times ]


Hello all, its been a long time since I posted something. I recently picked up one of these guys: https://wdc65xx.com/Single-Board-Computers/w65c02sxb/
I'm not much of a hardware guy I'l have to admit. So, I wanted something that had real hardware that I could write my software for. So far, the WDCDB (debugger/monitor) has been splendid and worked flawlessly.

However, since I am writing my own BASIC and FORTH interpreters, I would like to be able to connect to this board over a terminal connection. The 65C51 onboard has a jumper with the following pins:

Attachment:
acia.png
acia.png [ 24.54 KiB | Viewed 530 times ]


I know that RXD/TXD and ground are required, but I'm not sure about the other pins. What I'd like to go with is a null modem DB9, and just purchase a DB9 serial -> USB cable of some sort. Some of the schematics I've seen make use of the MAX232 chip.
I'm hoping that this isn't required. I was a little disappointed that I couldn't just use the microUSB "TIDE" connector to connect to the device. I'm hoping that someone out there has played with this board and knows exactly what I need to do :)

Finally, here's the code that sets up the ACIA

Code:
ACIA_BASE       equ     $7F80
ACIA_DATA       equ     ACIA_BASE
ACIA_STATUS     equ     ACIA_BASE+1
ACIA_COMMAND    equ     ACIA_BASE+2
ACIA_CONTROL    equ     ACIA_BASE+3

        org     $300
START:
        lda     #%00001011      ; no parity
        sta     ACIA_COMMAND
        lda     #%00011111      ; 1 stop bit, 8 data bits, 19200 baud
        sta     ACIA_CONTROL

Thanks!

_________________
http://www.thestarrlab.com


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 09, 2019 9:58 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
It is possible to usurp control of the USB serial connection but you lose the ability to use the WDC software at the same time.

As for the ACIA connect a jumper wire between RTS and CTS. I use USB serial adaptors connected to RX, TX and GND. I have a load of (cloned) pl2303 serial modules which can be made to work as long as you use an old windows driver. A safer bet is a newer FTDI 232RL based adapter.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 09, 2019 10:07 pm 
Offline
User avatar

Joined: Wed May 30, 2012 7:45 pm
Posts: 58
Location: Dallas, TX
So, maybe if i went with something like this https://www.amazon.com/Adapter-Serial-C ... B075N82CDL
Would I just be able to run dupont connector wires to the appropriate pins?

_________________
http://www.thestarrlab.com


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 09, 2019 10:18 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Yes that should work. You could connect rts and cts for hardware flow control with that board.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 10, 2019 10:35 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
One other thing to be aware of is the current WDC W65C51 parts have an issue with the transmit bit being stuck on in the status register. It's been heavily discussed here and there have been some workarounds for it.

Take a look at this thread for the details: viewtopic.php?f=4&t=2543

Page 2 shows the discovery and confirmation of the hardware defect... and goes on.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: