6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 1:56 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: RF65816 SBC
PostPosted: Wed Jul 27, 2022 4:18 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
This kept me busy today, doubt I'll ever build it, but coming up with schematics was fun. It started out as schematics for a RAM board and ended up containing the whole computer.

The SBC uses a programmable clock generator that can generate frequencies between 150kHz and 40MHz in 150kHz steps.

I have the divider value connected to a 6522 port A. If the direction of the port is switched to output what value appears on the pins?

Attachment:
File comment: RF65816 SBC
RF65816SBC-SRAM.pdf [228.94 KiB]
Downloaded 73 times

Attachment:
File comment: RF65816 SBC clock generator
RF65816SBC-SRAM-ClkGen.pdf [42.11 KiB]
Downloaded 59 times

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 5:39 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8428
Location: Southern California
Quote:
I have the divider value connected to a 6522 port A. If the direction of the port is switched to output what value appears on the pins?

whatever is in the port's output registers. In fact, that's how you can emulate an open-drain output (although it can't handle high voltages). You put a 0 in the output register for the desired bit; and then to pull the pin down, you make it an output, and to let it up (via a pull-up resistor), or to read it, you make it an input. Changing the data direction doesn't change what's in the output register.

_________________
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: RF65816 SBC
PostPosted: Wed Jul 27, 2022 7:07 am 
Offline

Joined: Mon Feb 15, 2021 2:11 am
Posts: 98
Rob Finch wrote:
This kept me busy today, doubt I'll ever build it, but coming up with schematics was fun. It started out as schematics for a RAM board and ended up containing the whole computer.

The SBC uses a programmable clock generator that can generate frequencies between 150kHz and 40MHz in 150kHz steps.

I have the divider value connected to a 6522 port A. If the direction of the port is switched to output what value appears on the pins?

Attachment:
RF65816SBC-SRAM.pdf

Attachment:
RF65816SBC-SRAM-ClkGen.pdf



Interesting. Why do the SRAM's each have two A18 pins?


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 7:28 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8428
Location: Southern California
Sean wrote:
Interesting. Why do the SRAM's each have two A18 pins?

The module can be plugged in backwards and it will still work. If a 1Mx8 5V SRAM IC ever becomes available, one of the A18 pins will become an A19.

_________________
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: RF65816 SBC
PostPosted: Wed Jul 27, 2022 9:55 am 
Offline

Joined: Wed Jun 23, 2021 8:02 am
Posts: 165
GARTHWILSON wrote:
Sean wrote:
Interesting. Why do the SRAM's each have two A18 pins?

The module can be plugged in backwards and it will still work. If a 1Mx8 5V SRAM IC ever becomes available, one of the A18 pins will become an A19.


There's this: https://www.mouser.co.uk/datasheet/2/10 ... 540334.pdf

2Mx8 or 1Mx16 configurable 5V SRAM, but it's a bit slower at 45ns. Probably be ok with a 65C816 if you don't want to run it absolutely flat out.


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 11:08 am 
Offline
User avatar

Joined: Sat Jul 24, 2021 1:37 pm
Posts: 282
Rob Finch wrote:
This kept me busy today, doubt I'll ever build it, but coming up with schematics was fun. It started out as schematics for a RAM board and ended up containing the whole computer.

The SBC uses a programmable clock generator that can generate frequencies between 150kHz and 40MHz in 150kHz steps.

I have the divider value connected to a 6522 port A. If the direction of the port is switched to output what value appears on the pins?

Attachment:
RF65816SBC-SRAM.pdf

Attachment:
RF65816SBC-SRAM-ClkGen.pdf


Interesting schematic to look at!

I'm guessing the dual DS1813 arrangement is to debounce NMI? Is that why the one for RST is delayed, so that NMI is not triggered on power up?

You might want to OR VDA and VPA and use the result for the second chip select on your VIA, to ensure spurious reads are not generated that could mess with the internal function of the chip. Or even just VDA by itself (EDIT: nevermind, the VIA is only accessed by the A7)

_________________
BB816 Computer YouTube series


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 2:18 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3346
Location: Ontario, Canada
akohlbecker wrote:
You might want to OR VDA and VPA and use the result for the second chip select on your VIA, to ensure spurious reads are not generated that could mess with the internal function of the chip. Or even just VDA by itself
This. (Emphasis added.)

It's easy to avoid the necessity for including an OR gate. Just choose the (2) configuration shown in the lower half of this diagram.
Attachment:
VDA injection points.png
VDA injection points.png [ 60.43 KiB | Viewed 9851 times ]


Or, feed VDA directly to the I/O devices (if, like most 65xx peripherals, they have an extra Chip Select input).

I elaborate on these three approaches here.
Attachment:
VDA injection point for 65xx I-O.png
VDA injection point for 65xx I-O.png [ 6.5 KiB | Viewed 9851 times ]

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 2:28 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
Reset has not been worked out yet. Since the FPGA is supplying a read / write strobe and the boot ROM not much can be done until it has loaded. It may be necessary to reset the circuit again after the FPGA loaded. The DS1813 idea borrowed from the POC SBC. I think to generate an NMI on power fail faster than a reset.

With SRAM density requiring more address lines, an idea would be to have an SRAM module that could plug into one of the older DRAM sockets. It may then replace DRAM in an older system. It would require a latch for the higher order address lines but its fewer pins to manage.

Yeah, VDA, VPA are used to qualify accesses and would be decoded in the FPGA as part of the 6522's circuit select.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 5:05 pm 
Offline

Joined: Mon Feb 15, 2021 2:11 am
Posts: 98
GARTHWILSON wrote:
Quote:
I have the divider value connected to a 6522 port A. If the direction of the port is switched to output what value appears on the pins?

whatever is in the port's output registers. In fact, that's how you can emulate an open-drain output (although it can't handle high voltages). You put a 0 in the output register for the desired bit; and then to pull the pin down, you make it an output, and to let it up (via a pull-up resistor), or to read it, you make it an input. Changing the data direction doesn't change what's in the output register.


I just realized from your response that his design is using your memory modules, and went and read your datasheet. It is much clearer now.

If I am read and understanding the diagram right, this SBC design features a 65C816 CPU and a '573 latch for capturing the bank byte. The 24 address lines from CPU and the latch are routed through three '245 bus transceivers. The upper two address lines, A22 and A23, feed into a pair of '139 2-to-4 decoders that feeds the enables (WE0/1 and OE0/1) for the three memory modules, while the next three address lines, A19-A21, are routed to a '138 3-to-8 decoder to feed the chip enables on the memory modules. The data lines also have a '245 bus transceiver between the CPU and the memory modules. I assume the '245 transceivers are present to allow tri-stating. The '244 appears to be taking the RWB signal from the CPU an sending it on to the enables for the '139 2-to-4 encoders that enable the memory modules, but one of those has an inverter on it - I think this means that one '139 sends logical true to OE0/1 on the memory modules, or the other sends signals logical true to WE0/1.

The FPGA is connected to the data lines, again with a '245 bus transceiver between the FPGA and the data bus. About half the address lines appear to be connected, too. The FGPA is connected to the VDIP2-32 via four-line serial. It also looks to generate 6-bit RGB color (2 bits per color channel) and HSYNC and VSYNC signals for VGA output, and an audio signal that goes to an LM386 op-amp.

It appears to be a mixed voltage design, with most chips being fed 5V, 3.3V for the LVC family parts, and 12V for the LM386 op-amp.


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 5:35 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
Quote:
I just realized from your response that his design is using your memory modules, and went and read your datasheet. It is much clearer now.

If I am read ... fed 5V, 3.3V for the LVC family parts, and 12V for the LM386 op-amp.

That sums up the design well.

The '245 transceivers on the address bus are dual purpose and always enabled (not tri-stated) They are used to buffer the address lines since there are over 24 chips to drive onto RAM modules. At the same time they are used to level shift the signals to something the FPGA can digest.

One thing missing yet is accommodation for mass storage. Something could be interfaced to the second port of the 6522. The FPGA has analog inputs that are not being used. Perhaps they could be used for audio input. It may also be possible to use the UCB port of the keyboard / mouse.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 5:54 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
Just realized there is a flaw in the design. In order to support a VGA port I axed some of the address lines going to the FPGA. So, unless the boot program is 16 bytes or less, there is no way to boot the system. It looks like it needs a ROM yet or other device.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 6:53 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1076
Location: Albuquerque NM USA
My serial bootstrap is 18 bytes but the serial port is located in high memory. So if the serial port is located in zero page, the bootstrap code can fit in 16 bytes.
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 6:54 pm 
Offline

Joined: Mon Feb 15, 2021 2:11 am
Posts: 98
Rob Finch wrote:
Quote:
I just realized from your response that his design is using your memory modules, and went and read your datasheet. It is much clearer now.

If I am read ... fed 5V, 3.3V for the LVC family parts, and 12V for the LM386 op-amp.

That sums up the design well.

The '245 transceivers on the address bus are dual purpose and always enabled (not tri-stated) They are used to buffer the address lines since there are over 24 chips to drive onto RAM modules. At the same time they are used to level shift the signals to something the FPGA can digest.


Thanks for reading through my description and explaining further.


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Wed Jul 27, 2022 7:35 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
I repurposed A14 going to the FPGA to be used as a ROM select and added a ROM to the design. It will be somewhat tricky to boot as RAM at bank zero will be disabled until a switch is set in the FPGA to allow the ROM to exist in bank zero where it is needed for boot. I think the ROM will need to be copied twice, but it can be done.
I/O blocks are now 32kB in size.

I also added an audio input circuit.
Attachment:
File comment: Updated RF65816 SBC schematic
RF65816SBC-SRAM.pdf [245.48 KiB]
Downloaded 41 times


Quote:
My serial bootstrap is 18 bytes but the serial port is located in high memory. So if the serial port is located in zero page, the bootstrap code can fit in 16 bytes.
Bill
That is very tempting to do. Serial boot through a USB port should be possible then, but it means swapping the keyboard or mouse around.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: RF65816 SBC
PostPosted: Thu Jul 28, 2022 12:40 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 449
Location: Canada
The ROM is out now. I managed to the use FPGA module by noting the bank address is on the data pins when ph2 is low. Using a couple of unused ‘and’ gates to control the ‘245 buffer to the FPGA allows it to see the bank address. That freed up the address pins used for A16 to A23, which were promptly used for lower address bits. So, the FPGA sees the entire 24-bit address now. I also freed up a pin on the FPGA by moving VDA to the 6522, so it is setup like Jeff suggested.

If the CPU is run at 3.3V and it has enough drive strength to drive about 26 CMOS chips, 3 RAM modules, then the address and data buffers can be removed from the design reducing the chip count by five.
I was reviewing the ‘265 micro-controller. If that chip is used instead of the ‘816 then the chip count is reduced further, by at least one, for the address latch.
Attachment:
File comment: RF65816 SBC schematic
RF65816SBC.pdf [274.88 KiB]
Downloaded 47 times

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

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