I would also try changing LED1 variable assignment to:
Code:LED1 VAR LATB.0 ' Assign name "LED1" to LATB.0 on pin 33
I would also try changing LED1 variable assignment to:
Code:LED1 VAR LATB.0 ' Assign name "LED1" to LATB.0 on pin 33
Louie
Isn't 1K on the LED a bit high?
I usually have 330R.
Robert
1k with high brightness LEDs is plenty.
I think the problem is a missing register definition somewhere but I can't find it.
Cheers
BrianT
Hi Brian,
I would guess it's something in the default configs that is/are? at odds with your code, better to hand code the configs so you know what you have.
DEFINE OSC ??
Last edited by Archangel; - 30th October 2013 at 02:02.
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.
Bit 7 of OSCCON, should not be a zero?
Ioannis
bit 7 only matters if using sleep
add led1=0 near the beginning of your code
You should also define the osc to 08
Shawn
Try
OSCCON = %01111000
OSCTUNE = %01000000
DEFINE OSC 32
I use "INTIO2" but your setting should make no difference if you don't use osc pins as digital in/out.
Cheers
Al.
All progress began with an idea
Thanks for the tip. I tried LATB.0 and it makes no difference.
Bookmarks