Problems with 12F675


Results 1 to 40 of 67

Threaded View

  1. #34
    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 20:59.

Similar Threads

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