Problems with 12F675


Closed Thread
Results 1 to 40 of 67

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    I put one capacitor of 1uF to output of 78L05 and I replace the two diodes from relays with 1N4148, and ...YES !!!!!! Now the consumption is 2.5 mA and BOTH buttons work VERRY WELL !!!!! What a simple solution !!!! I can't explain why now work, but I'm HAPPY ! THANK YOU ALL SO MUCH !
    ...now I have in mind another thing : at the first start of this module, reading the current of overrload and memorized him in eeprom, for using as reference for further decoupling of relays. I read about this first 'calibration' in "12F675 Voltage monitor" by Frank Miller. Now I don't know how reading the highest level of voltage assuming the variation of tension is something like this ...
    PS : Hope not making mistake if I bring here this new subject...
    PS2 : A new observation : It's enough to put 1 uF capacitor; don't need to replace the two diodes on relays ! I try this on the other module.
    Attached Images Attached Images  
    Last edited by fratello; - 9th August 2009 at 12:49.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Fratello

    you should try the ICL 7663 as a regulator, instead of the 78L05 ...

    quiescent current is ... rather interesting !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Icl 7663

    That 10µA or less quiescent looks really nice.

    Is there something like that in a fixed voltage TO-92, so fratello can just stick one in his PC board?
    <br>
    DT

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by Darrel Taylor View Post
    That 10µA or less quiescent looks really nice.

    Is there something like that in a fixed voltage TO-92, so fratello can just stick one in his PC board?
    <br>
    Hi, Darrel

    LP 2950 ACZ 5.0 from National, i.e.???

    regards

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default It is not correct ; why ?

    I try to put another 'tips' in the code of this button.
    At start ( plus by auto's contact) the PIC read from eeprom the value of overrload (variable "calibra"). If this is zero or less than minimum value (setting by me at 270 mV) start subroutine "calibration:". The value of maximum tension reading here are memorized as new value for "calibra".
    One new start : the value of calibra is NOT zero or less than minimum value, so the module works as usual.
    It's correct the code ? I think it's something wrong with reading/writing "calibra" from eeprom ?!? How write correct value of "calibra" in eeprom ?
    Attached Files Attached Files

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    I made some experiments ; the window roll-up (or roll-down) in about 6 seconds. I'm thinking to something like this :
    ...............
    eeprom 0, [0, 0]
    ..............
    read 0, calibra.byte0
    read 1, calibra.byte1
    if calibra =0 then
    high rel1
    ....read U for maximum 7-8 seconds
    ....identify the highest value of U
    ....write this value in eeprom for further using as max.value in check:

    low rel1
    endif
    ..............
    main:
    ....etc,etc.

    Help, please, with the red lines; starting with what ? I use "search" but perhaps not so good ; I can't find one "clue" ! Thanks for supporting me !

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    I read about MAX. It's this correct :
    '------------------------
    read 0, calibra.byte0
    read 1, calibra.byte1
    if calibra =0 then
    high rel1
    gosub calibration
    endif
    '------------------------
    calibration:
    for cnt=0 to 80
    adcin 3, v_cal
    v_cal=v_cal * 5000
    v_cal=div32 1023
    vmax=vmax max v_cal
    pause 100
    next cnt ' reading v_cal for about 8 seconds ?
    endfor
    low rel1
    calibra=vmax
    calibra.highbyte = ADRESH
    calibra.lowbyte = ADRESL
    write 0, calibra.byte0
    write 1, calibra.byte1
    Return
    '---------------------------
    Thanks for any advice !
    L.E.: The problem is : writing vmax ( example: 275) to eeprom, and then reading.
    Last edited by fratello; - 10th August 2009 at 21:59.

Similar Threads

  1. 12F683 vs 12F675.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th July 2009, 05:58
  2. LANC code 12F675
    By MikeDD in forum General
    Replies: 4
    Last Post: - 9th May 2008, 06:44
  3. 12F675 cant serout to PC
    By ruijc in forum General
    Replies: 9
    Last Post: - 3rd December 2007, 01:11
  4. USART problems
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 47
    Last Post: - 6th March 2005, 22:45
  5. Serial LCD on 12F675
    By anj in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2004, 00:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts