I have set it to HS, but still nothing.
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.
I think this code was compiled using the MicroCode Studio Plus ICD Compile. It won't run in the PIC unless there is an ICD connection to the PC.
If you intended to run the code without the ICD, find the "normal" compile/program buttons in MicroCode Studio Plus. Don't use ICD Compile or ICD Compile And Program unless you have the ICD connection hooked up.
Thank you Charles_Leo, you are correct, it's been a while since I last use this software so I was a bit rusty.I think this code was compiled using the MicroCode Studio Plus ICD Compile
Joe S., I have added your code and everything is working now
Thank you very much!!!CCP1CON = 0 ' DISABLE CAPTURE COMPARE MODULE
TRISC = %00000000 ' SET ALL PORT C TO OUTPUTS
Bookmarks