UART

guille
Posts: 1
Joined: Sun Mar 14, 2010 7:15 pm

UART

Postby guille » Sun Mar 14, 2010 7:44 pm

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

UART.mdl
(32.17 KiB) Downloaded 170 times

resodad
Posts: 71
Joined: Tue Jul 07, 2009 1:06 pm
Location: West Point, New York

Re: UART

Postby resodad » Tue Feb 15, 2011 6:56 pm

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.
Attachments
convertType.mdl
Demo of convert to uint8
(21.38 KiB) Downloaded 140 times


Return to “dsPIC Peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest