08-17-2005 05:02 PM
08-18-2005 11:08 AM - edited 08-18-2005 11:08 AM
Message Edited by Alan A. on 08-18-2005 11:22 AM
08-18-2005 04:04 PM
Hi Alan,
Many thanks for the response. By 166Hz I mean the period of a digital signal produced by incrementing the value of a byte by 1 for each iteration (i.e. toggling the least significant bit in this case) on the 8-bit digital port. I'm not sure if I completely understand your definition of loop rate and what you mean by "the whole waveform" when you mention 300Hz... could you clarify this perhaps? It would seem to me that you mean toggle rate which would be twice the frequency of the LSB waveform, but then since you describe much higher numbers like 20kHz and above, I don't think I get your meaning clearly.
Regards,
Janak
08-19-2005 11:22 AM
Janak,
Allow me to clarify,
When I ran the program I attached previously, the digital pulse train produced by the least significant bit toggling from 0 to 1 and back to 0 was running anywhere from 10kHz to 20kHz. Meaning that the LSB was changing at the rate of 20kHz to 40kHz. Every time the LSB changes, the loop has executed one time. So by loop rate, I am referring to how fast the loop is executing, which is exactly how fast the LSB is changing.
I also monitored the most significant bit. I found that the pulse train from the MSB produces is about 150Hz. So the MSB is changing at a rate of about 300Hz.
I hope I was more clear in this post. Let me know if I need to clarify anything further.
-Alan A.
08-22-2005 08:51 AM
Alan,
Thank you for the clarification; this is what I thought you meant. However, it seems that the maximum I can achieve with your code or mine is about 150 Hz for the LSB and a little over 1 Hz for the MSB... any idea on what could be the cause of such a low output rate?
Best Regards,
Janak
08-23-2005 11:27 AM
08-23-2005 01:03 PM
08-24-2005
06:36 PM
- last edited on
07-16-2025
09:22 AM
by
Content Cleaner
08-26-2005 08:47 AM
08-26-2005 10:29 AM