The FSCC device has a programmable clock that can be set anywhere from 20 KHz to 200 MHz. However, this is not the full operational range of an FSCC port, only the range that the on-board clock can be set to.
Using one of the synchronous modes you can only receive data consistently up to 30 MHz (when you are using an external clock). If you are transmitting data using an internal clock, you can safely receive data consistently up to 50 MHz.
Lower clock rates (less than 1 MHz for example) can take a long time for the frequency generator to finish. If you run into this situation we recommend using a larger frequency and then dividing it down to your desired baud rate using the BGR
register.
If you are receiving timeout errors when using slow data rates you can bypass the safety checks by using the ignore_timeout
option.
Code | Version |
---|---|
fscc-windows | 2.0.0 |
fscc-linux | 2.0.0 |
pyfscc | 1.0.0 |
clock_frequency = property(...)
Exception | Base Exception | Cause |
---|---|---|
InvalidParameterError |
ValueError |
Clock frequency is out of range (15,000 to 270,000,000) |
import fscc
...
# 18.432 MHz
p.clock_frequency = 18432000
- Complete example:
examples/clock-frequency.py
- Implementation details:
fscc.py