debug error on 12F509


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Pedro,

    With the 12F609 it works, the compiler not show any errors
    It shouldn't show any errors. The 12F609 is a 14-bit core. The 12F509 is a 12-bit core.

    do i not need to add the
    DEFINE OSCCAL_2K 1 on the begin of the code?
    DEFINE OSCCAL_2K 1 is for a 2K part. DEFINE OSCCAL_1K 1 would be for a 1K part, but this isn't necessary for a PIC that doesn't have a factory OSCCAL calibration value stuffed in the last program memory location or an OSCCAL register
    Regards,

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

  2. #2
    Pedro Pinto's Avatar
    Pedro Pinto Guest


    Did you find this post helpful? Yes | No

    Default

    Hello again

    Thank you Bruce
    The internal osc of the 12F609 is 4Mhz, right?

    Regards
    Pedro

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


    Did you find this post helpful? Yes | No

    Default

    The 12F609 internal ocs runs at 4MHz or 8MHz. IOSCFS: Internal Oscillator Frequency Select bit in the config register is used to select 4 or 8MHz.

    @ DEVICE PIC12F609, MCLR_OFF, IOSCFS_4MHZ, INTRC_OSC_NOCLKOUT

    @ DEVICE PIC12F609, MCLR_OFF, IOSCFS_8MHZ, INTRC_OSC_NOCLKOUT
    Regards,

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

Similar Threads

  1. N-Bit_MATH
    By Darrel Taylor in forum Code Examples
    Replies: 38
    Last Post: - 16th December 2010, 14:48
  2. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 20:41
  3. debug not working with MPASM assempler
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2009, 07:51
  4. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  5. Debug and some 18F pics
    By sinoteq in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st June 2007, 15:10

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