Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Bigandrewgold; Keyword(s):

Search: Search took 0.00 seconds.

  1. Re: Why is this code not working(pwm on a 16f628a)

    thanks, so high and low still work when the pin is a input, interesting.
  2. Re: Why is this code not working(pwm on a 16f628a)

    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...
  3. Why is this code not working(pwm on a 16f628a)

    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...
  4. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    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...
  5. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    the config settings look the same.

    it compiles and programs perfectly, but nothing happens on the circuit.
  6. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    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...
  7. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    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
  8. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    what is a config value?
    2.5 if I remember right
    mpasm
  9. Replies
    13
    Views
    8,837

    Re: pic16f628a issue

    well I didnt, but even with that code at the top it does not work
  10. Replies
    13
    Views
    8,837

    pic16f628a issue

    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...
Results 1 to 10 of 10