6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 7:25 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sun May 15, 2016 9:05 pm 
Offline

Joined: Thu Mar 31, 2016 1:26 pm
Posts: 60
Location: Austin, Texas
I am trying to make a *small* SBC using the W65C02S6TQG (QFP-44) and want to use as little board space as possible. The WDC datasheets show that there is indeed a QFP version of both chips but I can't seem to find any distributors that carry them. Does anyone know where I could purchase some QFP versions of the chips or any alternatives that come in BGA or QFP form?

To be clear, I only need some sort of parallel interface controller and some sort of serial interface controller. I do *not* need them to be software compatible with the 65C22/51 nor do I need the timer portion of the VIA.

_________________
- Billy


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2016 7:26 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8539
Location: Southern California
The PQFP's might only be available directly from WDC. Give them a call with credit card in hand. Our topic on where to get the parts is at viewtopic.php?f=1&t=1953 which we try to keep up to date; but a search there for "PQFP" does not find any occurrences.

Some of the 65c22's counter/timer functions that come to mind other than just as a timer are:
  • setting the speed of the onboard synchronous serial port
  • event counter
  • frequency counter (how many transitions counted on one counter/timer during the number of Φ2 cycles timed in the latches of the other?)
  • watchdog timer
  • producing a square wave, for example to produce a beep without the processor having to babysit it through the duration of the beep; or use as an external x16 clock source for the '51, which I've done for MIDI (musical instrument digital interface) which runs at 31.25kbps, 1/16th of 500kHz which I produced with the '22

I'm sure there are others I'm forgetting. Just because you don't need a regular timed interrupt doesn't mean you won't have any use for the timer/counters. I've used the 65c22's synchronous-serial port many times as well, even for RS-232 transmission with the speed governed by Timer2, and for a simple 9-level D/A converter useful for DTMF (phone touch tones) and even highly compressed speech with sound quality a little better than a lot of talking toys. There's a lot of this kind of stuff in the "Tip of the Day" column. The '22 also has interrupt-on-edge pins (CA and CB pins), and port pins can be used as as open-collector pins for things like I²C.

_________________
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  
PostPosted: Mon May 16, 2016 9:33 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Have you considered using one of the micro-controller versions of the processor like the 65C134 or 65C265?

They need only a few external components and have a number of peripherals built in including ACIAs.

WDC's own development boards for these are much better priced (~$100) than the full microprocessor equivalent. The 65C265 board in particular is quite fun to work with and easy to expand.

_________________
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: Mon May 16, 2016 1:00 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
BitWise wrote:
Have you considered using one of the micro-controller versions of the processor like the 65C134 or 65C265?
Good idea. And a quick check at Mouser shows they presently have stock of both the 65C134 and 65C265, and the corresponding SBC's -- see here and here.

No PQFP's, I'm afraid. But, as Andrew noted, these chips include peripherals. So, if you wanna build something small then they're definitely worth considering. Be warned the datasheets are very poorly organized, but some folks here (Andrew and Scot, IIRC) have been working on untangling the details. :)

-- 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  
PostPosted: Tue May 17, 2016 1:37 am 
Offline

Joined: Thu Mar 31, 2016 1:26 pm
Posts: 60
Location: Austin, Texas
GARTHWILSON wrote:
Some of the 65c22's counter/timer functions that come to mind other than just as a timer which come to mind are:
  • setting the speed of the onboard synchronous serial port
  • event counter
  • frequency counter (how many transitions counted on one counter/timer during the number of Φ2 cycles timed in the latches of the other?)
  • watchdog timer
  • producing a square wave, for example to produce a beep without the processor having to babysit it through the duration of the beep; or use as an external x16 clock source for the '51, which I've done for MIDI (musical instrument digital interface) which runs at 31.25kbps, 1/16th of 500kHz, which I produced with the '22

I'm sure there are others I'm forgetting. Just because you don't need a regular timed interrupt doesn't mean you won't have any use for the timer/counters. I've used the 65c22's synchronous-serial port many times as well, even for RS-232 transmission with the speed governed by Timer2, and for a simple 9-level D/A converter useful for DTMF (phone touch tones) and even highly compressed speech with sound quality a little better than a lot of talking toys. There's a lot of this kind of stuff in the "Tip of the Day" column. The '22 also has interrupt-on-edge pins (CA and CB pins), and port pins can be used as as open-collector pins for things like I²C.
I am currently planning to simply use the VIAs (or whatever I choose to use in their place) as GPIO controllers and then make separate boards for sound, etc (in a stackable, shield-like format).

As for the 65C51, I think I will either use a larger CPLD and integrate a UART or use a SPI UART controlled by a VIA.

_________________
- Billy


Top
 Profile  
Reply with quote  
PostPosted: Tue May 17, 2016 1:38 am 
Offline

Joined: Thu Mar 31, 2016 1:26 pm
Posts: 60
Location: Austin, Texas
BitWise wrote:
Have you considered using one of the micro-controller versions of the processor like the 65C134 or 65C265?

They need only a few external components and have a number of peripherals built in including ACIAs.

WDC's own development boards for these are much better priced (~$100) than the full microprocessor equivalent. The 65C265 board in particular is quite fun to work with and easy to expand.
I like having a seperate MPU, RAM, and ROM as it makes the system feel less like a "magic chip that does everything".

_________________
- Billy


Top
 Profile  
Reply with quote  
PostPosted: Wed May 18, 2016 1:35 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
billylegota wrote:
I like having a seperate MPU, RAM, and ROM as it makes the system feel less like a "magic chip that does everything".


The microcontroller versions of the 6502 and 65816 have internal registers that allow the use of external RAM and ROM.


Top
 Profile  
Reply with quote  
PostPosted: Wed May 18, 2016 9:37 pm 
Offline

Joined: Thu Mar 31, 2016 1:26 pm
Posts: 60
Location: Austin, Texas
Martin_H wrote:
billylegota wrote:
I like having a seperate MPU, RAM, and ROM as it makes the system feel less like a "magic chip that does everything".


The microcontroller versions of the 6502 and 65816 have internal registers that allow the use of external RAM and ROM.

But I want all of the RAM, ROM, and IO to be external. It just feels less cheaty.

_________________
- Billy


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2016 8:07 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
We visit these tradeoffs pretty often here. Some people want to build hardware from small primitives, some want to have hardware so they can get on with building systems and software. It's a matter of personal preference. No need to put a value judgement on it.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2016 2:24 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
billylegota wrote:
To be clear, I only need some sort of parallel interface controller and some sort of serial interface controller.
Both of these can be realized using Serial Peripheral Interface (SPI). SPI chips tend to be small, partly because fewer pins are required (as compared with a chip whose host interface is parallel). For a small system you'd probably want to use a "bit-bang" approach rather than including a parallel-to-SPI controller IC.

Even bit-banging requires a small, up-front hardware investment. Your system needs to output CK, MOSI and CS and needs to input MISO and IRQ. That can be done with less hardware than you might expect, as various shortcuts are possible (especially on the 'C02). Once the bit-bang SPI is in place you can easily add whatever serial & parallel chips appeal to you. That's where the initial investment can pay off several-fold.

Alternatively (or additionally) you could have your system talk to ordinary shift register IC's for the parallel IO. And asynchronous serial communication ("RS232"-style) can be bit-banged without including a UART. :!: The tradeoff in that case is trickier software, since specific timing requirements apply (unlike SPI). Forum topics exist which discuss bit-bang asych in detail. Depending on your frame of mind, you may find bit-bang asych to be either good sport or a tiresome limitation. It's all about tradeoffs, as Ed said.

FWIW, lately I've been fooling around with an SC16IS750 SPI UART (for which I made my own breakout board). The length of this 24-pin IC is less than the width of an ordinary .3" DIP. :shock: And it includes 8 bits of parallel IO. Other SPI UARTs are available, of course -- some of which can operate from a 5V supply (the SC16IS750 needs 3 volts).

cheers,
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  
PostPosted: Fri May 20, 2016 6:17 pm 
Offline

Joined: Thu Mar 31, 2016 1:26 pm
Posts: 60
Location: Austin, Texas
Dr Jefyll wrote:
billylegota wrote:
To be clear, I only need some sort of parallel interface controller and some sort of serial interface controller.
Both of these can be realized using Serial Peripheral Interface (SPI). SPI chips tend to be small, partly because fewer pins are required (as compared with a chip whose host interface is parallel). For a small system you'd probably want to use a "bit-bang" approach rather than including a parallel-to-SPI controller IC.

Even bit-banging requires a small, up-front hardware investment. Your system needs to output CK, MOSI and CS and needs to input MISO and IRQ. That can be done with less hardware than you might expect, as various shortcuts are possible (especially on the 'C02). Once the bit-bang SPI is in place you can easily add whatever serial & parallel chips appeal to you. That's where the initial investment can pay off several-fold.

Alternatively (or additionally) you could have your system talk to ordinary shift register IC's for the parallel IO. And asynchronous serial communication ("RS232"-style) can be bit-banged without including a UART. :!: The tradeoff in that case is trickier software, since specific timing requirements apply (unlike SPI). Forum topics exist which discuss bit-bang asych in detail. Depending on your frame of mind, you may find bit-bang asych to be either good sport or a tiresome limitation. It's all about tradeoffs, as Ed said.

FWIW, lately I've been fooling around with an SC16IS750 SPI UART (for which I made my own breakout board). The length of this 24-pin IC is less than the width of an ordinary .3" DIP. :shock: And it includes 8 bits of parallel IO. Other SPI UARTs are available, of course -- some of which can operate from a 5V supply (the SC16IS750 needs 3 volts).

cheers,
Jeff
I was considering doing this with the PLCC version of the VIA but have instead opted to simply make an ACIA equivalent in my CPLD.

_________________
- Billy


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 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: