thanks, so high and low still work when the pin is a input, interesting.
Type: Posts; User: Bigandrewgold; Keyword(s):
thanks, so high and low still work when the pin is a input, interesting.
positive end is connected to the pin, negative end is grounded
@ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_OFF & _MCLRE_OFF & _BODEN_OFF & _LVP_OFF
Define OSC 4
LED4 VAR PortA.1...
So I am testing out pbp and am trying to get an led to fade on, stay on, then fade off. Here is my current code
STARTMAIN:
if button=0 then
For Duty=0 to 255 Step 1
PWM...
Got it working, I added some code from that thread and disabled boden and pwrte, I dont know what exactly did it but it works. And incase you were wondering, it is powered by a 3v source and I do...
the config settings look the same.
it compiles and programs perfectly, but nothing happens on the circuit.
the led works, and I have been told by 2 friends of mine familiar with what I am doing that I dont need a resistor because of my setup.
But even after reading that stuff I can still not get this...
If i remember right it is connected to the positive end, then the negative end is grounded, and there is no resistor. But I know that the configuration is correct
what is a config value?
2.5 if I remember right
mpasm
well I didnt, but even with that code at the top it does not work
So I am trying to write a hello world program of sorts for a 16f628a chip. I have a led hooked up to portb 3. Here is the code that is not working
Main:
High PortB.3
pause 100
Low PortB.3...