mmm... what about if ...
Code:define OSC 12 RCSTA1=$90 TXSTA1=$20 SPBRG1= 77 ' 2400 Bauds DEFINE HSER_CLROERR 1 START: hSEROUT ["HELLO, THIS IS A TEST",13,10] PAUSE 100 GOTO START
mmm... what about if ...
Code:define OSC 12 RCSTA1=$90 TXSTA1=$20 SPBRG1= 77 ' 2400 Bauds DEFINE HSER_CLROERR 1 START: hSEROUT ["HELLO, THIS IS A TEST",13,10] PAUSE 100 GOTO START
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Steve, I get this out, and I have my Serial Communicator set up the same as the prevous posters
à€pÇàŽøàŽàøààŽpÇàŽüàŽàpÇàŽøàŽàøà àŽüüøàŽàøàŽàpÇàŽpÇàŽààŽüàŽàpÇàŽøàŽ àøààŽpÇàŽüàŽàpÇàŽpÇàŽøàŽàøààŽüü øàŽàøàŽàpÇàŽpÇàŽààŽüàŽàpÇàŽøàŽàøà àŽpÇàŽüàŽàpÇàŽpÇàŽøàŽàøààŽüàŽàpÇàŽøàŽ àøààŽpÇàŽààŽüàŽàpÇàŽøàŽàøààŽpÇ àŽüàŽàpÇàŽpÇàŽààŽ
Is your powersupply oscillating?
Did you mount a capacitor over the supply points of the chips?
Yep, all chips have a 104 Cap near-by. Hold fire a while on this problem chaps. I tried programming an EPROM version of the processor instead of using my beloved ICEPIC2, and I am getting nothing happening, unfortunetly I have to go out now, but will continue tomorrow.
Appologies are due, especially to Steve and Matt. I made the fundamental mistake of believing what I was being told, a colleague said he had given me a known working board. The problem was the Loading Caps on the Oscillator crystal were of the wrong value (too high a value) which were not enough to completely cripple my ICEPIC2 but were enough to affect the speed.
I am now getting comms. and I did that thing of jumping up and down when the word "hello" appeared in Serial Communicator.
Thanks to everybody who helped and sorry if I wasted your time.
Just as a side issue, I plugged my ICEPIC2 back in, and I got garbage out again, on checking I find that ICEPIC2 uses its own clock of 4Mhz, (in my defence I got this secondhand so I do not have the manual) 4Mhz is the frequency I normally use on my PIC projects, so it has not been an issue before. Anyway just changed the crystal to 4Mhz, changed the settings in my code, run ICEPIC2 again and everything is working fine, so I am off and running, thanks to all.
may happen dude. Nice to know you find the problem and learned from it.
Have fun!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks