[Mspgcc-users] gdb stack

2005-10-31 Thread Delbert Martin IV
The stack viewing seems to be broken. I get some really weird info fron gdb. is there a fix on the horizon, or did I miss something? -- --Delbert Martin Administrator IT Systems Kionix, Inc. 36 Thornwood Dr. Ithaca NY 14850 (PHN) (607)257-1080 x199 (FAX) (607)257-1146

Re: [Mspgcc-users] USART in SPI Mode Double Send Problem

2005-10-06 Thread Delbert Martin IV
So it knows its running over itself. for the meantime ive written a software spi function set that can be easily replaced. Its just the USART is faster and less resource intensive than software. I guess I'll look through more assembler code. --Del Chris Liechti wrote: Delbert Martin IV

Re: [Mspgcc-users] USART in SPI Mode Double Send Problem

2005-10-05 Thread Delbert Martin IV
= 1; /* Software Reset */ U0TCTL = 0x73; U0BR0 = 0x02; U0BR1 = 0x00; U0MCTL = 0; ME1 |= USPIE0; U0CTL = CHAR+SYNC+MM; } char spiReadWriteByte(char b){ char a; U0TXBUF = b; waitSPI_RXTX(); a = U0RXBUF; return a; } Chris Liechti wrote: Delbert Martin IV wrote: When I Send a byte with USART1 o

[Mspgcc-users] USART in SPI Mode Double Send Problem

2005-10-03 Thread Delbert Martin IV
When I Send a byte with USART1 on an MSP430F149 It double Sends the byte, which causes CHAOS to anything I am working with. I'm probably not doing something right, anyone know what might cause this phenomenon. It sends the second byte about 1 uS after the first, which is faster than my program

Re: [Mspgcc-users] Function Parameter Issues

2005-03-10 Thread Delbert Martin IV
== 3) { /* Z */ adcval = ADC12MEM2; u0WriteInt(adcval); } else { /* Unknown Channel */ } adc_inactive(); } Arnd-Hendrik Mathias wrote: Hi Del, sounds somewhat funny, could you post the complete source file(s)? Arnd-Hendrik Delbert Martin IV wrote: I think I know what happend but I don't k

Re: [Mspgcc-users] Function Parameter Issues

2005-03-04 Thread Delbert Martin IV
e the integer then the char * and it worked! why? --Del Delbert Martin IV wrote: msp430-gcc (GCC) 3.3.4 Running under Linux. I have a problem with the Parameter passing. I set up a function. u0Write(char *buf, int len) { ... } I then set up some data to pass char *addr = &ADC12

[Mspgcc-users] Function Parameter Issues

2005-03-03 Thread Delbert Martin IV
msp430-gcc (GCC) 3.3.4 Running under Linux. I have a problem with the Parameter passing. I set up a function. u0Write(char *buf, int len) { ... } I then set up some data to pass char *addr = &ADC12MEM0; int buflength = 2; then I call the function u0Write(addr,bufferlength); I tell the debugge

[Mspgcc-users] Pushing Integer values out the Uart

2005-02-25 Thread Delbert Martin IV
I was wondering if anyone could clue me into getting multiple byte values out the uart Ive tried a couple of different things: int i = 0x4508 char *a= &i; U0TXBUF = a[0]; U0TXBUF = a[1]; and int i= 0x4508 ByteL = (char)i; ByteH = (char) (i >>8); I imagine that there is a better way to do th