Moved from PM to MPASM and have fuse definition problems


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    21

    Default Moved from PM to MPASM and have fuse definition problems

    Before when working in PM I preset my fuses like this:
    Code:
    @ DEVICE PIC16F628A, HS_OSC, WDT_OFF, LVP_OFF, PWRT_OFF, PROTECT_OFF, BOD_OFF
    Now in MPASM I'm getting "Overwriting previous address contents (2007)" error when doing this:
    Code:
    @ __CONFIG _HS_OSC
    Any ideas?

    Thanks,
    Tom

  2. #2
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Tomexx View Post
    Before when working in PM I preset my fuses like this:
    Code:
    @ DEVICE PIC16F628A, HS_OSC, WDT_OFF, LVP_OFF, PWRT_OFF, PROTECT_OFF, BOD_OFF
    Now in MPASM I'm getting "Overwriting previous address contents (2007)" error when doing this:
    Code:
    @ __CONFIG _HS_OSC
    Any ideas?

    Thanks,
    Tom
    Code:
          list= p16F628A
          #include  <p16F628A>
          __CONFIG   03F2A  ;this would set to what you wanted
    in MPLAB click configure , select device and set it for 16F628A
    close and reopen the configure-- now seek "configuration bits" remove the tick on top of that page, now you can independently set every item of the list and there after, copy the configuration word. use it the way i typed incode above. this makes life easy before you get grip on mpasm.
    Regards,
    Sarma

  3. #3
    Join Date
    Oct 2008
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    I'm not using MPLAB just MPASM under MicroCode studio.

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


    Did you find this post helpful? Yes | No

    Default

    See this thread for your answer & then some..;o}
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Regards,

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

  5. #5
    Join Date
    Oct 2008
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce!

Members who have read this thread : 1

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