Manual

PoBlocks user manual (March 31, 2014)
22
www.poscope.com
16.4. IO - PWM output
Description
PWM output is used to set the duty cycle of the PWM (pulse width modulated)
output
Inputs
Duty (32-bit integer): Duty cycle in the range from 0 to Duty range (block parameter)
Enable (Logic): Enable input. If 0, no write operation will be performed
Outputs
None
Properties
Pin ID (Integer, 17 to 22): PoKeys pin ID as indicated on the device
PWM period (Integer): PWM period in PWM clocks (base PWM clock in PoKeys
devices is 25 MHz) that is shared among all PWM outputs - to set the 1 ms period (1
kHz), set the value to 25000
Init period (Logic): If true, PoBlocks will initialize the PWM outputs with the specified
PWM period value
Duty range (Integer): Maximum value of Duty input that equals to 100% pulse width
Default duty (Integer): Default value of the duty cycle (set on reset)
Show enable input (Logic): Set to True to display the Enable input
Remarks
None
16.5. IO - PWM output C
Description
PWM output C is used to set the duty cycle and period of the PWM (pulse width
modulated) outputs. PWM outputs 1 to 6 equate to pins 17 to 22 on PoKeys56E/U.
Warning: pulse width anomalies can occur when changing PWM period.
Inputs
Period (32-bit integer): PWM period in PWM clocks (base PWM clock in PoKeys
devices is 25 MHz) that is shared among all PWM outputs - to set the 1 ms period (1
kHz), set the value to 25000
Update period (Logic): Update input. On rising edge, PWM period will be updated
Duty 1-6 (32-bit integer): Duty cycle for PWM output 1-6 in percent
Enable (Logic): Enable input. If 0, no write operation will be performed
Outputs
None
Properties
Default period (Integer): Default PWM period (set on reset)
Show enable input (Logic): Set to True to display the Enable input
Default duty 1-6 (Integer): Default value of the duty cycle in percent
Remarks
None
16.6. IO - Encoder value
Description
Encoder value reads the value of the encoder counter
Inputs
None
Outputs
Encoder (32-bit integer): Encoder counter value
Properties
Encoder ID (Integer, 1 to 26): PoKeys encoder ID (0 to 25)
Channel A pin (Integer, 1 to 55): PoKeys pin ID as indicated on the device, used for
encoder A channel signal