Go back through the achives, Tony Nixon recently posted a small sample for me (I
was also having problems with the UART on thr '628). His sample worked 'right
out of the box'.
Kevin
{Quote hidden}> Joris van den Heuvel wrote:
>
> Hi piccers,
>
> I have been trying for days now to get an uart application with an F628
> working but I'm at a loss. I tried picuart.asm by McGahee, but with no result.
> It seems that the uart in the F628 works a bit different. For instance,
> clearing TXIF after waiting for it to set does at least do something (blast
> the data without waiting for the previous byte to finish, the last byte is
> perfect), whereas without the clearing, the TX routine just won't work.
> Reception just hangs.
>
> Attached is some code. What it does is it wait for a signal to go high (GCD),
> send a message and then start echoing everything that comes in. Assume that I
> cleared the RAM. I modified the INC file so all bit names include their
> respective register names. That way I don't have to remember in which file
> register each bit is.
>
> So tell me: am I doing something really stupid or what?
>
> Regards,
> Joris.
>
> Name: F628 uart.txt
> F628 uart.txt Type: Plain Text (text/plain)
> Encoding: 7bit
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics