moving stg3_coef calc to uartDrv.c