View Full Version : Accuracy of pulsePin API
tom@origtech.com
09-18-2008, 09:39 AM
When using the pulsePin(2, 1, True) SNAPpy API I would expect to see a pulse on output 2 of 1 mS. The pulse I get can be anywhere from 640uS to 2.2mS. What is the accuracy of the pulse width? Can it be controlled?
msellers
09-18-2008, 02:17 PM
Is your script processor intensive like moving a lot of data across the radio, streaming data in on the serial port, etc.? We will look into this.
tom@origtech.com
09-19-2008, 10:16 AM
The script file generates the pulse after receiving some data over the radio. The data is then sent out the UART at 9600 baud. The pulse output is connected to a monitored input pin. When the monitored pin hook function is called at the end of the pulse, the script file examines the UART and if all characters have not been transmitted the script generates a second 1mS pulse. The process repeats till the script file detects that all characters have been sent. Generally I noticed that the first pulse is shorter than 1mS and the following pulse events are longer
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.