OpenCores
URL https://opencores.org/ocsvn/signal_waveform_generator/signal_waveform_generator/trunk

Subversion Repositories signal_waveform_generator

[/] [signal_waveform_generator/] [trunk/] [hw/] [sources/] [PwmController/] [README.md] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ldalmasso
# PWM Controller
2
 
3
This module implements a configurable PWM controller. User can set the following parameters:
4
- System Input Clock: the frequency (Hz) of the PWM module
5
- PWM Resolution: PWM Resolution (bits) of the internal counter
6
- Signal Output Frequency: the frequency (Hz) of the PWM Output Signal
7
- Signal Output Frequency Error: the frequency error range (Hz) of the PWM Output Signal
8
 
9
pwm
10
 
11
## Usage
12
 
13
Simply set the PWM parameters (i.e., System Input Clock, PWM Resolution, Signal Output Frequency and Signal Output Frequency Error).
14
 
15
The PWM Controller will automatically verify if the requirements are satisfied (essentially the Signal Output Frequency). If not, an error message will be displayed as shown below:
16
 
17
```
18
PWM Module Configuration Failure !
19
Signal Output Freq Min: xxx
20
Signal Output Freq Max: xxx
21
Actual Signal Output Freq Actual: xxx
22
```
23
 
24
## PWM Controller Pin Description
25
 
26
### Generics
27
 
28
| Name | Description |
29
| ---- | ----------- |
30
| sys_clock | System Input Clock Frequency (Hz) |
31
| pwm_resolution | PWM Resolution (Bits) |
32
| signal_output_freq | PWM Signal Output Frequency (Hz) |
33
| signal_output_freq_error | Range of PWM Signal Output Error Range (Hz) |
34
 
35
### Ports
36
 
37
| Name | Type | Description |
38
| ---- | ---- | ----------- |
39
| i_sys_clock | Input | System Input Clock |
40
| i_reset | Input | Reset ('0': No Reset, '1': Reset) |
41
| i_duty_cycle | Input | Duty Cycle to apply (Value Range: [0;2pwm_resolution]) |
42
| o_next_duty_cycle_trigger | Output | Next Duty Cycle Trigger ('0': No Trigger, '1': Trigger Enable) |
43
| o_pwm | Output | PWM Output |

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.