Arduino, RaspberryPi, ... These words are increasingly found on the Web in the context of creating controllers for all applications, from smart home to flashing LEDs. Despite the technical tricky, these glands are terribly boring. Judge for yourself: filed power, downloaded the program, ... and that's it! And what is being done inside the silicon installed on the PCB is not known to us. Or uninteresting?
The reason for solving the problem of "uninteresting" was the love of the processor 6502, on which the first units and some other remembered "Agates" were gathered, as well as a bunch of chips lying around. There are a lot of schemes on this processor on the Internet, but there are practically no those that could be useful in the household. The result of the work is the Ayusha controller, which is already ready to
take control over the world, help us in the amateur laboratory, whose circuitry we know, can be altered by our whims, and which in most cases replaces the application * duins and similar boards.

Why 6502? There are 580BM80, Z80 ... VM80 does not suit technically - three supply voltages, the second applicant is programmed in a foul ... 6502 is very simple in low-level programming, although it has some "unusual", such as page-addressing memory and display I / O ports on the main memory . However, at the same clock speed, the 6502 overtakes the Z80, and the BM80 even more so has 258 registers (yes, 256 external, with simplified addressing) and many more tasty and interesting, including software that has been developed.
So, what the published schemes did not suit us? Most importantly, they all had no input / output ports through which they could sense the outside world and somehow manage it. So we add such a chip to the circuit. The choice is wide, but since the microprocessor kit 63 / 65 / 68 is somehow out of luck on 1/7 of the land, we stop at a 580BB55 microcircuit with three eight-bit ports to which you can connect almost any sensors or control the relay unit or other switching circuits .
Further, in the amateur laboratory you need a sound and radio frequency generator. For sound applications, we recall the three-channel timer 580VI53. Now we can even play music or use the generated pulses to synchronize a high-frequency synthesizer.
Since we still do not know when the upgrade will end or its filling with other nodes, we supplement the scheme with bus buffers. Oh yeah, they forgot about the connection with the owner, you must somehow take commands from him and answer him that he is wrong somewhere. To do this, we use the serial port chip, in our case, the 6850 was lying around with our hands, but 580BB51 could also be used. The controller can be connected to any terminal (albeit with a teletype machine) via the COM port or controlled by a terminal program from any computer (Hyperterminal from the WindowsXP kit). Through the serial port, the controller receives commands from the keyboard of the external device, throws its messages onto the external monitor, and programs for the further operation of the controller are uploaded through it. And if you use the converter COM-> Ethernet, then you can control the "Ayusha" from any part of the world. But it is so, dreams ...
Everything! We decided on the scheme, and since we had to think and be nervous a lot, we should calm our nerves by knitting with MGTF ...

We insert the ready controller into the case. Of course, there is room for further expansion of the apparatus.

')
We place the main connectors and control knobs on the device's face. We have three parallel ports, two channels from the VI53 timer, and one channel can be controlled by another, if necessary, a COM port for the terminal, a terminal power output or external devices, a hardware reset button, a power indicator, and a firmware selection switch for the ROM.

What we got on the gland? So, the processor 6502, 1 MHz clock (it is planned to upgrade the processor 6502 with a clock frequency of up to 5 MHz - it can be more, but, unfortunately, 580BB55 will stop responding to stimuli), 47K RAM, 64K ROM, divided by 4 pages of 16K. All this in a small package is powered by a three-amp five-volt adapter from a well-known D-firm.

Well, with iron, we decided, it remains to revive "Ayusha" with the help of embedded software. Since the duins mentioned at the beginning of the article use the C dialect, the creator himself ordered, in honor of the fiftieth anniversary, to use the BASIC programming language. Since there are links on the Web that allow you to create your own dialect of the language, we use them, and now Ayush communicates with us in normal Old English.

That's all for a start, now we can “pull pins” using the POKE command, find out what happened with the help of the PEEK command, save the results of work to the “big brother” and assign some functions to the controller, simplifying our lives.
The next step of the project will be the creation of a simple “iron” terminal (after all, it is somehow uninteresting to work with the kid to use a powerful computer) with the ability to save and load programs on a tape / voice recorder / cell phone. Also this terminal can be useful for us to work with other devices, programmable or communicating with users via the serial port. But it will be another story ...
The full description of “Ayushi” is available on the project page,
www.qsl.net/rw6hrm/html/6502.htm . In the same place its modifications, new nodes and programs will be posted. Sources of information are also indicated for those who like the 6502 processor, where to get the initial information from it. And if someone decides to repeat the scheme, then please treat it as a collection of ideas, and not as a final decision.
The second part is located
here .