This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem in Timer

Hi,

I am using lpc1768. By using Timer, i have generated a square wave with time period of 16ms. The ON period should be 1ms and OFF period should be 15ms. I used two match registers MR0 and MR1. I done with MR0 for OFF period and MR1 for ON period. But am getting the signal as 15ms as ON period and 1ms as OFF period. Plz suggest some solutions.

Thank You

Parents
  • feed your signal thru an inverter. then you will get what you want. you can use a transistor or a fet or a ttl device or a cmos device. there are lots of other options too. use the one that you have access to. you could write a program for a cortex a-8 that samples a port pin and feeds the inverted input to an output pin; but that might be a slight overkill for your problem.

    alternatively, read the manual for the part, determine what you are doing and adjust that so you then do what you want.

Reply
  • feed your signal thru an inverter. then you will get what you want. you can use a transistor or a fet or a ttl device or a cmos device. there are lots of other options too. use the one that you have access to. you could write a program for a cortex a-8 that samples a port pin and feeds the inverted input to an output pin; but that might be a slight overkill for your problem.

    alternatively, read the manual for the part, determine what you are doing and adjust that so you then do what you want.

Children
No data