The issue is outside of the transmission code.I can't even imagine how this is possible, let alone what might cause it.
Or waiting for Microchip.I'm not understanding this.
The hardware works under a simple transmission - you have shown that before.
The hardware doesn't work when the transmission code is integrated with the rest of your code.
Doesn't that suggest that the issue is with your code not the hardware? More specifically the issue is with your code other than the spi transmission piece.
Swapping out more mcus at this point doesn't sound like the most efficient approach to me.
I understand what you are saying, and I agree that there is a "problem" with the code. But I have also demonstrated that the full complete code works on an old device and not a new one, so it is not "faulty" code as such but rather there has been some change in the device itself that has caused the code to stop working. Hence I was hoping that Microchip might be able to give me a clue as to what it might be...looks like that might have been a little over-optimistic!I'm not understanding this.
The hardware works under a simple transmission - you have shown that before.
The hardware doesn't work when the transmission code is integrated with the rest of your code.
Doesn't that suggest that the issue is with your code not the hardware? More specifically the issue is with your code other than the spi transmission piece.
Swapping out more mcus at this point doesn't sound like the most efficient approach to me.
This is odd however next question: are many other interrupt running or a main loop faster than SPI byte timing.Thank you for your effort Picbuster, but am not in the least bit surprised that you can't recreate the problem.
If I isolate my SPI code from the rest and run it alone, it works fine. There's something elsewhere in the code that is causing it to fail when used on the newer device.
Only one solution for now; lets go to the pub and get p.......That's a reasonable thought, and one that was brought up before.
It felt like a promising lead, so I tried putting INTCONbits.GIE = 0 at the beginning of my SPI code and INTCONbits.GIE = 1 at the end, which should disable interrupts for the duration of the transmission, but this didn't help.
Sounds like a plan!Only one solution for now; lets go to the pub and get p.......
If you do something undocumented (e.g. altering SSP configuration while it is enabled), it may work in one silicon revision, and not the other.If there were, I'd have thought it would cause problems no matter which revision of chip I was using wouldn't it?
I see. In most cases like this, it's faster to re-write itSuffice to say, I didn't write it.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
X | PIC18f8722 (given delay and clocked by oscillator) | Microcontrollers | 16 | |
P | Fun project with pic18f8722 | Microcontrollers | 2 | |
Z | analog comparator in pic18f8722 | Microcontrollers | 17 | |
A | About PIC18F8722 UART | Microcontrollers | 3 | |
B | [PIC18F8722]Light a LED? | Microcontrollers | 11 |