Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What's the different between GPIO port and SPI ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Visit site
Activity points
9,442
Guys,

What's the different between SPI and GPIO ?
If can send the same signal with it ?

Thanks
 

Hello there,

You can independently configure each GPIO pin (GPn) as either an input or an output using the GPIO direction registers. The GPIO direction register (DIR) specifies the direction of each GPIO signal. Logic 0 indicates the GPIO pin is configured as output, and logic 1 indicates input

GPIO capabilities may include:

1.GPIO pins can be configured to be input or output
2.GPIO pins can be enabled/disabled
3.input values are readable (typically high=1, low=0)
4.output values are writable/readable
5.input values can often be used as IRQs (typically for wakeup events)
6.the device can use DMA to move large quantities of data efficiently into or out of the device

The Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link de facto standard, named by Motorola, that operates in full duplex mode. Devices communicate in master/slave mode where the master device initiates the data frame. Multiple slave devices are allowed with individual slave select (chip select) lines. Sometimes SPI is called a four-wire serial bus, contrasting with three-, two-, and one-wire serial buses. SPI is often referred to as SSI (Synchronous Serial Interface).


Yes you can configure spi on GPIO .


Best regards,
 

Attachments

  • 381px-SPI_single_slave.svg.png
    381px-SPI_single_slave.svg.png
    5.4 KB · Views: 212

Thanks for the inspiration, it means if I have some SPI devices, I can use GPIO as the Chip select.
 

Hello there,

, it means if I have some SPI devices, I can use GPIO as the Chip select.

Yes you can. for master

SDO -> ouput
SDI -> input
SCK ->output
CS-> output.

Best regards,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top