Author |
Message |
Topic: SPI not working with SS |
SoBot
Replies: 3
Views: 5161
|
Forum: General CCS C Discussion Posted: Sat Sep 04, 2010 4:04 am Subject: SPI not working with SS |
Thanks ckielstra. I changed it now to setup_spi(SPI_MASTER | SPI_MODE_3 | spi_clk_div_64 ) in the master and still the same results. Everything works well, but as soon as I turn on the SS in the slave ... |
Topic: SPI not working with SS |
SoBot
Replies: 3
Views: 5161
|
Forum: General CCS C Discussion Posted: Fri Sep 03, 2010 7:39 am Subject: SPI not working with SS |
I have my two PIC18F2341's connected over SPI. I send only one byte and test it on the other side. If my slave is in SPI_SS_Disabled mode, then everything works fine. If the SS is enabled then the sla ... |
Topic: SPI write hangs |
SoBot
Replies: 4
Views: 6672
|
Forum: General CCS C Discussion Posted: Fri Sep 03, 2010 7:01 am Subject: SPI write hangs |
Yes it does, I also tested it with a scope. |
Topic: SPI write hangs |
SoBot
Replies: 4
Views: 6672
|
Forum: General CCS C Discussion Posted: Wed Sep 01, 2010 3:05 pm Subject: SPI write hangs |
Thanks Ttelmah. Let me give you some more info on my situation. My master is a SBC and only has half duplex SPI. So the master SPI_Read()command does not take any parameters. This is how I understand ... |
Topic: SPI write hangs |
SoBot
Replies: 4
Views: 6672
|
Forum: General CCS C Discussion Posted: Wed Sep 01, 2010 1:28 am Subject: SPI write hangs |
I have a SPI link between a computer and a PIC18f2431. The computer is the master and pic is slave. The master writes one byte to the slave then waits for 1 second and then calls a read_spi 3 times wi ... |
Topic: Measuring speed with QEI |
SoBot
Replies: 15
Views: 30166
|
Forum: General CCS C Discussion Posted: Thu Jul 29, 2010 4:43 am Subject: Measuring speed with QEI |
I'm trying to measure speed using the QEI. My encoder has 512 tics per rotation. QEI is setup for 4x mode, that means the encoder has effectively 512x4=2048 tics per rotation. One tic is 360/2048 = 0. ... |
Topic: Master/slave spi communication |
SoBot
Replies: 24
Views: 41941
|
Forum: General CCS C Discussion Posted: Fri Apr 23, 2010 6:40 am Subject: Master/slave spi communication |
I got the problem. When I looked at my connections to list them, I saw that I had wrongly wired it. My bad
Thanks |
Topic: Master/slave spi communication |
SoBot
Replies: 24
Views: 41941
|
Forum: General CCS C Discussion Posted: Thu Apr 22, 2010 4:42 am Subject: Master/slave spi communication |
I am communicating over SPI between two microcontrollers. Each one is on its own pcb and the spi port is connected with a ribbon cable (pcb grounds also connected). For some reason the data does not t ... |
Topic: Quadrature Encoder Interface |
SoBot
Replies: 3
Views: 8237
|
Forum: General CCS C Discussion Posted: Tue Apr 20, 2010 8:38 am Subject: Quadrature encoder module |
Do you know if these Quadrature Eencoder module functions has by any chance been implimented in the meantime? |
|