I would like to transmit c chain of 60 hex bytes.
So far the only way i have done this successfully is using a very long printf.
I have used a putc() in a loop, this however seems to add several '0's throughout, which i can't have.
Is there any other method for outputting data without directly using the registers.
thanks,
Matt
Wayne_
Joined: 10 Oct 2007 Posts: 681
Posted: Tue Jan 27, 2009 7:47 am
putc(c) and printf("%c", c); or printf("%x", c); should work.
If you are getting corrupted data then there must be another problem with either your code or your hardware!
mshearer
Joined: 12 Jan 2009 Posts: 33
Posted: Tue Jan 27, 2009 7:54 am
ah thanks, your quite right.
It looks like my attempt to set the TX9D bit for parity is going wrong somewhere. Or my terminal program is handling it oddly
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum