6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 11:28 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: 6502 with the RA8875
PostPosted: Thu Oct 15, 2020 8:59 am 
Offline

Joined: Thu Oct 15, 2020 8:40 am
Posts: 2
Maybe I'm getting over my head here, but I just bought the 6502 project from Ben Eater and I'm looking forward past going through the tutorial to getting it to work with an RA8875 chip to drive a touch screen TFT. I've been going over the timing to see if it will work, and I'm not sure I'm reading something right. I would appreciate it if someone with more experience could give me some guidance.

The RA8875 data sheet is here (https://cdn-shop.adafruit.com/datasheet ... 12_Eng.pdf). I can't find a link to the full datasheet on the Raio site; only an abbreviated one.

I'm planning to use the 6800 mode, connecting the A0 address pin (6502) to the RS pin (RA8875), the R/W pin (6502) to the RW# pin (RA8875), some nand or something gates to decode two addresses (xxx0 for register select 0 and xxx1 for register select 1) to the CS# pin (RA8875). What has me stumped is the RW# pin (RA8875).

I was thinking of using the clock and maybe some gates to create the enable signal. I think the read timing is ok, because the read hold time on the RA8875 is from 0ns to 25ns, and the 6502 requires 10ns (pg. 57 of the RA8875 datasheet). What concerns me for write, the RA8875 has a data hold time minimum of 10ns (which, correct me if I'm wrong, means it requires the 6502 to hold the data for a minimum of 10ns) and the 6502 has a write data hold time minimum of 10ns. So the 6502 may only provide the data for 10ns, and the RA8875 requires 10ns to get the data properly; am I reading that right?

Are there better suggestions for the RA8875 Enable pin than the 6502 system clock? I was looking at the BE pin, but I don't understand what it is saying in the timing diagram with a READ DATA, a WRITE DATA, and a DATA timeline, and what "BE to Valid Data" means. I was wondering if I could use the BE line to trigger the Enable pin, but only on writes, to give some extra time for the RA8875 to read the data before the 6502 ends its data hold time.

Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 with the RA8875
PostPosted: Thu Oct 15, 2020 9:14 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
Welcome!
joncard wrote:
What concerns me for write, the RA8875 has a data hold time minimum of 10ns (which, correct me if I'm wrong, means it requires the 6502 to hold the data for a minimum of 10ns) and the 6502 has a write data hold time minimum of 10ns. So the 6502 may only provide the data for 10ns, and the RA8875 requires 10ns to get the data properly; am I reading that right?

The 6502 does not drive the bus during the phase-2-low period; so after the end of the write, bus capacitance will hold the data for a surprisingly long time when nothing is driving the bus—not just nanoseconds, not just microseconds, but even milliseconds, according to related experiments of mine. (Actually, I tripped across that fact accidentally, and although I observed the milliseconds part, I did not go further to see just how long I could take it. Also, this applies only if all loads are CMOS whose inputs don't take any DC current to speak of. For example, don't use 74LS!)

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 with the RA8875
PostPosted: Fri Oct 16, 2020 6:52 pm 
Offline

Joined: Thu Oct 15, 2020 8:40 am
Posts: 2
Thank you! When the kit arrives next week, I'll give it a try and see what happens, then.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 with the RA8875
PostPosted: Wed Nov 18, 2020 6:50 am 
Offline

Joined: Wed Nov 18, 2020 6:44 am
Posts: 6
Any progress on the RA8875? I have a running RA8875 display (800x480) on my 65c02 breadboard.

I can't find many people using the RA8875 with the 6502 (probably since it is cheating to have a display controller chip that powerful on the 6502 :D )

I am running it in text mode and using it as a text terminal. I am talking with it through SPI. It works great. The initial setup sequence is a bit long (since the RA8875 have so many registers). If you want I can share my codes for the initial setup sequence through SPI?

I am not planning on using any of the touch functionality but just as a text terminal display. I might venture into some graphics mode later for some of my programs.
Or I have considered splitting up the screen so the left side has the text terminal and the right side some static area with information about the time, current directory, and stuff like that.

Attached is a picture of it in action.


Attachments:
IMG_20201010_113628.jpg
IMG_20201010_113628.jpg [ 3.52 MiB | Viewed 908 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 with the RA8875
PostPosted: Wed Nov 18, 2020 8:18 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
(Welcome, and congratulations on a successful build!)


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 with the RA8875
PostPosted: Mon Jul 05, 2021 12:37 am 
Offline

Joined: Sat Dec 24, 2016 11:00 pm
Posts: 29
Location: Southern California
I'm pretty sure that encountering this thread was the first time I came across the RA8875, so it seems only appropriate to note here that I've just managed to get mine working with my 65C02 board, also over SPI (bit-banged via a 6522 although I'm planning to try moving to Daryl's 65SPI). It's working great, although I'm not demanding much of it since it is mainly to replace a serial terminal interface. The keyboard in the photograph is running to my laptop since input is still via serial, although I've got the output from my FORTH running to the display. Once I hook up a PS/2 keyboard, it'll be entirely self-contained.

A version of this design on a PCB would be no larger than that display -- my wire-wrapped board is overly spacious to accommodate my klutzy assembly skills. So right now I'm rather liking the idea of mounting both the board and the display in a 3D-printed case with a slot for the SD card -- just plug in a keyboard and power and go!

--p.


Attachments:
IMG_2869.jpeg
IMG_2869.jpeg [ 3.49 MiB | Viewed 722 times ]

_________________
Mite 6502: http://www.dourish.com/projects/mite.html
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 47 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: