Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Moved]: Controlling number of PWM pulses using 16bit timer

Status
Not open for further replies.

angiey

Junior Member level 1
Joined
Jul 2, 2012
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,436
Hello all,

I'm using LPC1115 controller and getting PWM signal at PIO1_9
by varying prescaler register and keeping the values constant of MR3,
so I had set a time and pulses generated continuously and stopped within that time,
and for this I used a delay loop within this loop the pulses generated
randomly.


But the problem is, I need to use a 16bit IRQ handler in the code,
and within this function I need to pass the PWM generation and stop
it for the specific count with the time set.

But the 16bit IRQ is not invoking in my current code, how to check whether
IRQ is invoked or not?? and how to set/count the PWM pulses[say 500 to
1000 pulses] and stop it within the set time using interrupt handler.

Kindly give some suggestion on this.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top