Tagged Questions
1
vote
1answer
43 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 ...
2
votes
0answers
70 views
SPI Read returns only 0 in slave when I hook up SS to INT
I am coding a SPI slave using a PIC16F877A in CCS C and need to be aware when the SS line (pin 7) goes from high (idle) to low (active) as information from the master is framed as a stream of bytes ...
1
vote
0answers
92 views
Writing an emulator for a SPI like slave device (LED Driver PT6959) using a PIC
I am working with a legacy device that uses a "SPI like" protocol. This device acts like a:
SPI "master", but expects to talk with only one "slave" device. It
does not expect any output/data ...
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 ...
5
votes
2answers
224 views
SPI Clock on PIC unstable
I'm trying to configure the MSSP module of a PIC18F25K22 into SPI master mode. I'm looking at the timing and the clock doesn't remain steady through the whole transmission. A picture shows it better ...
-3
votes
1answer
65 views
Mobile phone or iPod as digital signal generator? [closed]
I have an idea to use the mobile phone audio output to use as a signal generator.
Because we could decode tones from sound, it should be possible to decode pluses from the sound too.
My question ...
1
vote
2answers
153 views
Connecting SDI and SDO to a single DATA pin
On the MMA7455 accelerometer, there is only one DATA pin which is used for both input and output. On the manual, it tells me to connect this pin to SDI and SDO. Now that's all fine, but on my chip, ...
0
votes
1answer
278 views
PIC, SPI problem with SD card and other devices
I'm using a PIC24H as a master connected with a microSD card, ENC28J60 and a MCP28S08 port expander. I'm using the FatFs library for a microSD card and the Microchip TCP/IP stack for ENC28J60.
All ...
1
vote
1answer
174 views
PIC uno32 SPI communication with sensor
So, i'm trying to communicate with a heat sensor using SPI with a chipkit pic uno32.
I connected Pin 10 (SS), Pin 11 (DIN), Pin 12 (DOUT), and Pin 13 (CLK) on the Uno32 board to the sensor
SS-Chip ...
0
votes
2answers
269 views
Digole serial LCD with PIC [closed]
Does anyone have experience using the Digole serial LCD adapter/converter with PIC? I plan to use it in SPI mode on an PIC18F46K20. I can only find Arduino code examples that refer to libraries such ...
0
votes
2answers
254 views
I2C Pulldown and Pullup…is it possible?
I am using a PIC18F2550 to control a H Bridge, and I am using several input signals, such as RS-232, I2C and Analog 0-5V to make the final PWM output for the H bridge.
I have a problem with PCB space, ...
0
votes
1answer
130 views
18f4550 comm clarification and advice
Please excuse my ignorance. I need your advise and clarification on something. I'm using the 18f4550 and I'm a little curious about the communication protocols. I am not using the USB features. It ...
0
votes
0answers
245 views
Using SPI2 on a PIC18F25J11 with MikroC
I'm using a PIC18F25J11 and wish to use the SPI2 peripheral because I also need I2C wich shares its pins with SPI1. So, I set SPI2 pins to remappable pins using RPINRxx and RPORx registers in order to ...
1
vote
0answers
399 views
PIC32 SPI ISR not being called when RXIF flag set?
I'm using a PIC32MX795F512L SPI3 module in slave mode. My master is sending data over the SPI line but my slave's interrupt service routine is never being called. The RX interrupt flag is being set ...
2
votes
3answers
410 views
What PIC microcontroller can interface with an ADXRS800 gyroscope with SPI output?
Straight to the point...
I planning to use an ADXRS800 gyroscope and its output is a 32bit SPI message, does this mean that it can only be interfaced with a 32bit PIC microcontroller, or could i use ...
0
votes
1answer
568 views
PIC32 + RTC via SPI doesn't work
I'm trying to read the time from an RTC with my PIC32 Microcontroller via SPI.
I've already succeeded in reading the time with an Arduino from the RTC.
PIC32: http://www.sparkfun.com/products/9713 ...
2
votes
2answers
668 views
Microcontroller with ADC and capable of SPI communication
I am designing a system where
Analog Signal ---> (ADC- Digital Data )---> UWB chip mostly WSR601 or AL6301/AL5100 Chipset
Note (1): UWB is an abbrieviation for Ultra Wide Band wireless ...
3
votes
4answers
1k views
Is SPI significantly faster than bit-banging?
I have a project based on a pic 18f4550. To write to a '595 shift register, is there a distinct advantage to using spi over regular io pins? I heard that spi is faster, but I am not sure how. Does it ...
4
votes
1answer
830 views
Problems reading data from a microSD card
I am trying to read a block of data from a standard capacity micro SD card, but the received data does not make any sense. Here is what I'm doing:
Initializing the card
Reading data
Setting CS low
...
2
votes
1answer
251 views
PIC24FJ64GB110 and 25AA160
I have a 25AA160 wired to a PIC24FJ64GB110 (100-pin):
SO - RD3 (pin78)
SI - RD2 (pin77)
SCK - RD1 (pin76)
SS is not used. CS\ is wired to GND and WP\, HOLD\ are wired to VDD.
I copy/paste code ...
3
votes
1answer
750 views
dsPIC33, SPI slave, and Timer1 interrupts. What happens?
I have an interesting problem with the dsPIC33FJ128GP802.
I have it configured as a slave SPI device connected to an Arduino acting as the master.
Timer1 is set up to trigger an interrupt at ...
3
votes
3answers
547 views
Is it possible for a SPI slave to talk to other slaves?
I'm developing a device that will have a flash chip and a RTC on the same SPI bus, selected using two different select lines. I also have a front panel for this device that needs to access these ...
4
votes
3answers
336 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 ...
2
votes
3answers
1k views
Timing between words in SPI
I'm trying to use a dsPIC33F to generate a data signal which must not be interrupted between words. It must be a continuous train of 240 bits. I am clocking the SPI using DMA with 16-bit words, but I ...
1
vote
3answers
1k views
4
votes
2answers
2k views
Is it possible to use 4-pin mode for an SD card with a microcontroller instead of SPI mode?
Is it possible to use the 4-pin mode of an SD card when designing an interface with a microcontroller, or must you always use SPI mode? I am particularly thinking of a microcontroller such as a PIC24. ...
2
votes
7answers
744 views
Communicating between PICs over 30 feet
I have a PIC24F based device that normally connects to a PC via USB. The device can be controlled through PC software this way. I want to add an optional hand control box that can also be plugged into ...
3
votes
2answers
489 views
PIC24H SPI Problems
I am trying to setup the SPI1 port on my PIC24HJ206GP256 micro. I have set the SPI1CON1 control register with 0x0020, the SPI1STAT control register with 0x8000 (I.E. turn on the SPIEN) and SPI1CON2 = ...
3
votes
3answers
421 views
Intermittent SPI bus
I'm attempting to interface a PIC18F4520 to a 25LC640 via SPI protocol. I'm using the built in MSSP hardware of the PIC. The PIC18F4520 is the only master on the bus. I'm reading 16 bytes of data from ...
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 ...