FORUM TOPIC · READ ONLY

UART

UART

Forum : dsPIC Peripherals

2 message(s) · archive en lecture seule

guille
Hello I´m Guillermo from Argentina! congratulations for the blocks! are great! I want to know if I am doing something badly in my design. I want to send a character for the UART, I am going to send numbers, I want to convert it to double, to add a number and return to send it. It does not work, returns garbage to me. Here is the model.

If someone can help me please...

Thanks


Pièce jointe : UART.mdl

resodad

Re: UART

Hi Guillermo,

I'm not sure what you're trying to accomplish.

Do you need the data store for some other purpose?

Maybe you can eliminate it?



Why are you converting to double? Convert to uint8 after the sum keeps only the least significant 8-bit byte.



You may have a problem with the order of execution of the blocks.

Pièce jointe : convertType.mdl