Best way to use USART/HSERIN


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,156


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    Yup, JP2, that's the one.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    Looking at the board with the power jack on the left and the 16F8777A on the bottom, the JP2 jumper has the top two pins tied together. The LED bargraph has the writing towards me. That would seem to be the pick-pin-HIGH-LED-On scenario described above, so I don't get why the LEDs which aren't referenced are on. <Sigh>

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,156


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    Dumb question, did you assign initial values to the pins, ADC, CONFIGs, etc?

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    Not a dumb question, Robert - I did not. Think I should add 'PORTD =0'?

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,156


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    I'd use the variables.

    Why the renaming?

    led1 var PORTD.1
    led2 var PORTD.2
    led7 var PORTD.7

    ERROR_LED VAR led7 ' rename the LED's
    LATE_LED VAR led2t
    HEART_LED VAR led0

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Best way to use USART/HSERIN

    Problem solved:

    Code:
    ':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    '   Variable definition
    ':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ERROR_LED  VAR PORTD.1            ' rename the LED's
    LATE_LED   VAR PORTD.2
    HEART_LED  VAR PORTD.0
    
    PORTD = 0

Similar Threads

  1. USART to PC
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th October 2008, 00:09
  2. Usart
    By lew247 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd June 2008, 23:41
  3. Sharing a USART
    By Ron Marcus in forum Serial
    Replies: 1
    Last Post: - 7th September 2005, 14:48
  4. 9 bit addressable USART
    By barkerben in forum General
    Replies: 9
    Last Post: - 4th January 2005, 22:57

Members who have read this thread : 3

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