Problem using ASM instruction


Results 1 to 6 of 6

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    the main problem lies in your config settings. Your current setting imply you're using an external <4-8MHz crystal.

    just change XT_OSC to INTRC_OSC_NOCLKOUT

    are you sure of the AN number? any link to it?

    EDIT: there's also something you want to make sure of... when you use BCF/BSF, you have to make sure you're in the right BANK unless you may just set/clear another register. Under each of your 2 ASM line, just add CHK?RP GPIO and see if it do something better. And for safety sake, change Cycles VAR BYTE to Cycles VAR BYTE BANK0.
    Last edited by mister_e; - 28th March 2008 at 17:06.
    Steve

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

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  3. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  4. Problem with ASM IRQ using FSR0 on PIC18F252
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th March 2008, 20:48
  5. problem with asm interrupt
    By servo260 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th December 2004, 17:02

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