Trouble starting PIC or internal clock on 12f683?


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Status:
    I used a pair of 2222 xistors to invert the pulses twice so that they are the correct polarity.
    The pulses are now 5v and I am still getting fixed pw on all 4 outputs. I must have some bad karma or I ran out of mojo.
    Attached Images Attached Images  
    Last edited by PickyBiker; - 26th March 2010 at 14:41.

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mgauthier711 View Post
    Status:
    I used a pair of 2222 xistors to invert the pulses twice so that they are the correct polarity.
    The pulses are now 5v and I am still getting fixed pw on all 4 outputs. I must have some bad karma or I ran out of mojo.
    They are very pretty now!

    Maybe it's the PIC12F282, instead of using a 12f683?

    Quote Originally Posted by mgauthier711 View Post
    Chip is 12f682, tried two of them.
    Just kidding.....I wish it was that...

    Hmm.

    Can you try just connecting one of the receivers output's. I don't really know why it would not be detecting any pulses, unless it thought they were for some reason out of range. Also, did you try the hex file I attached in an earlier post? I am just curious if there is a difference from either Darrels include file v1.00 or maybe my use of 2.60, or maybe mpasm. And the hex file should rule those out.

    It might be interesting if the PIC's output pulses are all 2ms, or if they initially match the inputs, only do not change.

    For my earlier testing I used debug out to trouble shoot the code. It was a little butchered by the interrupts, but I could still make out bytes using a fast baud rate. I suppose I could have turned off the interrupts while it was doing that. At least that way, we could see what it thought the inputs were.

    Sorry to hear about your karma.

    Walter

  3. #3
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    I'll try that stuff tonight. Right now I am headed to an RC electric flight festival. It's the first ever Texas Eelectric Flight Festival. Later.

    Mike

  4. #4
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Nothing seems to work on this end. Tried your hex file and a single input. Nothing varies the output PW. Too strange for me. I am going to try a different approach. Use PicBasic code and dt-ints to see how far I can get that way. If I put a 20 Mhz resonator in there, that should more than compensate for the extra overhead of abandoning the assembly code.

    I'll keep in touch to let you know how it's going and will probably need a bunch of help along the way too.

    I really like working with the folks on this forum, always helpful.

    Best,

    Mike

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