serin with pic18f2525


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jun 2006
    Location
    Glasgow, Scotland
    Posts
    26

    Smile serin with pic18f2525

    Hi everyone hope you can help me.
    I have been updating a pic 16f876A program to run on a 18F2525 @8 MHz
    header details are
    'pic18f2525
    DEFINE OSC 8
    OSCCON = %11111111

    DEFINE LOADER_USED 1 ' Comment out if not using boot-loader
    INCLUDE "modedefs.bas"

    INTCON2.7 = 0 'enable weak pull-ups on PORTB
    but when I run it crashes after about 1 minute every time except when I remove this line

    SerIn2 portC.7,16572,600, Loop,[wait("FMS"),dec3 B0]

    It seems simple enough but I am just stuck.

    the transmit bit works fine

    SEROUT2 PortC.6,16572,["LOADX",#volt1,"BATY",#TXBat]

    what could it be ?

    any suggestions

    many thanks again
    John
    Last edited by J_norrie; - 21st August 2008 at 18:38.

Similar Threads

  1. Serin EEPROM Programmer
    By dirtbiker5627 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th February 2010, 23:48
  2. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. serin question?
    By sachymo in forum General
    Replies: 5
    Last Post: - 27th July 2008, 10:04
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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