Kittu20
Member level 2
Hello everyone,
I'm trying to wrap my head around a basic concept. I want to retrieve an integer value from a variable in my microcontroller and send it to my PC via UART. The UART is configured for 8N1 format. Now, I know that an integer takes up 4 bytes of memory, but UART can only send or receive one byte of data at a time. How can I display an integer value like 12345 without using the string.h header file?
I'm trying to wrap my head around a basic concept. I want to retrieve an integer value from a variable in my microcontroller and send it to my PC via UART. The UART is configured for 8N1 format. Now, I know that an integer takes up 4 bytes of memory, but UART can only send or receive one byte of data at a time. How can I display an integer value like 12345 without using the string.h header file?