12F683 - basic code not working


Closed Thread
Results 1 to 40 of 57

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: 12F683 - basic code not working

    The output drive is current limited to 25mA meaning an internal resistance of about 200 Ohms at 5V. That's why you see the 2.84V at the pin and nothing close to 5V.
    Name:  Port output.JPG
Views: 587
Size:  14.3 KB


    Also, I would think you only need about a 2K Ohm resistor to drive the NPN that has a min. gain of 40 to drive the 80mA relay load.
    Louie

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: 12F683 - basic code not working

    LOL - I originally had a 1K base resistor in there and though that was limiting the current / voltage !

    The data sheet on the relay does indeed state a current draw of 80ma at 5v - I'll replace the base resistors with 1.5K, being midway between the 1K recommendation and 2K calculated, then follow Henrik's test and I'll report back

Similar Threads

  1. 12F683 - Pin1 not working
    By ruijc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th February 2014, 18:38
  2. 12F683 Maths and code genius reqd.
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st January 2014, 09:44
  3. please help with 12f683 pwm code
    By haidar in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd May 2013, 22:25
  4. Problem converting 12F683 code to 12F1840
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 14th March 2013, 02:55
  5. Working code but my layman approach uses too much code space
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th December 2012, 21:44

Members who have read this thread : 2

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