Temperature using LM35 and wind direction using 3 optointerrupters with a 16F873A PIC


Closed Thread
Results 1 to 11 of 11

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    If you're using DEC in HSERIN, you want to use DEC in HSEROUT as well. You USART settings seems weird to me, this following..
    Code:
    DECLARE HSERIAL_TXSTA = %00100010
    But HSEROUT should take care of it. You could still try...
    Code:
    HSERIAL_RCSTA=$90
    HSERIAL_TXSTA=$20
    HSERIAL_SPBRG=25 ' 2400 Bauds
    HSERIAL_CLEAR=ON
    This set manually the PIC USART register.

    Proton forum
    Steve

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

  2. #2
    Join Date
    Apr 2008
    Posts
    23


    Did you find this post helpful? Yes | No

    Default thermometer


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