On Sun, 3 Nov 2019 21:10:56 +0100, "R.Wieser"
declaimed the following:
>
>Does an atmel mega32 (and family) also count ?
>
I presumed you wanted a regular OS on the unit. The Atmel chips fall
into the no-OS* microcontroller class rather than OS-laden microcomputer
class. The Arduino Due would let you stay with the ARM instruction set. Or
maybe a TIVA C123# http://www.ti.com/tool/EK-TM4C123GXL which has an ARM m4
with floating point -- and way too many timers (6 64-bit and 6 32-bit --
each of which can be split into two half-width timers). Four 10-pin
headers. If you need more pins, the TIVA C1294 (or the 129E -- hardware
encryption version) with 8 10-pin headers (but only 8 32-bit timers) and
on-board Ethernet. They can be programmed using TI-RTOS.
* Well, the larger ones might support using FreeRTOS, though that's not
what many would consider an OS per se.
# Interesting thing -- there are actually two identical processor chips
on that board. One if for you to program, the other one runs the flash
programmer and debug interface.
>> Well, as hinted above, that float is just seconds from 1970.
>
>Yup, the famous "epoch". But I would really like to see your calculation
>to convert the year, month, day, hour, minute and second values into such a
>float. You know the joke about "and than you have two problems" ? That
>also seems to be true for home-made date/time functions.
>
Well -- I did show what the Python 3.x datetime module contained for
that...
Ignoring leap-second adjustments, I'd probably steal a program from my
HP calculators (I misplaced the book documenting the algorithm) that
converts calendar date to julian date, do a difference against the infamous
epoch, and then multiply the result by 86000 to convert to seconds. (I
suspect some unicode characters won't come through)
« ? t
« t IP t ABS FP 100 * DUP IP SWAP FP 100 *
IF OVER 3 <
THEN 3 ROLLD 12 + SWAP 1 -
ELSE SWAP 3 ROLL
END ? m y
« 0
IF t 1582.1015 ?
THEN DROP y 100 / IP DUP NEG 2 + SWAP 4 / IP +
END 365.25 y *
IF y 0 <
THEN .75 -
END IP m 1 + 30.6001 * IP + + + 1720994.5 +
»
»
»
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|