Nothing changed? The waveforms are exactly the same as your prior photos?Good thinking, but sadly doesn't help.
Ok. Then I have no clue, save that the problem is definitely code, not hardware.Correct, no change at all. Even the second and subsequent bytes having their first bit and first clock pulse coincident is still present, although I don't see that using the "minimalist" code.
It looks like your test code sends 55h and AAh. What happens when you send the exact same data that you observe the fail with?I took some pictures of the scope screen, capturing each byte as it is transmitted.
Byte 1 (SSP1CON1=0x22, SSP1STAT=0x40, data=0x00) seems to me to be fine, with the data line (upper trace) asserted, then the clock (lower trace) shifting each bit out.
Byte 2 (SSP1CON1=0x22, SSP1STAT=0x40, data=0x20) on first look seems good too, but I now notice that the data line and first clock pulse are co-incident, which doesn't seem quite right.
Byte 3 (SSP1CON1=0x32, SSP1STAT=0x00, data=0x08) also has this data/clock co-incidence problem, along with the obvious 7-bit byte issue.
View attachment 96567 View attachment 96568 View attachment 96569
Ha! So much for work ethic. I've done my best work during the holidays when everyone else was absent.Thanks so much for your help so far, I thought I'd let you know that I'm off until the New Year now....
+1!Ha! So much for work ethic. I've done my best work during the holidays when everyone else was absent.
Merry Christmas.
Right, I'm back on this now. Hope everyone had a good Christmas and a happy New Year!
An interesting development: I have managed to acquire some "old" PCBs (manufactured originally, not from the new batch I've had done). I've programmed a couple with the test firmware and it runs perfectly...it doesn't perform the required overall function (this could be for any number of external reasons), but it does run without hanging.
MPLAB complains that the Device ID on the "old" devices is 000000 while that on the "new" ones is 000002. Could this be the reason that it doesn't run on the "new", but does on the "old"?
Sorry, what is an FAE?At this point a MIcrochip FAE might be helpful if you can get his attention.
FAE = Field Application EngineerSorry, what is an FAE?
just to get my picture complete : what type of board are you using?Curiouser and curiouser...
I've had a uC from one of my new boards swapped with one of the old ones...and guess what?
The new board that wouldn't run the firmware now does, and the old board that did run it now doesn't!
That suggests to me that either there is an issue on the new revision uC that the firmware doesn't account for, or the uCs on the new boards are all faulty.
Still no word from Microchip themselves on the issue that I raised.
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 |
by Duane Benson
by Jake Hertz
by Duane Benson
by Duane Benson