I use an EFM8 Microcontroller and want to transmit the value of a
current source (in case of an increase or a decrease caused by an
encoder) via UART.
I use a "char cvalc" which contains the value of the current,
separated into [0, x*100, x*10, x*1]. When I change the current, cvalc
changes the same way (please see attachment, main.c: increasecCval and
decreaseCval). Then, the transmit flag is set only in case of an
increase or a decrease.
Right now, the UART doesn't stop sending 0, it neither stops nor sends
the correct value. I want it to send something like 0122 once I turn the
How will I have to change the loop/the if query?
The UART ISR is attached in interrupts.c