Omnimaga

General Discussion => Technology and Development => Other => Topic started by: Keoni29 on July 23, 2013, 09:04:57 am

Title: How to set up RealTerm for 1start+1stop bits?
Post by: Keoni29 on July 23, 2013, 09:04:57 am
Willrandship, Spyro and I are trying to figure out how to program an eZ8 microcontroller. It can be done via the on-chip debugger, but we'd have to set up a UART like this:
Is this possible with realterm or should willranship write his own software in python. (I can do it in C too)
Title: Re: How to set up RealTerm for 1start+1stop bits?
Post by: SpiroH on July 23, 2013, 09:35:44 am
Willrandship, Spyro and I are trying to figure out how to program an eZ8 microcontroller. It can be done via the on-chip debugger, but we'd have to set up a UART like this:
Is this possible with realterm or should willranship write his own software in python. (I can do it in C too)
Just browsing thru the 'ReaTerm' Readme: http://sourceforge.net/projects/realterm/files/Realterm/2.0.0.70/ it seems possible, indeed. BTW, any serial communications program should allow that else is not good enough.
BOTOH, why bother to use an external program when you can do it with C or with inline assembly, with just a few code lines? My 2 cents,
Title: Re: How to set up RealTerm for 1start+1stop bits?
Post by: Keoni29 on July 23, 2013, 09:46:50 am
With C or asm you can't do anything unless you compile/assemble it into an executable binary (external program as you call it). What exactely did you find in the readme?

Edit: I need to set it to little endian mode as well. This option is "greyed out" at the moment.
Title: Re: How to set up RealTerm for 1start+1stop bits?
Post by: SpiroH on July 23, 2013, 11:32:56 am
1. Ok, probably the good link is this: http://realterm.sourceforge.net/index.html#Command_Line_Parameters . Look at the commandline parameter 'DATA'. It should allow you to specify the data-bits+parity+stop-bits. I guess, that's what you are looking for.
2. I understood you intended to configure the serial i/o port to use from within some program of yours. That's why i've mentionned it would be easier to program the UART-port in code rather than using an 'external program' (RealTerm in this case), provided you have the eZ8 UART docs.
IMO, try to sort it out first with RealTerm and later write a small routine that initializes the UART.  Little endian with 8-bits? I don't get it, sorry. Cheers,
Title: Re: How to set up RealTerm for 1start+1stop bits?
Post by: Keoni29 on July 23, 2013, 11:37:54 am
It aint got no start bit option. I'm gonna write my own software I think.