Problem with PULSEOUT


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The Servo pulses should be between 1.05 - 1.95 ms

    With an 8Mhz OSC, the resolution of PULSOUT is 5 us.

    0.00105/0.000005 = 210 - Minimum PULSOUT
    0.00150/0.000005 = 300 - Center or Stop
    0.00195/0.000005 = 390 - Maximum PULSOUT

    And, the overall frequency should be approx 50Hz.
    So the PAUSE 20 needs to be inside the Main loop.

    ADDED:
      They need to be Positive Pulses, so you should make sure the pins are LOW to start with.
      PORTC = 0 should do it, in your case.
    <br>
    Last edited by Darrel Taylor; - 21st October 2007 at 04:52. Reason: Polarity
    DT

Similar Threads

  1. Problem with ASM IRQ using FSR0 on PIC18F252
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th March 2008, 21:48
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 09:12
  3. PicBasic Pro Math Problem??
    By Glen65 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2006, 05:36
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 23:59
  5. PORTA.PinNo = 1 ' problem
    By frank small in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 15:30

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