Hey,
I'm working on a project with my lm3s9b92 evaluation board and I'm trying to send data from the ADC to this wifi module:
http://elmicro.com/files/sollae/cswh80en_v19.pdf
I am sending 10 bit integer values via UART, and I can see them printed in the terminal window. Now I want to send the values to a wifi module, connect to the module on my laptop and read the values from the module.
I don't know what pins on my lm3s9b92 evaluation board I need to connect to an RS232 lead to connect to the wifi module.
Can anyone help??
Thanks so much in advance!
Euan.
Euan,
Do read the LM3S9B92 processor datasheet regarding UART
then cross-reference that to your LM3S9B92 Evaluation kit Users Manual
There are GPIO pads where you can interface rs232 e.g GPIO pads PA0 and PA1, whose
alternate function is UART0 of your processor chip
- Kel
Thanks for response!
Yes I see that.
So - to which rs232 pins: http://www.aggsoft.com/rs232-pinout-cable/images/9-pinout.gif
do I connect PA0 and PA1 on my eval board?
And what happens to the other pins in an rs232 cable?
Cheers,
From your device datasheet table under 1.5.2 Serial Interface, it says there that RXD, TXD, and GND are mandatory. These are the basic signal lines needed for RS232 unless you are going to implement hardware flow control.
Here below is a basic illustration on how to connect 2 device communicating through RS232
RX <----- TX
TX -----> RX
GND ----- GND
PA0/U0RX and PA1/U1RX of the LM3S9B92 evaluation kit still needs to be interfaced to an RS232 driver chip.
Do read topics in the internet regarding interfacing serial port (rs232) to a microcontroller.
Thanks!
Now trying to send a hex command - aa 80 00 03 a4 01 03 1f 00 00 00 00 00 00, to WiFi module.
Using UARTprintf doesn't seem to work. Not sure where to go from here.
Any ideas?
Euan Kellock80 00 03 a4 01 03 1f 00 00 00 00 00 00
That command contains many zero bytes.
Euan KellockUsing UARTprintf doesn't seem to work
printf() works with strings; in the 'C' programming language, a zero marks the end of a string...