A microcontroller made from 555 timers - Page 1
Forum section: electronics / projects

author: tggzzz
author_rank: Super Contributor
timestamp: December 18, 2021, 10:19:51 am
content: Using a MCU to implement a 555 is one of those topics guaranteed to have greybeards muttering "...youngsters..." - even though with exceedingly cheap/small MCUs it isn't quite as stupid as it appears.But what about implementing an MCU using 555s? One of 0.1% of really interestingHackaday articlespoints to aprojectby Tim Böscke.My TL;DR is:a decade ago he implemented a CPU in a 32 cell CPLD, with documentation athttps://github.com/cpldcpu/MCPUthatMCU definitionhas 4 instructions, 8-bit datapath and a 6-bit addresshe is reimplementating that using 555s, as shown in theproject logsso far he has simulated it in LTSpice, and has an interesting and sensible workflowUnfortunately the first Hackaday comment beat me to it: "Can you emulate a 555 with it?"As an aside, this post is a neat example of the limitations of hierarchical taxonomies. Should it be in "Projects, Designs, and Technical Stuff" (no because it isn'tmyproject), or "Microcontrollers" (no because you can't buy/use it), or "Open Source Hardware" (because it is), or "PCB/EDA/CAD" (because of his interesting use of workflow and tools)?Basically taxonomies are basically useful for indicating where therenopoint in looking for a topic, e.g. "Jobs" in this case. The corollory is that sweating over finely crafting/tuning/changing hierarchies is a great waste of time.But that's a different topic (which might belong in "News/Suggestions/Help").

author: jpanhalt
author_rank: Super Contributor
timestamp: December 18, 2021, 11:11:38 am
content: High Tech Chips,Inc used an MCU to emulate many of the functions of the 555. Part numbers were HTC555, HTC550, HTC750, and HTC751. That was done around Y2K.Its original site: hightechips.com seems to be in the gaming business now. Anyway, just for reference, I have attached a pdf of its datasheet for a multivibrator (HTC550).Of course, with the 12F series PIC's, ground (pin-8) and Vcc (pin1) are different from the 555.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 18, 2021, 12:39:20 pm
content: Hackaday never ceases to surprise me. Thanks for sharing the article.

author: ataradov
author_rank: Super Contributor
timestamp: December 18, 2021, 05:25:02 pm
content: I personally did not find it interesting at all. You can create a NAND gate from a lot of things and it is obvious you can create computing devices from NAND gates.I found computers built from individual transistors to be far more interesting, since they scale up and illustrate something that actually happens (or happened) in real life.

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 18, 2021, 06:18:57 pm
content: Indeed, what the author did was basically get NAND and NOR gates out of a NE555, at least from the short part I read. Of course from then on, everything follows. You can implement almost anything using NAND and NOR gates. Using a NE555 for this just looks like one of those fun tricks leveraging some fetishism for popular old chips.Likewise, you can implement "linear" amplifiers with CMOS gates. That's cute too. (But it could have some practical applications for lowering costs if you have one or more spare gates in a given design!)But hey, whatever tickles anyone's fancy.

author: magic
author_rank: Super Contributor
timestamp: December 18, 2021, 07:00:20 pm
content: I think quad NAND should be doable with TL074 by exploiting its phase reversal.Unfortunately external resistors are still needed, to guarantee that IN+<IN- when both inputs are driven high.

author: tggzzz
author_rank: Super Contributor
timestamp: December 18, 2021, 07:52:37 pm
content: Quote from: SiliconWizard on December 18, 2021, 06:18:57 pmOf course!Inverting the "use an MCU to replace a 555" trope does tickle my fancy

author: T3sl4co1l
author_rank: Super Contributor
timestamp: December 19, 2021, 02:54:15 pm
content: Yes, would be much more interesting if it took advantage of the more analog properties of the device. Example: if input signals are well buffered, then summing them together with resistors gets you an analog level, which compares to the internal threshold, and there you go, a COUNT(N; a_1, a_2, ..., a_n) operator. Which, if the threshold is N=1, you get a standard (N)OR gate; or N=n, (N)AND.Would also like to see tooling to accompany the architecture -- four measly instructions is the most boring thing I can think to assemble. Doing basic arithmetic and flow control would be nice; maybe implementing a VM with a nicer architecture, albeit even slower in operation.Or, another interesting question might be: at the expense of adding one or a few instructions, or lengthening instructions (say to allow more memory space, or various addressing ranges, or modes even), how much nicer/easier/faster does that next level VM get?Ultimate question, for any combination of HW/SW architecture: how long until it runs C?(After which, Doom is only a few keystrokes away, natch.)Tim

author: tggzzz
author_rank: Super Contributor
timestamp: December 19, 2021, 03:56:58 pm
content: Quote from: T3sl4co1l on December 19, 2021, 02:54:15 pmIt has three more instructions than necessary to be Turing complete, I believe.It has a datapath 8 times wider than the Motorola 14500.That should be enough for anybody

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 19, 2021, 06:59:08 pm
content: Quote from: tggzzz on December 18, 2021, 07:52:37 pmWell ok, it's kind of "Revenge of the NE555".But yes, it would have been more interesting using the NE555 in a more clever way than just making it act as a logic gate.

author: Zero999
author_rank: Super Contributor
timestamp: December 19, 2021, 08:19:13 pm
content: Quote from: SiliconWizard on December 18, 2021, 06:18:57 pmI made an analogue comparator with a couple of CMOS gates awhile ago. It worked, but was obviously nowhere near as good as the LM393.