Today 20:02
Forum: Proton Users File Server
Starter: Les
Views: 0
Replies: 0
Today 19:58
Forum: Amicus 18
Starter: xelectro
Views: 0
Replies: 21
Go to last post By: Stephen Moss
Today 14:50
Forum: Absolute Beginners Section
Starter: andy roberts
Views: 0
Replies: 1
Go to last post By: andy roberts
Today 14:00
Forum: Proton Plus Compiler v3
Starter: angry_johnny
Views: 2216
Replies: 6
Today 11:58
Forum: Proton Plus Compiler v3
Starter: AlbertoFS
Views: 0
Replies: 19
Today 07:07
Forum: Proton Plus Compiler v3
Starter: Oldhack
Views: 0
Replies: 5
Today 07:07
Forum: WIKI Discussion
Starter: AlbertoFS
Views: 0
Replies: 2
Yesterday 20:28
Forum: Proton Users File Server
Starter: AlbertoFS
Views: 0
Replies: 0
+ Reply to Thread
Results 1 to 9 of 9

Thread: PIC24E HPWM example?307 days old

  1. #1
    Junior Member tadd's Avatar
    Join Date
    Dec 2014
    Posts
    63
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.41 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
    63
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.41 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
    984
    Thumbs Up
    Received: 29
    Given: 27
    Total Downloaded
    1.20 GB

    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
    63
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.41 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
    984
    Thumbs Up
    Received: 29
    Given: 27
    Total Downloaded
    1.20 GB

    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
    63
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.41 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
    3,133
    Thumbs Up
    Received: 205
    Given: 74
    Total Downloaded
    1.49 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
    63
    Thumbs Up
    Received: 4
    Given: 0
    Total Downloaded
    87.41 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
    3,133
    Thumbs Up
    Received: 205
    Given: 74
    Total Downloaded
    1.49 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