************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
still no luck unfortunately
when i turned it on after it being off over night, it took 3 mins to start running.
once it was running it seems to work fine, and turning it off and back on results in a quick start up.
the time it takes to start seems to be proportional to the time that it's been off.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
A few pointers:
- Can you make a simple program to just blink an output - nothing more?
- Can you make this simple program run with; (1) internal 8MHz osc and x4 PLL [32MHz], (2) external 10MHz osc and x4 PLL [40MHz]?
- Your ground return lines on the PCB look questionable. Looks like you could've used a ground plane, but you chose to run lines back to the connectors. The crystal capacitors are expected to have good ground connections and the PCB does not appear to accomplish this.
- Simple code and possibly a schematic would go a long way to help troubleshoot this. Best guess at the moment is that the PCB is not close to ideal.
To be honest I'm finding it hard to work that PCB out - I guess the copper is the top layer as it's surface mount ? - without the component overlay we could make assumptions that the two large components are capacitors and the component that sits over the top of what looks like capacitors could be a regulator..... just guessing
To the OP - you stated the circuit worked fine when breadboarded - try re-building it on vero strip board using descrete components (possibly the ones used on the breadboard) and see if that works. If it does then it would suggest that the problem is with either the PCB design or the SM components.
I have tried 2 difference sources. Firstly a computer power supply's 5v rail, and ive also tried the 5v source on the pickit2. No regulator.
The blue is bottom layer - all surface mount components are on the bottom layer. The through-hole components are on the top layer. Even though it looks like components are on top of each other, they are actually on opposite sides of the board.
I realise that the PCB isn't self explanatory, sorry.
I will try the things you suggested and post back.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Bookmarks