Code from PIC18F8722 to PIC18F4550


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    130


    Did you find this post helpful? Yes | No

    Question

    please help

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


    Did you find this post helpful? Yes | No

    Default

    I dont know how to translate CCP3CON
    There is no CCP3CON register on the 18F4550. CCP1CON configures PWM for CCP1. CCP2CON configures PWM for CCP2

    You can have up to two standard PWM outputs. CCP2 on RC1 or RB3 depending on config fuse settings for CCP2MX in CONFIG3H, and CCP1 on RC2.

    Or you can use the ECCP module with P1A, P1B, P1C and P1D for motor control driving an H-bridge.

    Take your time and read through 18F4550 data sheet for PWM setup. It's really not that hard. A little time reading & experimenting with your 18F4550 is all you need to figure it out.
    Regards,

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

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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