I fact the previous example was just for demonstration,but when I tried
while(!(U0IFG & UTXIFG)) I experienced also garbage on terminal input from
usart0.
I changed to while(!(U0CTL & TXEPT)) what looks to be more accurate, but I
haven't tested.
What ddo You think ! Is it better?
I can not use interrupts
On Wednesday 19 of November 2003 15:38, Steve Underwood wrote:
> Robert Seczkowski wrote:
> >How is possible, that period when ' ' apears on usart0 is 10 times longer,
> >than calculated period ( 8MHz/8=SMCLK,
> >SMCLK/2 =500KHz;period=1/500*65535=~0.125sec)
> >interrupt (TIMERA_VECTOR)TAISR(void);
> >static i = 0;
> >
> >interrupt (TIMERA_VECTOR)TAISR(void){
> >i =1;
> >}
> >int main(){
> >TACTL = ID_1|TASSEL_2|TACLR //SMCLK/2
> >TACCTL0 = CCIE;
> > for(;;){
> > if (i==1){
> > i=0;
> > while(!(U0IFG & UTXIFG)) U0TXBUF=' ';
> > }
> > }
> >}
>
> How the USART behave when you do something very wrong, like
> while(!(U0IFG & UTXIFG)) U0TXBUF=' ';
> I wonder :-)
>
> Regards,
> Steve
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
--
Regards
Robert Seczkowski
[email protected]
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\