3 ms·
Ancient desktop is todays (or at least yesterdays) embedded. I guess this dates me but instead of taking the legacy Z80 embedded micro controller class a long
by VLM 12y ago
Ancient desktop is todays (or at least yesterdays) embedded. I guess this dates me but instead of taking the legacy Z80 embedded micro controller class a long time ago, I took the then new brand new 68hc11 class, although the Z80 guys got to use two DACs and a scope to display a cube on the scope as one of their labs. Now using a mhz class cpu to output a table at khz speeds isn't very impressive, so logically the next step in the lab was rotating the cube. I donno if they had to dream up their own trig or got a canned library. Maybe they canned the whole thing and just stored 30 or so frames of rotation data and switched which frame they displayed every tenth of a second or whatever. Donno didn't take the class but we got to see their work on lab day.
I would imagine whatever took a "sheet of paper" sized development board with dedicated hardware DACs and eproms around 1990 could be done as a single chip solution today, assuming you can find a single chip solution that actually has two on board DACs. Or up the challenge by synthesizing PWM signals and low pass filtering them, essentially a class D amplifier controlled by software.
- kragen 12y agoThat sounds awesome. Surprisingly or not, PWM circuits (a counter and binary comparator) are more common than DACs on today's microcontrollers. I blew up some somewhat expensive tweeters finding out that just because you can't hear the 31.275kHz PWM carrier doesn't mean the amplifier isn't amplifying it.
- Crito 12y agoIt is definitely plausible that they were rendering their spinning cube in real-time. A lot of people have written wolf3d-style raycasting engines for z80 (mostly z80-based TI graphing calculators, which are clocked between 6MHz and 15MHz. much faster than a TRS-80 to be fair). This guy even made a doom-style engine: http://benryves.com/journal/3739423 http://benryves.com/journal/3739423 (see animated screenshot). The stuff the demoscene has done with z80 microcomputers can be even more impressive.
- VLM 12y agoTrue, but I was concerned with it being a school lab, they were already demonstrating dual dacs, linked list data structure with semi-complicated data structure (well, OK, x and y values and maybe just a dumb lookup table) in assembly. Asking them to add a third aspect of trig might have been too much for one lab so maybe they canned the rotation and just had a very large data table animation rather than calculate on the fly. My project for the demo day in 68hc11 class was the 68hc11 was a weirdo among microcontrollers for having an external memory bus, so I slapped a 32k sram onto it making it a 32K MC and made what amounts to a drum sampler, press this button to record a couple seconds off the onboard A/D and press this button to play it back using an offboard DAC. Now a days of course microcontrollers rarely expose their memory bus and you'd just buy a COTS MC with more memory on the chip. We only had one day to prep for demo day and asking the Z80 kids to do DACs, and a vector algo, and trig all in one day might have been asking too much. Its been awhile, but I think the demo day theme was we all had to use at least one off chip DAC.