PIC18F4550 question VS PIC16F887


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    I change to DEFINE OSC 40 while still using a 20Mhz crystal. The text is good on the LCD , but the timer always read 08:08:08

    K

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    Hey Dave,

    when yo mentioned these settings:
    @ __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    @ __CONFIG _CONFIG1H, _FOSC_INTOSCIO_EC_1H
    @ __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    @ __CONFIG _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H
    @ __CONFIG _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L &_XINST_OFF_4L


    should they be inside asm... endasm ? or just copy and paste ?

    also in the MPLAB I have the build option: -ampasmwin -k#

    K

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 question VS PIC16F887

    I changed the config line in the .INC file and it is now working with the 8mhz internal oscillator.
    The INC file is configure to handle external oscillator by defAULT. I am figuring how to make it work. even with the original INC file, and only user DEFINE OSC 20. the LCD is not showing any text.

    k

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