problem writing to PCL PIC16f877


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    some
    Code:
    @ 
    
    asm
    ...
    
    Endasm
    missing ???

    Code:
    '******************************************************************************	
    '******************************************************************************
    ' We never should reach those lines ... but ... IF PC lost ... 
    
    @ ORG 1017
    LOW Relay						' To be sure !!!
    PAUSE Relaydelay					
    GOTO securite
    This is for a 16F84 ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Sep 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Thanks for your reply Alain, I however have no clue what it is you are suggesting.

    I want to write to my program counter, and for some reason when I do I get random values in it instead of what I wrote to it.

    I would like to try and find out why.

    Thanks
    Quentin

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


    Did you find this post helpful? Yes | No

    Default

    We mainly use PicBasic here. If you are inserting ASM into PBP code then
    "@"
    or
    asm
    "code"
    endasm

    is how the assembly "stuff"is used.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PIC KIT 2 writing problem ?
    By KaanInal in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd January 2010, 13:59
  2. pic16f877 problem repeating serial data
    By TomRiddle in forum Serial
    Replies: 2
    Last Post: - 6th February 2008, 14:56
  3. Mutliple ADC problem with PIC16F877
    By andyto in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd October 2007, 18:47
  4. Problem on writing EEPROM in Winpic800 with picbasic pro
    By selimkara in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th May 2007, 17:33
  5. Writing / Reading EEPROM 24LC256 Problem
    By schmoddel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th February 2004, 19:55

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