0
votes
0answers
69 views

SPI interfacing between FTDI and Lattice FPGA

I am trying to establish SPI interface between FTDI FT2232H and Lattice MachX02-1200ZE. The following code for this purpose compiles successfully and the last SPI_ReadHiSpeedDevice() function returns ...
1
vote
1answer
42 views

Difference between SMPEND and SMPMID

I'm interfacing an SPI chip with a PIC18 device, programmed with a C program compiled with the XC8 compiler, using libraries from plib.h. In the docs, I read: ...
5
votes
1answer
163 views

Serial Communication over 1 Pin?

Okay guys, I'm in a bit of a pickle here. I have the following circuit: As you can see, pin 3 is my only output. I've actually already had this board printed, so there's not much room for ...
4
votes
1answer
95 views

Which SPI mode to use?

I'm interfacing a 23LC1024 SPI Serial SRAM with a PIC18, using the C18 compiler and the built-in functions from <spi.h> as described in the Compiler ...
-2
votes
1answer
65 views

spidev_test.c analysis [closed]

I'm trying to connect a Raspberry Pi with a PIC32 through SPI. For RPi I'm using the spidev_test.c code (I'm modifying it to suit my needs) but... because I'm a novice in programming hardware, I'm ...
2
votes
1answer
169 views

ATMega168 SPI tranmission will not start

Scenario I have an ATMega168 using an external 10MHz crystal. The DIV/8 fuse bit is not set. The processor takes the outputs from 4 quadrature rotary encoders. Their rotation direction information is ...
2
votes
2answers
151 views

Software SPI implementation on SBC

I have a ts7800 SBC, and I need to communicate over an SPI bus. In their documentation they say that their is no hardware SPI, and they implement in their sample code "software SPI." For me, this ...
4
votes
3answers
335 views

What is wrong with this PIC pin change detection?

I have two PIC18F4620 connected via SPI + Slave Select + additional IRQ line. Both controllers are driven from the same crystal oscillator using the same clock settings. The master sends one byte and ...
3
votes
5answers
5k views

How to get a PIC32 SPI port working for transmitting data?

I am looking to get a SPI serial port running on a PIC32 (PIC32MX360F). can anyone point me to some good resources on how to do this so that a newbie can figure it out? I am using the PIC32 starter ...