clock question


Closed Thread
Results 1 to 2 of 2

Thread: clock question

  1. #1
    Join Date
    Jun 2006
    Posts
    20

    Default clock question

    i have some code that sets the internal clock to 8 mhz

    "InitialiseOSC
    movlw b'01110010'
    ;run mode,8mhz,internal rc block
    movwfOSCCON"

    what i need to do to get this pic to run at 4mhz
    i have never used a pic that runs an internal clock i use crystal to set the clock

    any help is as allways appreciated

    ps:the pic is a 18f2321

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


    Did you find this post helpful? Yes | No

    Default

    The OSCON section of the data sheet will give all of the options.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. EM4095 Chip, get Clock and Data signals?
    By mindthomas in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 19th August 2008, 06:27
  2. Shiftout/in
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd August 2007, 11:48
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. Clock Question - New to PicBasic
    By cometboy in forum mel PIC BASIC
    Replies: 3
    Last Post: - 3rd November 2006, 00:39
  5. ER Clock input question
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th May 2004, 10:10

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