Dear All,
We would like to generate a wave form similar to the following image. This is a pulse signal with a delay between each pulse packages. The application is to generate a pulse sonar system. The best way to generate this wave form is to use the ehrPWM (enhanced high resolution Pulse Width Module) of our OMAP L138 LCDK.
As you can see above, we would like to make a pulse signal with a rectangular shape. The Starterware 01.10.01.01 ehrPWM example demonstrates the process to generate rectangular waves which is very close to our desired wave form. An example of Starterware 01.10.01.01 ehrPWM example is shown bellow (Figure 2):
Now we would like to modify the this example to get our desired wave form (which is shown in Figure 1). I guess we should create a delay every 0.1 second and this delay should last for 1.9 seconds. I know two possible methods to achieve this delay. The first method is to just waste the processor resource by using a "while" or "for" loop. This method does not generate accurate delay time and is not recommended. The second method is to use time interrupts. However, could not figure out how to use the time interrupt properly to achieve this delay.
Any advice on how to create this 1.9 sec delay (whether using time interrupts or other methods) is appreciated. Do you know any other method to achieve this wave form? Please share your thoughts with us.
Detail information about our project:
- Board: OMAP L138 LCDK
- Emulator: Spectrum Digital XDS 220 ISO
Thank you :)