pic24h SPI Problem

Started by demolitron in Piclist8 years ago 2 replies

Hello again, I think I've exhausted myself over this one. SPI is supposed to be REALLY simple, right? But, I can not get my SPI slave (PIC24)...

Hello again, I think I've exhausted myself over this one. SPI is supposed to be REALLY simple, right? But, I can not get my SPI slave (PIC24) to do even recognize that SPI is happening at all. Here is the rest of the story: My project has two MCU's in it. A dsPIC30F3012 that reads the sensors and performs all the fun DSP stuff. It is the SPI Master and spits out data for the PIC24HJ64GP5...


I2C vs SPI

Started by Paul in Piclist9 years ago 10 replies

Hi. Just been looking at I/O Expanders from Microchip, and you can get them in either I2C or SPI. The only differences i can see are SPI can go...

Hi. Just been looking at I/O Expanders from Microchip, and you can get them in either I2C or SPI. The only differences i can see are SPI can go faster, and I2C uses less pins. Is that about it? Thanks, Paul ------------------------------------


PPS and SPI

Started by Richard in Piclist7 years ago

Hi I familar with good old PIC18F and LPC1768. Now I have to use dsPIC for this project. I'm not familiar with PPS technology for dsPIC33...

Hi I familar with good old PIC18F and LPC1768. Now I have to use dsPIC for this project. I'm not familiar with PPS technology for dsPIC33 (DSPIC33FJ128), I have SPI to connect to the pins. I look into datasheet and difficult to establish what c code I need to setup the SPI bus (SDO, SDI, SCLK, CS). Can anyone provide a code example for C30 complier (MPLAB) so I can familiarise them. Mu...


Re: SPI vs I2C

Started by languer in Piclist14 years ago

****************************************************** I will like to add my $0.02, if I may. Besides all that has...

****************************************************** I will like to add my $0.02, if I may. Besides all that has already been posted I state my 'generalzation'. IMHO, SPI is simpler f


TMR2 output and the SPI block

Started by Dennis Clark in Piclist12 years ago 1 reply

I'm running a 18F6680 at 40MHz which means that the SPI clock's slowest setting would be 625KHz, which requires a pretty fast set of opto...

I'm running a 18F6680 at 40MHz which means that the SPI clock's slowest setting would be 625KHz, which requires a pretty fast set of opto isolators in my case. I'd like to run it a bit slower. TMR2's output can be used as the SPI clock, but I'm curious as to the details. Does the PR2 register control this register output? The document isn't that clear - IOW, if I have a 40MHz/4


SPI information

Started by p_c_vincent in Piclist12 years ago

Hi anyone have information about the SPI port on digital calipers/micrometers pin out, commands, protocalls,a genral description, has...

Hi anyone have information about the SPI port on digital calipers/micrometers pin out, commands, protocalls,a genral description, has anyone interfaced to one of these devices before ? all will be usefull Thanks Pete


synchronous (SPI) examples?

Started by greerde in Piclist14 years ago

Does anyone have any examples using the PICs SPI? Specifically I am using a 16f877 and will be using an external clock (so i'll be...

Does anyone have any examples using the PICs SPI? Specifically I am using a 16f877 and will be using an external clock (so i'll be in slave mode), but any examples (in asm or picbasic) would be good. I have no problem outputing sync. data, but I am having all kinds of prob


Help with ' spi.inc ' very urgent.!!

Started by yenhan1981 in Piclist14 years ago 4 replies

Hi , I am currnetly working with PIC12C672 to construct a simple CAN (Controller Area Network) node and I am beginner of...

Hi , I am currnetly working with PIC12C672 to construct a simple CAN (Controller Area Network) node and I am beginner of using the PIC controller. At the moment I am having difficulty with finding the right header file of 'spi.inc' to work with PIC12C672. I am


Re: SPI or I2C...

Started by Paul James E. in Piclist14 years ago 13 replies

All, FWIW, I agree with Igor here. We have a system that we designed in house for use in house, and we needed several...

All, FWIW, I agree with Igor here. We have a system that we designed in house for use in house, and we needed several peripheral chips we wanted to use. One of the chips was perfect for our application and use an SPI interface. We inteplemented this chip in our system.


I2C and SPI on same PIC

Started by Rodrigo in Piclist9 years ago 7 replies

Hi... I have 2 sensor which I need to read with a 18F452 PIC, but one is I2C and the other is SPI. Taking a look at datasheet I saw that the...

Hi... I have 2 sensor which I need to read with a 18F452 PIC, but one is I2C and the other is SPI. Taking a look at datasheet I saw that the pins used for both protocols are the same pins. Is there anything I could do to read them both? Thanks in advance... Rodrigo Basniak ------------------------------------


assembler SPI on 16F628 to MAX7219

Started by Glen in Piclist15 years ago

I'm trying to write SPI Master code to send from a 16F628 to a MAX7219. Anybody got any example code? I've written what I think ...

I'm trying to write SPI Master code to send from a 16F628 to a MAX7219. Anybody got any example code? I've written what I think should work, but no luck so far. I have a logic probe and can see the MOSI, CLK and SS lines toggling away, but the 7219 doesn't react. A scope wo


SPI interface ADC 16 bits

Started by wantoniet in Piclist12 years ago 3 replies

Hi all, Anyone have experienced interface a PIC with a 16-bit/SPI 7708 ADC? As i know MSSP on PIC is only 8 bit-lenght. May i perform...

Hi all, Anyone have experienced interface a PIC with a 16-bit/SPI 7708 ADC? As i know MSSP on PIC is only 8 bit-lenght. May i perform standard procedure protocol to adquire 16-bit? Any comments are welcome! Wilson


Could help in spi interface of PIC18f452 with accelerometer

Started by vadnala_anil in Piclist9 years ago

Dear frens, I am using digital accelerometer with PIC18f452 to read data of acceleration through spi interface. Here I am getting problem...

Dear frens, I am using digital accelerometer with PIC18f452 to read data of acceleration through spi interface. Here I am getting problem in writing conversion command for three axis accelerations into digital output. I am new to embedded but I have written a C program by referring from datasheet of accelerometer. I am writing the code here so any one tell me where I went wrong an...


PIC16F877 - AD7730 SPI Connection Problem

Started by Triontech Technology in Piclist12 years ago 1 reply

Hi,   I wonder if any of you guys could help me out a bit. I am trying to hook the PIC16F877 to AD7730 (ADC loadcell controller for...

Hi,   I wonder if any of you guys could help me out a bit. I am trying to hook the PIC16F877 to AD7730 (ADC loadcell controller for Analog Dev) thru SPI.   I set the AD7730 to work in continuous conversion mode, monitoring the RDY line once data has been updated.   I am having problem getting the PIC to


Help

Started by monzer mostafa in Piclist10 years ago

I am facing the following situation: I want to connect the microcontroller (e.g.dsPIC6010 or dsIC40F13) via SPI to a flash memory chip (e.g....

I am facing the following situation: I want to connect the microcontroller (e.g.dsPIC6010 or dsIC40F13) via SPI to a flash memory chip (e.g. Atmel AT45DB642 or ST M25P80).I did my best but I could not access the flash memory. Would you please help me? Regards. Mounzer.


digital calliper interface

Started by p_c_vincent in Piclist13 years ago 1 reply

Hi anyone out there have any info/examples of interfacing the digital calipers i've been told its a standard SPI but cant find any ...

Hi anyone out there have any info/examples of interfacing the digital calipers i've been told its a standard SPI but cant find any connection data or command protocalls, i want to use a pic to read the caliper and echo the output to a large lcd Pete


PIC w/ spi, i2c & rs232

Started by Andrew Ritchie in Piclist15 years ago

Hi all Just wondering if anyone out there could help me with a little problem I have currently... Basically I want to...

Hi all Just wondering if anyone out there could help me with a little problem I have currently... Basically I want to create a prototype MP3 player using a PIC16F877. This bit is easy - there is heaps of info on the web about how to do this. Where the trouble l


MMC/SD

Started by upand_at_them in Piclist13 years ago 6 replies

I have a PIC working with an MMC as a datalogger, but when I use an SD card it doesn't work. They both use SPI so I don't know what ...

I have a PIC working with an MMC as a datalogger, but when I use an SD card it doesn't work. They both use SPI so I don't know what could be wrong. Has anyone used an SD card with a PIC? Mike


Register RCON

Started by wantoniet in Piclist12 years ago 2 replies

Hi Folks, I need help to understand what is going on... I?m using a PIC18F452 and suddenly it resets when it?s communicating via SPI. ...

Hi Folks, I need help to understand what is going on... I?m using a PIC18F452 and suddenly it resets when it?s communicating via SPI. In such to debug this weird problem, i monitored register RCON (register that provides the sources of reset). When i power up the board, the register contains 12D (1100 at LSB nibble), what means that power-


Pullup questions

Started by Vic Fraenckel in Piclist13 years ago 13 replies

I am designing my first PIC board. It will use a 16f876. I will use two PORTA pins and the USART pins RC6 and RC7 for serial comms....

I am designing my first PIC board. It will use a 16f876. I will use two PORTA pins and the USART pins RC6 and RC7 for serial comms. The board will be expanded later to use either I2C or SPI. The questions I have are: 1. Should ALL I/O pins be pulled up to +5V or should ONLY the un