Multi-function calculator C language MCU electronic design 8051 application