Have you tried Oscillator setting on "HS"?
Have you tried Oscillator setting on "HS"?
Dave
Always wear safety glasses while programming.
Attach the compiled .HEX file that you are programming into the PIC here. If there's a
problem with your config settings, that makes it easy for someone to spot.
Bruce
Attached the zipped hex file.
Thank you very much for your time!
Hi Koossa,
The good news is - config settings look fine. XT osc, WDT on, PWRT on, brownout on,
LVP off, protection off. Looking good here if you're using a 4MHz external crystal.
The bad news is - this code isn't anywhere near what you show above just trying to
toggle an LED.
It sets up the USART for 19,200bps at 4MHz, shoots out a single letter f, then sits & spins
waiting for serial data input, in a loop watching the RCIF flag bit.
Are you 100% sure you're actually programming the file you expect into your 877?
The .HEX file you have attached is for sure not the one you show above trying to toggle
an LED....;o}
Hello Koossa,
try adding this to your code:
CCP1CON = 0 ' DISABLE CAPTURE COMPARE MODULE
TRISC = %00000000 ' SET ALL PORT C TO OUTPUTS
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks