6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 15, 2024 12:15 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Cmod + 65816
PostPosted: Sun Jun 30, 2019 2:51 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
I've got this project going on in the background with my other work to interface a CmodA7 to a 65C816. It doesn't quite work yet. On reset the blue LED lights up indicating the cpu is accessing the ROM, but it doesn't light up another led like it's supposed to or send a power on message. The cmod contains a high-speed uart (921600 baud), ram, rom.
Attachment:
File comment: Block Diagram
CmodSocBlockDiagram.png
CmodSocBlockDiagram.png [ 25.41 KiB | Viewed 1109 times ]

Attachment:
File comment: Photo of system
CmodSoC.png
CmodSoC.png [ 2.97 MiB | Viewed 1109 times ]

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: Cmod + 65816
PostPosted: Sun Jun 30, 2019 4:21 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1929
Location: Sacramento, CA, USA
921600 baud seems (for this old-timer) to be rather ambitious for an initial goal. Definitely keep us posted, and provide additional info if you decide to seek any advice from the resident hardware gurus.

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
 Post subject: Re: Cmod + 65816
PostPosted: Mon Jul 01, 2019 4:01 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
Quote:
921600 baud seems (for this old-timer) to be rather ambitious for an initial goal.
It’s serial through USB so it can be fast. I’d go with an even higher baud rate but 921600 was the highest listed for the device in Windows. The rate is high enough that simple text screen can be emulated through the serial. 921k is about 91kB per second. Which is about 3k characters at 30Hz refresh rate.
The ‘816 isn’t actually transmitting directly through the port. Instead it writes to dual port memory. The other side of the dual port memory is connected to the uart transmitter in a DMA fashion. The DMA just loops around repeatedly through the transmit buffer. So, the transmit buffer somewhat resembles a text video buffer.
There’s a program running on the PC workstation that can pick up this repeated transmission and display it in a window. The baud clock (14.7MHz) is about 0.25% too slow but it seems to work okay.
Attachment:
File comment: HelloWorld
HelloWorld.png
HelloWorld.png [ 3.74 KiB | Viewed 1070 times ]
The "hello world" is hard-coded in the transmit at the moment.

The cpu is powered by about 3v and clocked at 6MHz. Two power diodes are used to drop a 4.5v USB power down to about 3v.
Found two bugs yesterday, the reset line going to the cpu was active high and it should be active low, and the ready line needed a pullup resistor. Initially I forgot that the ready line is bi-directional on the ‘816. Then I made it a tri-state I/O on the FPGA but forgot the pullup.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: Cmod + 65816
PostPosted: Mon Jul 01, 2019 9:23 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
I hooked up the logic analyzer to the inputs from the 65c816 and found out it's mostly garbage. It looks like I bought bad/fake chips. Unless there's something else wrong with the system.

From the logic analyzer, the vector pull line doesn't go active on reset, and the address bus is all ones. I've seen it reset to $FFFC and flip back and forth between $FFFC and $FFFD doing a vector fetch non-stop, but with no active vector pull. This is the second chip I tried. The first one didn't work at all.

Attachment:
File comment: Logic analyzer trace
BadChip.png
BadChip.png [ 24.89 KiB | Viewed 1054 times ]

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: Cmod + 65816
PostPosted: Wed Jul 10, 2019 6:28 pm 
Offline

Joined: Tue Aug 07, 2018 5:44 pm
Posts: 10
Location: Oslo, Norway
I didn't know what a Cmod A7 was, so I googled it: https://store.digilentinc.com/cmod-a7-b ... ga-module/
So it's an Artix-7 (plus more) on a breadboard module.

_________________
--
Torfinn


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 6 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: