Serial instead of SPI

19 Jan 2010 . Edited: 19 Jan 2010

Hey Guys,

Just wondering if you can use just serial i.e. pin 7tx,8rx from the SPI part of the mbed board?

Cheers Jase

19 Jan 2010

If you want to use the mbed's Serial class, you can use only pin pairs marked as "Serial", i.e. 9/10, 13/14 and 27/28. If you're up to the task of implementing the UART interface yourself, you could in theory use any of the GPIO pins (5 to 30).

20 Jan 2010

 

Igor Skochinsky wrote:

If you want to use the mbed's Serial class, you can use only pin pairs marked as "Serial", i.e. 9/10, 13/14 and 27/28. If you're up to the task of implementing the UART interface yourself, you could in theory use any of the GPIO pins (5 to 30).

Apparently there are 4 UARTS rec/transceivers on the LPC chip already, 3 which are use for the serial lines. I was wondering if the fourth has been already been used or could be used.

 

20 Jan 2010

UART0 is used to talk to the interface chip, as can be see from this diagram.

20 Jan 2010

 

Igor Skochinsky wrote:

UART0 is used to talk to the interface chip, as can be see from this diagram.

I assume that im already using it, atm im using serial on these pins p13,p14/p30,p29/p9,p10

 

20 Jan 2010

I may have been unclear. UART0 corresponds to USBTX/USBRX "pins", which are connected to the interface chip. It's used for printf() and other standard i/o functions.

20 Jan 2010

 

Igor Skochinsky wrote:

I may have been unclear. UART0 corresponds to USBTX/USBRX "pins", which are connected to the interface chip. It's used for printf() and other standard i/o functions.

gotcha

 

20 Jan 2010

Would using the SPI interface in a multi-slave config be the best solution to scale a multiple serial/can bus solution. If one could write the driver?

SPI to Serial
http://www.datasheetcatalog.org/datasheet/maxim/MAX3110E-MAX3111E.pdf

 

SPI to CAN
http://ww1.microchip.com/downloads/en/DeviceDoc/21801d.pdf