Jan said:
Nice, but would not C be more portable?
I mean if you no longer can get that chip, or need to
implement it in some other project?
Not every micro has BASIC interpreter or compiler available for it.
Month? That is a very long time.....
I had Software Toolworks C (with floating point library) running on
that Z80 system of mine, on my own OS CP/M clone, that
actually only too 3 weeks to write itself, so it C it would
not have taken much longer then in your BASIC, assuming I knew the
digital filtering stuff, something I did not in the 1980 ties.
But the extra peripherals on your Mega88 make it look much like a PIC

Does it have a brownout timer too?
Long time maybe. But I'm comparing how much nice peripheral stuff is
now packed in as normal. I.e an 1985 meter would have required design-
in of not just the Z80 but lots of glue logic+RAM+ROM+ADCs+timers
+alphameric display+hefty power supply etc.
Code recycling has never been an issue, as I only design hardware and
each new job invariably has to start with a blank sheet. Most of the
stuff I've done has been in assembler and obsolescence seems not a
prob with the Z80s and PICs.
I've been coming across this 'C is portable' mantra, for the past 25
years. Yet when looked into find C no more or less portable than any
other language. The Basics I've used, port with ease.
Problem is the uni's have forced C to the forefront, leaving Basic
with fewer supporters, hence portability is now limited. But, that's
a problem for career programmers to worry over, not me!. .
Yep. the AVRs are like a PIC on speed, with a toke of coke thrown in
for clarity

.
Has 3 brown out fuse settings and 2 internal clock rates. Used PICs
100% until last year, when A. Freemont here convinced me Atmel was the
way to go. Never looked back.
A Mega88 at 20MHz, runs each instruction in 50nS, has a hardware 8x8,
will do a signed longxlong in 3.75uS, NO sodding paging or banking or
256 byte breaks or movlw. Assembler is a breeze. From an equipment
POV, AVR seems about 10x more powerful than PIC.