Hello Guys Quick question, how does one transmit a CTRL-Z keystroke via the UART? sending ^Z doesnt help, is there a hex code or someother way of getting this done? Thanks Jay
UART transmit a CTRL-Z
Started by ●August 10, 2005
Reply by ●August 10, 20052005-08-10
Thanks Paul, just what I was looking for :-)
--- In msp430@msp4..., "Paul Curtis" <plc@r...> wrote:
> char ch = '\x1a';
> char ch = 26;
> char ch = 0x1a;
>
> All these set ch to ^Z.
>
> Then U0TXBUF = ch transmits it, just like any other character.
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks for MSP430, ARM, AVR and now MAXQ processors
>
> > -----Original Message-----
> > From: hc08jb8 [mailto:hc08jb8@y...]
> > Sent: 10 August 2005 09:19
> > To: msp430@msp4...
> > Subject: [msp430] UART transmit a CTRL-Z
> >
> > Hello Guys
> >
> > Quick question, how does one transmit a CTRL-Z keystroke via
> > the UART?
> > sending ^Z doesnt help, is there a hex code or someother way
> > of getting this done?
> >
> > Thanks
> > Jay
> >
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~--> <font face=arial size=-1><a
> > href="http://us.ard.yahoo.com/SIGhghprsp/M62329.6886308.7
> > 839368.1510227/D=groups/S05005378:TM/Y=YAHOO/EXP23672769
> > /A(94321/R=0/SIGdvsfulr/*http://youthnoise.com/page.php?p
> > age_id92
> > ">Fair play? Video games influencing politics. Click and talk
> > back!</a>.</font>
> > --------------------------
> > ------~->
> >
> > .
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
Reply by ●August 10, 20052005-08-10
ASCII control-Z is 0x1A. Thus:
U0TXBUF = 0x1A;
Regards,
William
On 8/10/05, hc08jb8 <hc08jb8@hc08...> wrote:
> Hello Guys
>
> Quick question, how does one transmit a CTRL-Z keystroke via the UART?
> sending ^Z doesnt help, is there a hex code or someother way of getting
> this done?
>
> Thanks
> Jay
--
wjw1961@wjw1...
William J. Watson
Reply by ●August 10, 20052005-08-10
hc08jb8 wrote: > Hello Guys > > Quick question, how does one transmit a CTRL-Z keystroke via the UART? > sending ^Z doesnt help, is there a hex code or someother way of getting > this done? I guess you're sending HayesAT to a modem (non binary data), then the "nonprinting" 0xa1 could work. also used for EOF or suspend a prog in a (unix)shell. No idea in other cases. G. > > Thanks > Jay > > > > > .. > > >