7e1 = 24660
7e1 = 24660
Dave
Always wear safety glasses while programming.
If I comment out the SERIN2 command, it loops through "comm" repeatedly. I get "0ok" out of it in Hyperterminal, so it looks like the serial out is working fine. Do you think the internal oscillator is accurate enough for the 2400 baud serial out, but not up to snuff for the 9600 baud serial in? Maybe I should add a crystal to my proto board and see if it helps.
Use DEBUG/DEBUGIN, see if it works better.
I'm not a fan of the internal OSC for serial comm... yes some use it and have no problem with.. i know.... i know...
Use 8MHz internal, then test it with 4MHz internal... maybe, maybe maybe. Last resort, fine tune the internal OSC with OSCTUNE register![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Well, finally I've got this thing working. I got suspicious of Microchip's prototype board and just breadboarded the whole thing, and it worked perfectly.
I think I will go with an external ceramic oscillator for the final circuit, for the sake of reliability. If I hook up a 20mhz oscillator, all I need to do is set @ device EXTRC_OSC_NOCLKOUT, define OSC 20, and get rid of the OSCCON completely, right?
_HS_OSC
For the config with 20 mhz external.
Yes
DEFINE OSC 20
Dave
Always wear safety glasses while programming.
Thanks, I appreciate the help.
Bookmarks