4 ms·
State machines in C work great when you don’t want a preemptive RTOS. I did a embedded project on 8051 like that, we had the legacy code 100% in asm and we mov
by alfor 4y ago
State machines in C work great when you don’t want a preemptive RTOS.
I did a embedded project on 8051 like that, we had the legacy code 100% in asm and we moved to C. In the end I think we had about 10-20 lines of asm and everything else in C.
You are right switching cpu and thus all the peripheral is major headache, not something to take lightly.
- deleted 4y ago[deleted]
- Johnythree 4y agoIs relatively trivial. Have done it countless times since the early '80's. In fact I find that learning new high level packages much harder.