12F675 and LM35 coding issue


Results 1 to 19 of 19

Threaded View

  1. #3
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Sorry, :-) you are right. Basically, its not doing anything currently. I have however checked the Data sheet and you are right, so I have changed the ADCON0 as follows: ADCON0 = %10001101, this should give me

    Bit - Setting
    0 - 1 = A/D Operating
    1 - A/D conversion Bit (I assume ADCIN would set this to 1 when running)
    2-3 - 11 = Channel 3 (AN3 / GPIO4)
    4-5 - Not Used
    6 - Vref, 0 = Vdd
    7 - 1= Right Justify

    However, even after this change and running it in the simulator (I don't have my breadboard etc here at work) it still does not even light up the <20 LED, :-(

    Kind Regards
    Rob
    Last edited by Bobbo_ZA; - 5th March 2010 at 11:08. Reason: Layout change

Similar Threads

  1. 12F675 cant serout to PC
    By ruijc in forum General
    Replies: 9
    Last Post: - 3rd December 2007, 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