EmbeddedRelated.com
Forums

Re: UART transmit a CTRL-Z

Started by Paul Curtis August 10, 2005
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@hc08...] 
> 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
> 
> 
> 
>  
> 
> 
> 
> 

Beginning Microcontrollers with the MSP430