Can you let us know about the pulse width and pulse cycle requirement of JR8717?
For the present configuration you have specified, the PWM output will be a pulse of 17.187ms with a frequency of 5.02Hz.
If you set the period to 20 and compare value to 2, then the frequency is 64Hz and pulse width is 1562.5 micro sec.
The right values can be chosen depending upon the requirement of your servo.
I tried to contact JR and they said that any information not published on their website is proprietary and not given out to the public.
That being said, I went to some forums and I've found this information
Standard Signal centre +/- 0.4ms (1.1-1.9ms)
I'm going to try to get a scope and measure the servo tomorrow.
Also, is the method i'm using correct to control the servos with the chip?
I noticed that you were able calculate the pulse width and cycle rate from the period and comp value. What is the calculation for that?
I'm sorry if I'm asking a lot of dumb questions, but I've never worked w/ PSOC before and I don't have a very strong background in electrical engineering.
Using a scope i found the period to be approximately 20 ms, with a center of 1.5 ms, a low of 1 ms, and a high of 2 ms.
In the PWM component, I'm not using a 1 MHz clock, period of 20000, and a cmp of 1000.
Everything builds correctly, and I have it attached to a digital out pin, however, the pin does not seem to be getting any more.
I'm using a CY8C55 PSoC 5 and i'm connecting my pins to: P0 (73), P0 72, P0 71, P4 69, P12 68, and P12 67.
that third line should read at the end: does net any voltage
I have created a project which uses a PWM component.
1) The clock frequency is 1MHz. Hence the clock period is 1 micro second.
2) The period is set to 19,999 to get a time period of 20ms (1 extra cycle is taken to roll over to zero). The resolution of PWM signal generated is 1 micro sec.
3) Now the Compare value can be varied from 333 to 1520 to get a pulse of 333micro sec to 1520 micro sec. The API PWM_WriteCompare ( ) is used to vary the compare value.
The waveform was checked on oscilloscope. The snapshots are as shown below:
Signal with a Period of 20ms and pulse of 333 micro sec.
Signal with a Period of 20ms and Pulse of 1520 micro sec.
The pulse of 332 micro sec.
The pulse of 1500 micro sec.
Find the project attached.
PWM_Servo.zip 330.2 K