HSERIN HSEROUT - Baud rate help


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I do not know what is going on with the HSEROUT but you may want to correct something else. Who knows, maybe it will solve the other.

    RA5 can only be an input. You have.
    TRISA = %00000000 'SET PORTA AS OUTPUTS

    Then this
    porta = 63 = 00111111
    Dave
    Always wear safety glasses while programming.

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    On the 18 pin device it appears that RA7 is also input only !

    http://ww1.microchip.com/downloads/e...doc/30487c.pdf

    Also, and whilst no expert on your settings you have
    Code:
    TRISB = %00001111 		'SET PORTB RB2(RX) as input, others to OUTPUT
    TRISA = %00000000 		'SET PORTA AS OUTPUTS
    
    porta = 63
    PAUSE 1000
    
    'LeftBtn Var PORTB.1
    'RiteBtn Var PORTB.3
    'StopBtn VAR PORTB.0
    'RadioEn var PortB.4
    you have set PORTB as output apart from RB2 but appear to have buttons which are normally inputs ( taking pin high or low) on RB1, RB3, RB0 and RB4 ?, but appear to have set it correctly with TRISB = %00001111
    Last edited by malc-c; - 15th September 2010 at 09:13.

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