PIC 18f4680 DIGITAL INPUTS


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Try this;

    Code:
    DEFINE HSER_BAUD 9600
    
    Main:
        HSEROUT ["HSER",13,10]
        PAUSE 500
        SEROUT2 PORTC.6,84,["WITH RCSTA.7=1",13,10]
        PAUSE 500
        RCSTA.7=0
        SEROUT2 PORTC.6,84,["WITH RCSTA.7=0",13,10]
        PAUSE 500
        RCSTA.7=1
        
        GOTO Main
    You should get this;

    HSER
    WITH RCSTA.7=0
    HSER
    WITH RCSTA.7=0

    With RCSTA.7 set the USART takes over these pins.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Mar 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Smile

    Excellent, will try that.
    I'm convinced it'll work.
    thanks

Similar Threads

  1. Setting up digital inputs
    By quester in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd March 2008, 23:14
  2. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 21:42
  3. inputs on 12F675 (or for that matter any PIC)
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th April 2007, 20:43
  4. Using portb as inputs PIC goes crazy
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th November 2005, 15:15
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

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