Go to last post By: joesaliba
Today 19:17
Forum: The Lounge
Starter: joesaliba
Views: 42
Replies: 5
Today 16:35
Forum: LCD module
Starter: Ledroj
Views: 19
Replies: 0
Today 16:18
Forum: Proton Plus Compiler v3
Starter: Les
Views: 1969
Replies: 10
Today 15:00
Forum: Pre-Sales and Upgrade Questions
Starter: Tim
Views: 156
Replies: 4
Today 14:10
Forum: USB License key
Starter: rcurl
Views: 129
Replies: 4
Go to last post By: Lester
Today 10:34
Forum: Pre-Sales and Upgrade Questions
Starter: towlerg
Views: 65
Replies: 1
+ Reply to Thread
Results 1 to 9 of 9

Thread: PIC24E HPWM example?160 days old

  1. #1
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    46
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.38 MB

    1 Not allowed!

    Default PIC24E HPWM example?

    hello

    i m looking for pic24e series hpwm examples or commands

  2. #2
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    46
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.38 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    Les , is there any demo code ?

  3. #3
    Senior Member charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    924
    Thumbs Up
    Received: 28
    Given: 26
    Total Downloaded
    850.92 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    Yes there is: go to your PDS folder and you will find SAMPLES24. In there are several examples, including PWM stuff.

    Charlie

  4. #4
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    46
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.38 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    PWM PORTB.0, 200, 10 this code working with PIC24EP series ?

  5. #5
    Senior Member charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    924
    Thumbs Up
    Received: 28
    Given: 26
    Total Downloaded
    850.92 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    Tadd,

    We can't provide ready made code that will work without any doubt. The examples are a guide to help you get something going yourself. If it works for the PIC24EP series then you should be able to make it work for the PIC24 you are using.

    Chrlie

  6. #6
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    46
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.38 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    thank you charlie , great answer for BEGINNER

  7. #7
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    2,968
    Thumbs Up
    Received: 176
    Given: 64
    Total Downloaded
    1.02 GB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    Sorry Tadd, but Charlie is right.

    We all start as beginners, but this changes when we study datasheets ourselves and work out how to do things without copying and pasting code that others have produced. IMO, this does not help in the learning process. When I first started programming microprocessors in the 1980s, there was no one to ask, I had to learn from the device's data book. i.e. Z80, then 6502 etc... Then I started with PIC microcontrollers, again, there was no one to ask, so I had to learn from the data sheet.

    The PIC24E series devices do not have standard HPWM, they have a mechanism that has many different methods. It will not work with the compiler's HPWM command because of the differences. I did create some simple code a few years ago, so I'll see if I can dig it out. However, in the meantime... Download and read the devices's datasheet and download the PIC24 reference manuals from Microchip. They have all the info required.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  8. #8
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    46
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.38 MB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    hello Les, i see what you say, i had read before your comment about 24E series different system for HPWM

    so , it ok for me if PWM command working with 24E series, i look for my mistake in my code.

    i couldd not write here exactly what i think , english problem

  9. #9
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    2,968
    Thumbs Up
    Received: 176
    Given: 64
    Total Downloaded
    1.02 GB

    0 Not allowed!

    Default Re: PIC24E HPWM example?

    Tadd. The PIC24E devices are quite complex, even for an experienced user. I personally think they were designed for a specific purpose, then released as a family. They have few extra features than a PIC24H device.

    You're much better off using a PIC24H, as they have speed, code space, RAM, and are very easy to use because they function more like a general purpose microcontroller.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts