My project is starting


Closed Thread
Results 1 to 40 of 92

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cncmachineguy View Post
    Now its time to step up the function here. I want to move the port passing to the int. But I am having a brain fart about the timming. The pulses last for 10uS high and 10uS low. I am thinking a 5uS interupt will ensure I NEVER miss a pulse, but my mind is cloudy on this. My int will be ASM, so no PBP context saving for entry and exit. I want to do this so I can do more stuff and never worry about missing a step.
    You could do an interrupt on change of state for portA,

    RAC_INT -- RA Port Change

    Then have your interrupt routine look to see which bit has changed state.
    </pre>
    http://www.scalerobotics.com

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Don't I need to do that on a port with IOC? Port B seems to be my IOC port, but since B has ICSP pins, I left them dedicated to ICSP. I need all 8 pins for my control.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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