Serout and 18F87J50


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1

    Default 18F87J50 Help

    Hi,

    I need some help. This code works on the 16F690, but will not work on the 18F8722 or the 18F87J50. Can any one help me?

    16F690
    Pause 500

    Serout2 PORTB.5, 84, [$02]
    Serout2 PORTB.5, 84, [$61]
    Serout2 PORTB.5, 84, [$01]
    Serout2 PORTB.5, 84, [$22]
    Serout2 PORTB.5, 84, [$06]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$05]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$00]
    Serout2 PORTB.5, 84, [$A0]
    Serout2 PORTB.5, 84, [$0A]
    Serout2 PORTB.5, 84, [$1B]
    Serout2 PORTB.5, 84, [$03]

    18F87J50 Not working
    Pause 500

    Serout2 PORTG.2, 84, [$02]
    Serout2 PORTG.2, 84, [$61]
    Serout2 PORTG.2, 84, [$01]
    Serout2 PORTG.2, 84, [$22]
    Serout2 PORTG.2, 84, [$06]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$05]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$00]
    Serout2 PORTG.2, 84, [$A0]
    Serout2 PORTG.2, 84, [$0A]
    Serout2 PORTG.2, 84, [$1B]
    Serout2 PORTG.2, 84, [$03]

    The only biff is the port.

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

    Default

    If you have bit 7 in RCSTA2 set you can't use this pin.

    It's configured as the EUSART2 asynchronous receive, and can only receive serial data.
    Regards,

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

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