Did you get the OSC set correctly ?
Post you config settings.
Did you get the OSC set correctly ?
Post you config settings.
Dave
Always wear safety glasses while programming.
Hi Mike,
Welcome to the forum.
I was reading through this thread and it looked like something Savnik pointed out might not be too clear. (But very correct.)
Porta.6 and a.7 are reserved for an external oscillator, so they can't be used as regular pins unless you put a config line in PicBasic Pro to explicitly enable them as pins. That's probably why the other LEDs work, but those don't.
Since I don't know anything about Swordfish, I can't compare how it does this. For me, once I started understanding the setting of fuses, things started getting smoother.
Hang in there. I find PicBasic Pro to be very powerful. So far, whenever something doesn't go as planned, it is just a little thing I haven't learned yet.
OK, I got the OSC set with OSCCON =$60 so its not running at 37khz anymore, which makes sense that the pause statements were way too fast for the result I was getting; pause 5 is way too small for what I was used to in basic, now pause 500 is more like it.
As for setting the fuses, I think I will need help figuring out how to do that.
Mike2545
First off read the thread I linked to above. Then let's just change the configs in the Inc file. If you were going to change things often then doing it in code is handy.
Go to the PBP directory and find the Inc file with your chips name. There you will see the config settings. You may want to male a backup of the file.
Then go to the MPASM directory in program files and find the coorosponding Inc there. The microchip Inc near the end has all of the possible settings.
Change the PBP Inc to the way you want it.
I am on my phone at the moment so I can not show the exact change.
Dave
Always wear safety glasses while programming.
Yep, that did it!!
I just needed to find the .Inc files...On my C: drive (That bit of info might have been helpful)
Anyway, I am glad to have solved this, first of many, I'm sure, issue.
Thanks for your help.
Mike2545
I thought that info was in the other thread?
Oh well , glad you got it going.
Read you later. Have fun!
Dave
Always wear safety glasses while programming.
Bookmarks