hi, all...
does anyone have a user manual for "uartstdio.h" ?
i found this file at "StellarisWare\utils\" directory. but i didn't find its user manual.
thanks
See: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/474/t/113624.aspx
thanks for the response, Andy.
i thought i was the only one who couldn't find the user manual. haha..
i was wondering about how to 'UART_BUFFERED' feature in 'uartstdio.h' code.
because my LM3s608 microcontroller has to handle 20*8bit incoming UART data, while the RX FIFO is only 16*8bit.
have you ever dealt with the same problem?
thanks.
Iman Prayudi handle 20*8bit incoming UART data, while the RX FIFO is only 16*8bit. have you ever dealt with the same problem?
Yes - I've done that on microcontrollers with no FIFO at all!
The secret is to use interrupts and a so-called Ring-Buffer (aka Circular Buffer) - which is precisely what the 'UART_BUFFERED' feature in 'uartstdio.h' gives you.
As I said, see one of the DevKit manuals for details - or just look at the code!
dear Andy,
i've tried to follow your advice.
i found 'UART Standard IO Module' manual in DK-LM3S828 Firmware Development Package User's Guide
then, i made my own code as follows:
--------------------------------------------------------------------------
int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |
SYSCTL_XTAL_8MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
UARTStdioInit(0);
UARTIntEnable(UART0_BASE, UART_INT_RT );
UARTIntRegister(UART0_BASE, UARTStdioIntHandler);
while (1)
}
void UARTStdioIntHandler (void)
char i;
i=UARTgetc();
UARTwrite(&i,1);
then, i tried to send 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' to my microcontroller.
but, what i got is only 'ABCDEFGHIJKLMNOP' which means i only got 16*8bit of data.
i still have no idea to use 'UART_BUFFERED' feature since i couldn't find an example about it.
please, if you have any example code about it, may i get one?
thanks a lot, Andy
IIRC, the Serial-to-Ethernet code uses the "Buffered" (interrupt-driven) mode...
Your interrupt handler is wrong.
Look again at the User Manual, and use the provided interrupt handler.