Hi everyone
In a P16F18877 I've tried either the SPI CH1 or the SPI CH2 working as standalone with success.
Today I tried both SPI channels, with the same settings, working simultaneously. The SPI CH2 does not work. The SPI CH1 is working just fine.
I checked the SPI2 bus with the scope and there are not MOSI and SCLK signals. The MISO and CS signals are OK.
I came across the PIC datasheet and there is not any special precaution to put in operation both SPI channels.
Any idea?
Thanks for any help
Problem with SPI CH1 and SPI CH2 working simultaneously
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problem with SPI CH1 and SPI CH2 working simultaneously
Hello,
Please can you post your program or a simplified version of and I will investigate for you. I've recently come across a similar bug in v7 and want to see if it's caused by the same problem.
Please can you post your program or a simplified version of and I will investigate for you. I've recently come across a similar bug in v7 and want to see if it's caused by the same problem.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- fotios
- Posts: 458
- Joined: Mon Feb 08, 2010 10:17 am
- Location: Greece
- Has thanked: 109 times
- Been thanked: 117 times
- Contact:
Re: Problem with SPI CH1 and SPI CH2 working simultaneously
Hi Ben
There is no problem.
I had two separate FC for the two SPI slaves which I combined in a new FC.
During copy-paste from the two old FC, both slaves were assigned to "cal_spi1" in the new FC.
I changed the second slave to "cal_spi2" and now the new FC is working flawlessly.
Sorry for the confusion, it was my mistake.
Thanks
There is no problem.
I had two separate FC for the two SPI slaves which I combined in a new FC.
During copy-paste from the two old FC, both slaves were assigned to "cal_spi1" in the new FC.
I changed the second slave to "cal_spi2" and now the new FC is working flawlessly.
Sorry for the confusion, it was my mistake.
Thanks
Best Regards FOTIS ANAGNOSTOU