serial data ideas please


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    Thanks for that idea. I'll try it

    I'm still concerned that the pic is not running at 32mhz yet? My config must be wrong somewhere :?

  2. #2
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    I run an 18F2620 at 32MHZ with the internal OSC. Here is my config.

    Code:
    OSCCON=(percent)01110000               ' SET TO 8 MHZ internal oscillator
    OSCTUNE=(percent)11000000              ' TURN ON PLL X4 FREQ NOW 32MHZ
    replace (percent) with %
    Shawn

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    Shawn

    Can you post this part of you config as well please?

    Code:
    #CONFIG
     __CONFIG _CONFIG1H, _OSC_INTIO67_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
     __CONFIG _CONFIG2L, _PWRT_OFF_2L & _BOREN_OFF_2L
     __CONFIG _CONFIG2H, _WDT_OFF_2H
     __CONFIG _CONFIG3H, _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_OFF_3H
     __CONFIG _CONFIG4L, _STVREN_OFF_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L
    #ENDCONFIG

  4. #4
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    Sorry, I don't put my configs in the code like that. I set them with PICFLASH when I program my pics. What you have looks correct to me though.
    Shawn

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    Pic now seems to be running at 32mhz and able to keep up, so problem may be solved. Thanks for the ideas.

  6. #6
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    What did you end up changing?
    Shawn

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: serial data ideas please

    Just the oscon and osctune to your values.

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