Help, problems first time with 18F452 PIC


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    MikeTamu's Avatar
    MikeTamu Guest


    Did you find this post helpful? Yes | No

    Default

    Update:

    After struggling with this problem for half a day, I have learned my lesson well. In Melabs Programmer, XT was the selected speed mode whereas HS should of been for 10 Mhz. Doh!

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Thumbs up Congratulations

    Hi there,

    Did you know that you can run your PIC18F452 @ 40MHz using the same 10MHz resonator! The config is then HS_PLL (It does a x4 PLL multiply)

    Happy PICing

    Regards

    Sougata

  3. #3
    MikeTamu's Avatar
    MikeTamu Guest


    Did you find this post helpful? Yes | No

    Default

    Wow, I didn't know that. Thanks.

    Where do I put this 'config' command and what is the full command to use?

    Also, does PBP know that I will be doing this and adjust its pause times accordingly?


    Thanks.

  4. #4
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Cool search for a post by melanie on config

    Hi there,

    As far as I remember Melanie did give a full reference on the @config issues. I do it in a different way. I edited the 18F452.inc file in the pbp folder and change the XT_OSC to HS_PLL. Actually I run almost all my 18F452 @40MHz. That gives me fastest running code however practical serial communication is limited to 9.6K. Higher rates yield high baud rate error. BTW a simple define "DEFINE osc 40" will make your timing correct under PBP. Keep exploring.

    Regards

    Sougata

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  3. PIC instruction time
    By Adrian in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th June 2007, 02:53
  4. problems on power up of PIC
    By dmairspotter in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th June 2006, 14:11
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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