Yes, I posted the default. I tried lots of combinations but was trying to get this chip to run at 64 MHZ, when the max is 32.
kenif Today, 18:11You guys are right as usual. It had define OSC 64 for historical reasons.
Here's the story: This is the guts for a lung ventilator.
I designed all the boards, and do firmware everywhere else, but...
What jumps out for me is you say you are using a 16 MHz external oscillator, yet in your CONFIG statement you list:
_FEXTOSC_OFF & _RSTOSC_HFINT32
Your CONFIG should have _FEXTOSC_EHC &...
If you want to be a cowboy for some reason you could have used GOTO instead of GOSUB.
Then you could GOTO back as well (instead of RETURN).
The difference between GOTO and GOSUB is that GOSUB...
is not a config error , the problem lies in the code not posted , somewhere an
invalid OSC define exists
Can't find anything on forum.
The default config doesn't work, nor any of my attempts to fix it.
Latest IDE, latest PBP Gold 3.1. Current Microchip everything.
This board worked fine with a...
What everyone else says, plus:
Declare a ground star point and make all grounds radiate from that point - no daisy chains.
You should be able to trace ground noise origin with a scope....
I just found my problem. It was these two lines
SYMBOL RTOUT = GPIO.4
SYMBOL PEIZO = GPIO.5
I had changed my board on the last run and forgot to change the pin numbers in the code. The...
Re: GOTO vs RETURN after a GOSUB
Also, using GOSUB reduces code size as this Sub can be called from various points of the program to do the same job, maybe with some parameters passing to it.
Ioannis Today, 20:24Keeps things structured.
Ioannis