6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Jul 02, 2024 4:36 pm

All times are UTC




Post new topic Reply to topic  [ 84 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Baby's first words.
PostPosted: Wed Aug 29, 2018 9:15 am 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
although mainly the 74HC139 and the 1.8342Mhz oscillator orders are still at the 'airhub in china', the first batch of harris 65c51's did arrive, as did the mainboards, so the first board is now running..

Attachment:
IMG_20160106_071403.jpg
IMG_20160106_071403.jpg [ 3.52 MiB | Viewed 4340 times ]

after some initial illegible brabbelings due to the system clock being bridged to the rs232 clock and the baudrate being something absurd, (good enough for the scope, not good enough for a terminal ;) some other workaround was found in just using a series crystal directly hooked to the pins in a double stacked socket while we wait for the proper parts :P

Attachment:
IMG_20160106_071415.jpg
IMG_20160106_071415.jpg [ 3.45 MiB | Viewed 4340 times ]


one day this should become a line of PLC's, as well as ATX sized 65C816 mainboards to replace our pcs with 'nsa proof' stuff that only does what WE want it to do.

so far no reply from that CS8900A company on the cost of a mil-spec cerdip 40 version of their chip so no ethernet net. (not gonna use any of that smd crap that is only held in place by the pcb traces. we're not -that- cheap, plus they'll have to get irq's to work in 8 bit mode or we'll just have our own chips made elsewhere. ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 10:01 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
Aha, PLCs.

So you are new to PLCs, EMC issues, ESD shielding of computers and such ? :)

cb3rob wrote:
to replace our pcs with 'nsa proof' stuff that only does what WE want it to do.

Hm... why not just building your own CPUs, peripherals and Ethernet controllers from TTL chips ?
It isn't that difficult...


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 10:31 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10838
Location: England
It might take years though!

But on-topic, I would like to know more about this project, or product, or whatever it is.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 10:39 am 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
Attachment:
emi.png
emi.png [ 24.58 KiB | Viewed 4321 times ]
<-- so far for 'interference' besides the thing being one big groundplane (which, admittingly, is some sort of antenna by itself, not much we can do about that as the cases will also be full metal anyway so turning it into a 'raster' won't help much) also you'll notice foil capacitors of 1uf not just at the rs232 line drivers but ALL over the board (need to take one apart, see which side is the outside of the foil, and somehow find a way to make pick and place robots recognize that, as well as adjust the footprints to indicate the plate side for manual assembly)... on the first testboards i was like 'screw that just get one working for now' ;) 4 more boards to do radio interference (both way) testing with and overvoltage testing etc ;)

these boards are to replace the emulator with. (which only emulates 1 acia and no vias so far anyway). as for 'emc' there is this thing called 'metal cases' :P usually comes combined with something magical called 'IP65'. (you know, the type usually used for wiring boxes on ships and such ;)

although the vias will probably drive solid state relays just fine (65kohm dc resistance, trigger at 3v, at least the 10 amp ones i tested with ;) driving anything else directly with vias obviously requires a bigger board. also 24vdc seems to be the going standard in that field so the psu will be adapted to that as well. the current boards run of the 5v rail of an atx psu and that leaves no space for extra diodes and such or else it drops well under 5v ;)

all caps are 1uf, and the whole thing is one big groundplane, even on the testboards. (could make some adjustments to kicad to drop vias every 5cm to connect both gnd layers on both sides or turn it into a ground raster (Which seems to workk better) but as the cases will always be metal anyway, and as for the plc's all interfacing will run through opto couplers, (which when combined with a zener diode and resistors limiting the voltage and amps also make for perfect universal inputs that can give a '1' on pretty much any voltage surrounding 1-40-ish, including ac with software debouncing) interference is not something i'm very worried about ;)

looking at the 'competition' those toshiba PLC's (which btw market for several thousand euros -each- even second hand ;) it's one big solid aluminium case.

as for pc replacements... pc's are one big source of radio interference anyway and always have been. the board is the -least- of the worries, try those atx psus and run them next to a spectrum analyser in a faraday cage. lol. priorities in 'fixing things' would include -that aspect- :P it's usually not the board causing the rf meters on your tranceivers to go up a few points constantly when placed in the same room as pc's... it's the psus.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 10:45 am 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
as for building the ethernet out of 74hc logic, i looked into that, stumbled upon the original xerox alto ethernet board, and went like 'nah' :P anything up to the 'integration level' of an 8 bit ne2000 isa card from the 1980s would be acceptable tho, just with more modern magnetics and proper trace impedance. and just twisted pair :P but preferably a single chip solution. but a -solid- one. no 100 pin smt crap that does a lousy job at a whole lot of different things. preferably one designed to work perfectly as what it is, an 8 bit 10mbit ethernet tranceiver. (not some repurposed thing originally designed for 16 bit pc cards with useless eeprom interfaces and internal address decoder and just '5 volt tolerant inputs' (meaning it's actually a 3.3v device on which they removed the protection diodes) which besides being able to do all that stuff we don't need -does not- have working irq's in 8 bit mode. which we -do- need (as in that case you can just switch the whole thing into standby mode until a command arrives or something else triggers an irq or nmi)


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 11:39 am 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
as for 'it might take years'. this board took about 2 days (each production round of test boards takes a week to ship from the factory tho - we do have a cnc pcb mill but it's 500km away and also isn't exactly 'real time' ;) . after the initial versions for trying out in which order to place/rotate the chips so the busses would be somewhat in the same spot without a million vias. (notice how nintendo solved that by just making the cpu and the ppu mirrored images of each other in the pinouts, something we can't quite do yet for the 6502 and it's periphial chips ourselves :P kinda odd that with most of the the busses in the same order the 6522's are 'upside down' from the 65c51s but so be it :P

for the atx version it would probably suffice to just print out the top layer on paper, insert the connectors and try wether it fits the average atx case and existing blindplates. but as the atx version is supposed to get the full 16MB of memory (preferably not in 32KB each sram chips but somewhat larger sram chips ;) and would not be much use without the definitive ethernet version (although 8 bit isa bus slots will be included so just like it can hook up to 8 bit isa video adapters of any kind it can also hook up to any 8 bit ethernet adapter on isa) and such that is not much use yet.

other than that, commodore IEC bus on everything. need to work out how to get it to properly implement on a 65C22 as it seems the bugs that originally affected it's functionality on 6522's have been fixed a few decades ago. also need to figure out a way to emp-proof that a bit. as commodores own crap isn't exactly resistant to 'hotplugging' let alone deliberate tampering.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 11:48 am 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
it seems like umc is selling cloned nintendo nes/arcade (actually the same chip with the color bits swapped around in some versions) ppu video chips to anyone for clone nes'es so including multiple of those could be considered (low resolution is acceptable, as long as it has sufficient outputs for individual displays). but they can only do 30x8 bit wide char wide displays (besides the useless game related stuff). (seems to be the only directly interfaceable video chip on the market atm tho. unfortunately ;) good old 'AT' din 5 keyboard interface (whomever came up with that crappy minidin thing always falling at ibm out should be hanged ;) and good to go onto the desktop.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 12:05 pm 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
minicom on linux doesn't seem to be playing along with the CTS/RTS game regardless of the 'hardware handshake' yes or no setting nessesitating a little loopback cable. other than that it's the normal pc mainboard header pinout not the directly wired IDC crimp pinout (not sure but i guess i prefer the direct IDC pinout for later versions, the pc connectors are kinda flimsy on the inside with the soldered contacts all over the place just to keep them in db9 pin order the 1:1 IDC with crimp connectors on both ends seems much more sturdy). probably the next version will have that max232 version with the correct number of tranceivers to also cover dtr/rts -and- some way to make either or both of cts/rts dtr/dsr do a local loopback as it is a rather annoying aspect of the 65C51 that it can't transmit in any way if CTS isn't asserted. (probably using some pins on the first 'system control' via that'll also pull reset and control some lcd display - controlling 1602A lcd displays directy seems to 'work' but their datasheets (mostly in chinese) say something about 1350 nanoseconds delays on some actions so that's definately not a 'guaranteed to work' setup. plenty of via pins for that. ;)


Attachments:
IMG_20160106_104344.jpg
IMG_20160106_104344.jpg [ 3.09 MiB | Viewed 4313 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 12:09 pm 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
hmm either that or the single nullmodem cable i've tested it with so far has seen a bit too many racks and tie-rips :P lemme check that thing. lol. all of the ones we've bought over the past 2 years are red. this one is still 1990s 'beige' :P lolol. could be just a screwed nullmodem cable lol.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 2:10 pm 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
0 volts from the pc side of things. on all handshake lines. not -10 not +10 just 0 on either of the 2 onboard rs232 ports or a usb one. well done minicom (or linux) for screwing up something simple people already got right in the 1960s.

65c02 board on the rs232 tester: txd green (+10V), rts red (-10V) DTR nothing (logical as it's not wired but looped back to the DTE)
WTI CMS-16 ethernet console switch on the rs232 tester: TXD green, RTS and DTR red
WTI remote powerboot+: TXD green, RTS and DTR red

PC running minicom regardless of hardware handshake setting or port used on the rs232 tester: just TXD green (that being said it doesn't 'ignore' CTS, it just doesn't seem to assert DTR in any way). whomever fucked up minicom, unfuck it. now. lol.


ok... time to configure something the pc/linux/minicom cannot screw up. now if only i remembered the dip switch settings to those wti things or the ip address of that zyplex rs232 server. lol (probably still something in our old blocks, not in the new ones ;) as as far as i see anything i plug into anything nicely


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Wed Aug 29, 2018 8:13 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8462
Location: Southern California
Congratulations on the progress! It's lookin' good!

Quote:
<-- so far for 'interference' besides the thing being one big groundplane (which, admittingly, is some sort of antenna by itself, not much we can do about that as the cases will also be full metal anyway

True ground planes are never antennas; but what I'm seeing in the picture is ground pours, which definitely do not qualify as a ground plane for this type of work. There is a way to use them to supplement real planes; but if they're not done correctly, they can actually make things worse, according to experts in the field like Rick Hartley, Eric Bogatin, and Suzie Web whose lectures you can see on Altium's YouTube channel. See our sticky topic, "Techniques for reliable high-speed digital circuits."

Quote:
although the vias will probably drive solid state relays just fine (65kohm dc resistance, trigger at 3v, at least the 10 amp ones i tested with ;) driving anything else directly with vias obviously requires a bigger board.

It sounds like you're talking about VIAs (capital letters, acronym for the 65c22 "Versatile Interface Adapter"), rather than vias (the little plated-thru holes that make a connection between layers in a PCB). The original VIA's outputs were rather anemic; but the WDC W65C22 can pull within .8V of either rail with 19mA per pin, and if you short it (which might not be the healthiest), you'll get about 50mA. The Rockwell R65C22 was stronger than that pulling down, but not as strong pulling up. Regardless, when driving a relay, if the required voltage or current are high enough, some sort of additional driver is in order, even if just a transistor, resistor, and diode, as I show in the 6502 primer at http://wilsonminesco.com/6502primer/pot ... #DRV_RELAY . The section immediately following that tells about driver ICs with serial inputs which you can use the with VIA's serial port, which I have done in automated test equipment.

Quote:
after the initial versions for trying out in which order to place/rotate the chips so the busses would be somewhat in the same spot without a million vias.

You probably already know this, but for memory, you can mix up data lines and mix up address lines if it makes the layout easier. This is in the first tip in the Tip of the Day topic.

Quote:
other than that, commodore IEC bus on everything. need to work out how to get it to properly implement on a 65C22 as it seems the bugs that originally affected its functionality on 6522's have been fixed a few decades ago.

The only '22 bug I can think of is the one of mode-011 operation of the serial port. That one unfortunately is in all manufacturers' 65(c)22's, even to this day in WDC's. It won't affect most users; but if you need that mode, there is a way to get around the bug with external logic. WDC's however is the only '22 whose inputs are truly high-impedance in the input mode. Other ones look like an LS or TTL input, which I think was a very poor design decision.

Quote:
minicom on linux doesn't seem to be playing along with the CTS/RTS game regardless of the 'hardware handshake' yes or no setting

Is it a problem with the UART continuing to empty the transmit buffer even afer its CTS input goes false? I met with that problem around 1990 on PCs and had to tell it to hit the brakes when there were still about eight bytes left to go before my receive buffer was full.

Quote:
not gonna use any of that smd crap that is only held in place by the pcb traces. we're not -that- cheap

Note that military and space applications use SMT almost exclusively for the small stuff, ie, the ICs, capacitors, resistors, diodes, transistors, etc., although not for the connectors or for the heavy things that could tear the foils aways if the product takes a high-G impact or other forces. Military and space do use leaded solder though, not the troublesome RoHS stuff that the the European consumer market regulations demand. Our company was years later than others in making the conversion to SMT because we had our own thru-hole assembly and soldering equipment, and our production volumes were too low to justify the high SMT set-up costs that characterized the early years for this kind of thing; but now we've been on SMT for a dozen years with absolutely zero reliability problems. The boards go into military and aircraft applications. (I've mentioned the satellite work before also, but that's a consulting job on the side. They use SMT in the satellites too, where things have to be super reliable.) SMT's smaller packages and reduced or eliminated lead lengths also make for much better high-frequency performance, due to the elimination of parasitic inductance. We could all wish that thru-hole parts were just made smaller and smaller to accomplish that part of the purpose; but sooner or later the production benefits of SMT were bound to happen. I just completed my first super-dense, parts-on-both-sides SMT layout. Before this, I've put only a very few parts on the back, including with thru-hole. It can be done with ICs too, if you stagger the rows of pins, and then either use a socket on one side, or solder pins from the top side of the IC, by hand, since the bottom will be inaccessible once an IC is covering the holes on the other side of the board. Still fun. :D

_________________
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: Baby's first words.
PostPosted: Thu Aug 30, 2018 5:39 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
Diodes Inc. ZXMS6005 works nice as a relay driver, but it's too slow for PWM.
ST L6374 line driver even could drive small relays, but the chip is a bit... exotic.
ONsemi LA6500 is a nice OpAmp for driving small DC motors and such.
Analog Devices AD7608 8 channel 18 Bit A\D is worth a look, parallel interface and SPI.
Analog Devices AD5360 16 channel 16 Bit DAC, outputs need to be buffered. SPI only.
TI OPA2209 is good for buffering DAC outputs if you don't need much output current.
Maxim MAX6250A is a good voltage reference, might be needed when using the AD5360.

Nowadays modern A\D and D\A converters usually are not available in DIP packages, sorry.
Looking forward to see, what cb3rob uses as a watchdog timer.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Thu Aug 30, 2018 8:59 am 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 306
I'll just point out that a solid state relay is not an electro-mechanical relay. The driving side is just an LED and a resistor. You only need a few mA, and there's no inductive kick-back. There's no need for external drivers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Thu Aug 30, 2018 9:16 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
John West wrote:
There's no need for external drivers.

I have to admit, that I'm having some problems with digesting big blocks of text containing only lower_case letters...
but sooner or later cb3rob is going to need drivers for something. :)

;------

Routing a PCB of that sort within two days is OK.

I just feel a need to add my two cents:

;...

Attachment:
binks.png
binks.png [ 5.07 KiB | Viewed 4211 times ]


For better EMI, try to avoid 90deg. turns in PCB traces if possible. Especially in power supply traces.

;...

A trick for better shielding a PCB is to have a polygon at the edge of the PCB, connected to GND by a 100Ohm resistor or such.
Polygon shouldn't go around the whole PCB, but needs to have a small gap somewhere (else, you would be building antennas).
With this, an ESD discharge to the edge of the PCB (or to the casing of the computer) would be less "confusing" to the computer.

Attachment:
p1edge.png
p1edge.png [ 29.73 KiB | Viewed 4211 times ]


BTW: picture shows "customized" octagon vias with a 3.5mm drill (for M3 screws) as mounting holes for the PCB.

Also, it's good to have thicker PCB traces going to connector pins to improve long term reliability of the design,
and maybe to remove some of the solder mask on the botton to give a bit more "flesh" for soldering the connector pins.
Hmm... since we are at it: marking pin 1 of every connector (and maybe every IC) with something like '<' makes a design more "service friendly".

If one via won't do for the current, just place a group of vias close together connected to the same trace.


Top
 Profile  
Reply with quote  
 Post subject: Re: Baby's first words.
PostPosted: Thu Aug 30, 2018 8:04 pm 
Offline

Joined: Thu Aug 23, 2018 7:10 am
Posts: 89
Location: CyberBunker
Attachment:
almostcomplete.png
almostcomplete.png [ 1.72 MiB | Viewed 4168 times ]
the pin 1 are marked by having a square solderpad, in as far as they are ic's they also have the outline including the orientation hole on the soldermask, the component number is printed at the pin 1 side as well.

all dip packages use the large pad footprint, traces are as thick as i could get them while still being able to get one in between 2 pads and maintaining the distance to the pad.
vcc traces are slightly thicker than an entire pad

for the xtal oscs we probably should get our own sockets made. currently they're in dip 14 in which 'short formfactor' (dip 8) ones can be moved down away from pin 1 (not to have a dead trace on clock lines, just have a dead trace on vcc under long ones ;) any dedicated xtal osc sockets i could find only supported one of the 2 formfactors. (funnily enough most of those came from some 'arcade repairs parts' company, not from actual mass production retailers)

actual xtal osc sockets seem to have higher legs than dip14 so just getting a goldplated round hole dip14 and removing the middle pins won't do for production quality.

slowly the rest of the parts are dripping in, now all that's still missing is the 74hc139n in the address decoder (the big board sticking into it's socket is 2x74hc254 doing the same job, at least, as long as you don't wiggle it - good way to make sure the memory test works - which it actually does. ;) and some proper power connectors (it actually is designed for the 'green' phoenix 5.08mm plugin things but i just ordered a bag of blue chinese screw connectors with the same legs for the test boards. (now if only we could get wima to make the caps in blue as well as so far the caps are the only thing that are not blue or black ;) i think siemens foil caps are blue tho ;) lol. the test boards also have the 'easier to insert' cheap sockets, not the goldplated round hole ones, as getting chips in and out of there on a regular basis is a pain in the butt. ;) (they do stick a lot better once they're in tho ;)


foil caps seem to work fine for everything including the rs232 linedrivers btw. no more elcos. elcos are ****.
production boards will obviously have screwholes with ground around them.


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

All times are UTC


Who is online

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