DEC, ASCII, BIN, HEX via SPI

Camerart

Member
Hi,
I'm trying to understand what actually happens when I program in 'say' decimal, send it via SPI or UART then either show it on a terminal screen or use the DATA in 'say a calculation.

Sometimes, I receive GPS DATA (NMEA sentences) which is a mixture of DEC and ASCII.

When it passes SPI it is BIN, then depending what it's used for could end up as usually DEC.

How is this all converted, and is there anything I need to consider, when programming?

Cheers, Camerart.
 

Camerart

Member
Hi,
I may have figured it out?
Whatever is on one side of an SPI transfer, whether it is HEX, ASCII or DEC, gets translated to BIN, then gets sent, then the reciever uses the DATA or displayes it after being set to 'say' DEC for a Terminal.

Is this correct?
C.
 
Top