Problem with INTB0 and HPWM


Closed Thread
Results 1 to 4 of 4
  1. #1
    TurboLS's Avatar
    TurboLS Guest

    Default Problem with INTB0 and HPWM

    I have the HPWM working at 3.6kHz and I want to use that signal to set the interrupt flag on the rising edge. The signal coming out of the HPWM is fine when I do not have it wired to PORTB.0. Are my registers set correctly to make PORTB.0 an input and the others an output??

    TRISB = %00000001 ' Set PORTB to all output, except for bit 0

    That's the only thing I can think of that would be messing up the signal when I connect the two pins (CCP1, pin 17 and INTB0, pin 40). Any suggestions?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    That's the only thing I can think of that would be messing up the signal when I connect the two pins (CCP1, pin 17 and INTB0, pin 40). Any suggestions?
    RB0/INT0 is PIN 33.... PIN40 is RB7 wich you set as output, this short your signal to ground.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    TurboLS's Avatar
    TurboLS Guest


    Did you find this post helpful? Yes | No

    Default

    wow, i don't know what to say. I feel like an idiot... b/c in a way, i am an idiot for doing something like that. I could have sworn I got the diagram right but I guess not. If that was my problem the whole time, then let me switch it (to pin 33) and see if it works.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Talking

    those things happens. With eyes open it can help to read datasheet LOL!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

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