Shop OBEX P1 Docs P2 Docs Learn Events
How many PWM objects can be created? — Parallax Forums

How many PWM objects can be created?

bulkheadbulkhead Posts: 405
edited 2005-11-20 07:36 in General Discussion
Is there a limit to how many times you can say, "PWM myPulse = new PWM(...);"? What I need to know is can a PWM be created on all of the Javelin's pins simultaneously? If not, how many can there be and what regulates this? For ex, if the maximum you can have is 3, what will stop you from creating 4 PWMs, will it be the compiler, programming failure, or runtime failure? Or something more morbid (like death)?

I'm trying deciding whether or not I need the PSC, thanks.

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-20 07:36
    You can have 6 VP's running simultaneously, wether they are pwm, uart, timer or other VP.

    regards peter
Sign In or Register to comment.