Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    5,442

    Re: 12F683 PWM output not remembering.

    Mixed results on that help. it doesn't remember every time I cycle power - 1 out 10 times it fails to remember
  2. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    My ADCON0 register looks like this 10010011. Now I have to figure out why it worked.

    starting from left

    1 = Right justified, needed for 10 bit
    0 = reference is VDD
    0010 = using AN2
    1 = not...
  3. Replies
    6
    Views
    5,442

    Re: 12F683 PWM output not remembering.

    I will try -thankyou...
  4. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    Your answer is appreciated, you took awhile to answer and you're right - read. Most people would just reply with - hey idiot - read the docs for petes sake.
    I've read the docs about 25 times, but...
  5. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    I'm using Analog port 2 on 16F616 - 4Mhz.. VDD as reference. Any help would be great. I didn't have to set the ADCON registers for 8 bit. Why is 10 bit different? Was I lucky?
  6. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    I dont know what I'm doing.. I dont know what to set ADCON1 to.
  7. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    Its working - but crazy numbers now - 32k instead of 1024 uggg...
  8. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    I've been reading other posts - so I tried this to see if light would turn green - fail


    DEFINE ADC_BITS 10
    DEFINE ADC_CLOCK 3
    DEFINE ADC_SAMPLEUS 50

    ADCON1=%10000010

    OUTPUT PORTA.1 ...
  9. Replies
    10
    Views
    9,419

    Re: ADC resolution for 16F616

    Note: - I'm not doing anything as far as CCP1CON, CM1CON0,CM2CON0, CM2CON1, ADCON1.

    Yes I'm new...
  10. Replies
    10
    Views
    9,419

    ADC resolution for 16F616

    I'm using a 16F616 analog input with a ADCIN routine. My resolution is 5V / 256 = about .19 mv. I'm using a voltage divider for the input with .1% tolerance resistors. Is there a better way to...
  11. Replies
    6
    Views
    5,442

    12F683 PWM output not remembering.

    I have a circuit using a 12F683. It uses a PWM output that controls LED brightness. When the user turns off the circuit and turns it back on - it needs to remain at the same brightness as when was...
  12. Replies
    7
    Views
    3,843

    Timer SubRoutine

    I'm using a 16f616 - but can be changed. I need to do 2 things at same time. I need a timer that has 2 stages - 1 minute on, 5 minutes off (controlling a relay). At the same time I need to monitor an...
  13. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    update - you were right - I had to remove the cap (base to ground on npn) altogether for the PWM to even work. I was using a .1uf - seems it was filtering off the signal. I didn't look too much into...
  14. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    Schematic...
  15. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    Moral of the story is - things sometimes appear more complicated than they really are. Simply 2 or 3 lines of code solved this problem when to me for awhile it seemed like I had to address memory...
  16. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    pic of board - 2 layer board with a 5v reg connected to a 12f683 - fet driving output pin with ground activating the changing of PWM duty cycle. I'm doing a bit of conditioning of the pwm out of pin...
  17. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    thanks Dwight - do the commands above the main only happen once? - I thought once it hits main and we loop on main that it doesn't occur again - we read then the value only once.

    Obvious answer...
  18. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    1/2 my lab in basement - pick and place in foreground.. work area and test on right.
  19. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    Jerson - I notice you have code on top of main: - the read and if - is that meant to be in the main? It actually compiled - and I have no endif for the if Duty > 128 statement... I dont understand...
  20. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    I was in a rush this morning - I'm getting it.. I admit I panicked.. I do read - I work 80- hours a week - 40 hours at a real good job and 40 my own business... I try to save time sometimes...
  21. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    ok I'm a bit slow - I'm old... the 683 has an EEPROM - I'll read after my day job how to do it - thanks guys...

    any advice on the code I already have would be nice...
  22. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    thats the spirit.... thanks for the ps..
  23. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    I'm reading my brains out - dont kid yourself...I'm asking to save time...I'm scrambling - if you read my posts I'm offering cash for advice..
  24. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    What I think I'm reading is from all this is I need an extra chip (EEPROM) to store my variable if its changing all the time. It will change, the user can press the dim button at will - and it needs...
  25. Replies
    33
    Views
    12,738

    Re: PWM and MEMORY

    cmon guys - help me out here... can a 12f683 do the job?
Results 1 to 25 of 36
Page 1 of 2 1 2