I'm pretty sure a Found it. I had a floating input pin. This input puts the program into a different subroutine instead of sending data back. Since I pulled it up, it appears to be back to working good again.
Time will tell.
I'm pretty sure a Found it. I had a floating input pin. This input puts the program into a different subroutine instead of sending data back. Since I pulled it up, it appears to be back to working good again.
Time will tell.
Sure it could be the problem!
I'll suggest you to use interrupt for your serial comm. Once in the ISR, do your HSERIN stuff and get out of there. The timeout may work, or not. At least the Usart have a handy 2Bytes buffer...![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Mister-E, Thanks for the response.
Yes, it's been working flawless since then. My development board as pull ups and downs configurable by a jumper and somehow I changed it (removed the jumper) and caused all this greif.
Good!
wich development board? I guess it's MikroElektronika? If so they're really nice for the price and included hardware... the only problem.. the on-board programmer.. sometimes it fails, the RS-232.. there's no free DTR line for the bootloader... but an on-board reset, there's no easy way to change/disable the on-board crystal capacitors.
EasyPIC 4 KIT:
Pricing vs what you get 10/10
Documentation 9/10
Assembly 8/10
Electronic design 7/10
Overall 8/10.
Good stuff from the 10F to 18Fs, from 8 dip pins to 40Dip pins. By far, the best PIC development board on the market.
Last edited by mister_e; - 4th December 2006 at 23:01.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yep, EasyPic3. Overall I love it. It has a few flukes, but your right, it's one of the best values around. They most likely sell that board for cost in order to get the name / compiler out there for folks to try.Originally Posted by mister_e
Right now, I'm using a ZTT-20mhz with the built in caps, and the onboard caps are still there as well but so far it hasn't caused any issues.
While we're talking about it, I really like using the 3 pin ZTT's but I heard going with a crystal and seperate caps is much more reliable as far as wide temperature swings. I honestly figured the 1 package with the caps encapsulated would be better for less drift due to wide temp. swings.
Any experience here, which do you prefer?
You're right. If it's really timing critical i'll use crystal. unless, i'll use resonator. Resonator are good so far, so don't worry.
I heard that some resonator may have a shorter lifetime... i can't confirm, i never replaced any since i use them.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks