Finally trying to do some serial- Won't compile :(


Results 1 to 17 of 17

Threaded View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Unhappy Finally trying to do some serial- Won't compile :(

    using 16F1947
    PBP2.6A
    MPLAB 8.53
    and heres the big code:
    Code:
    INCLUDE "MODEDEFS.BAS"
    
    DEFINE HSER2_RCSTA  90H
    DEFINE HSER2_TXSTA  20H
    DEFINE HSER2_BAUD   2400
    DEFINE HSER2_CLROERR 1
    
     LED0 = 0
    START:
     HSERIN2 [WAIT("S"),SPEED]
     LED0 = 1
     HSEROUT2 [SPEED]
     'HESRIN2 [WAIT("G")]
     GOTO START
    Heres the errors:
    Code:
    ERROR: Macro HSERIN2WAIT?CL not found in macro file.
    ERROR: Macro HSERIN2?B not found in macro file.
    ERROR: Macro HSEROUT2?B not found in macro file.

    edit: forgot to mention if I take out the "2's" as if using EUSART1, it will compile as is
    Last edited by cncmachineguy; - 25th January 2011 at 02:58. Reason: added
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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