pic18f252 PORTC.5 (SDO)


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Puerto Rico
    Posts
    133

    Question pic18f252 PORTC.5 (SDO)

    Help problems using PULSIN in this PORTC.5 only this port in the data shild ..
    this port is I/O but SDO ...
    but i use PULSIN PORTC.5,0.BO no work

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


    Did you find this post helpful? Yes | No

    Default

    is your PIC running? Is a led blink to this pin work???. I don't see any kind of problem using this pin if your PIC is running/set properly. can you post your whole code here???
    Steve

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

  3. #3
    Join Date
    Jan 2005
    Location
    Puerto Rico
    Posts
    133


    Did you find this post helpful? Yes | No

    Exclamation Sdo

    Yes my pic is working but i dont have a led to this pin but to others..

    Mycode :

    RcValue Var Word
    RcInput Var PORTC.5


    test:
    PULSIN RcInput,0,RcValue
    SerOut 1,N9600, RcValue
    goto test

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    Mycode :
    
    RcValue Var Word
    RcInput Var PORTC.5
    
    
    test:
    PULSIN RcInput,0,RcValue
    SerOut 1,N9600, [#RcValue]
    goto test
    what about the above? where your signal come from?? Be sure of your signal, low level and high level. Be sure the input pin is not floating.
    Steve

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

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 3rd October 2009, 19:43
  2. firmware code for pic18f252
    By babalola in forum Off Topic
    Replies: 7
    Last Post: - 8th May 2008, 12:10
  3. Migrating PIC16F876a to PIC18F252
    By cohenjdc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st June 2007, 13:55
  4. pic18f252 hserout problem
    By edysan in forum Serial
    Replies: 4
    Last Post: - 16th June 2006, 20:46
  5. Pic18f252
    By Sphere in forum General
    Replies: 4
    Last Post: - 30th September 2005, 23:10

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