pulsout pulsin on same pin - timing?


Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Jan 2007
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    Henrik,

    Code:
    TRISB.0 = 0                 ' setup port b.0 as output initially
    ANSEL = 0                   ' disable all AD convertors
    ANSELH = 0                 ' Disable PortB AD

    Thanks for the reply. I fixed the problem. So simple - configuration fuses. On the Pic16f887 there are 12 A/D ports, spanning port A and port B. Apparently PortB.0 defaulted to analog in. It magically worked when I properly configured it! So much troubleshooting for one little fuse.

    Incidently, I tried the pauseUS method you recommended, it didnt help - probably because the pin was setup as an analog convertor.

    The code worked without a pause once i configured the chip correctly.

    Thanks!

    R
    Last edited by vacpress; - 15th January 2009 at 04:58.

Similar Threads

  1. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  2. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  3. Pulsin to pulsout with up than 4MHZ crystal ?
    By RCtech in forum mel PIC BASIC
    Replies: 5
    Last Post: - 18th May 2006, 19:23
  4. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

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