I've tried with and without a resistor on the Rx and Tx Pin, there's no difference.
Does it make sense that the serial port seems to be sucking the life out of the circuit...?
I've tried with and without a resistor on the Rx and Tx Pin, there's no difference.
Does it make sense that the serial port seems to be sucking the life out of the circuit...?
No, but it makes sense that without the resistor, you probably smoked all of your ports.
But...back to the timing thing. The LED blinks, ok... Back to basics...
Do you have an LCD? Make a counter, one second, power up the PIC, start your stopwatch. Wait for 100 seconds. If your watch and the PIC/LCD match up after 100 seconds, you can be reasonably sure you're within 1-2% of the 4Mhz clock speed. The longer you go, the more accurately you can count it up.
I'm using the same COM port to program the PIC using JDM2 serial programmer and WinPic - there are no errors there, so the COM port should be fine!?
I just did a Pause command of 2mins, timing it showed up as 2mins 2secs. Is this too far out?
But all of your PICs might not be! Or at least none of the ports you've hooked up to. Maybe not just PortA.1, but all of PortA, heck for that matter, maybe the whole chip. I don't know why...just maybe...
Nah, I'd chalk that amount of error up to you not clicking quite right on time, maybe a couple ms here and there in the program, etc.etc., ya know, all those things adding up. I'd say your clock is good within say 1-3%, far close enough for 300 baud, and probably up to 2400 baud.I just did a Pause command of 2mins, timing it showed up as 2mins 2secs. Is this too far out?
Bookmarks