Capacitor on PIC output


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thank God -- I just figured it out and I had suspected all along it was because HIGH portX
    was being called more than once ? BUT, it never went low in the code so why would would that happen?

    The port output wasn't appearing as true DC and the cap was taking it to ground?

    Strange though because some channels would work fine.

    Anyway - problem solved.

    I did some code where once the input is trggered it called a subroutine that made the output HIGH just once.

    Still, I wish I knew exactly why

    start

    If porta.0 = 0 then
    high portd.0
    endif

    goto start

    ....acts wacko with the cap

    Is the high output in that case looking like a rapid pulsating DC or something?


    Funny thing is -- whenever I've gotten desperate enough to use this forum -- I always figure
    it out 15 minutes after I post. !!

    Anyone else like that?? LOL

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Michael View Post
    Funny thing is -- whenever I've gotten desperate enough to use this forum -- I always figure it out 15 minutes after I post. !!
    Anyone else like that?? LOL
    Only everyone!

  3. #3
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Michael View Post
    Funny thing is -- whenever I've gotten desperate enough to use this forum -- I always figure
    it out 15 minutes after I post. !!

    Anyone else like that?? LOL
    We are but the grease the gets the stuck wheels moving. And yes, but I don't have internet access where I code, so it's more like 1 day + 15 minutes.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Yeah JD123, that's part of this program -- I wait a few seconds and then make the pins inputs to see the charged cap.

    16C65's because it's what I have (as in hundreds).

    I guarantee though if anyone breadboards it and tries it you'll encounter the same thing.

  5. #5
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    Okay, Michael... I just didn't see that in your code.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Still would like to learn why I had that problem.

    Because actually when you run code over and over again that includes HIGH it's pulsing the output pin again and again based on the instruction clocks square wave?

    But when you call HIGH just once and leave the output pin alone, it's a steady DC that is stable.


    start

    If porta.0 = 0 then
    high portd.0
    endif

    do other stuff

    If porta.0 = 0 then
    high portd.0
    endif

    do other stuff

    If porta.0 = 0 then
    high portd.0
    endif

    goto start

    Not good when a capacitor is on the output?

Similar Threads

  1. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  2. Can a pic do several things at once?
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 10th May 2008, 00:09
  3. PIC 18f1220 EUSART Baud Rate Cache Problem
    By wklose99 in forum Off Topic
    Replies: 3
    Last Post: - 15th April 2008, 00:39
  4. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  5. PIC 2 PIC communication
    By Mario in forum Forum Requests
    Replies: 16
    Last Post: - 28th April 2006, 01:56

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