Skip to content

Errors in writing register #4

@michaelcroquette

Description

@michaelcroquette

Hi,

I bought the Sparkfun Clock 5P49V60 card a month ago and after playing with it for a month I found a couple of issues in the library :

-When writing the integer part of the divider's register there is an error, you're only shifting the most significant bits by 3 and not 4. This causes the divider number to not be 100 but 196 for most of your examples. It's actually a lucky mistake because the VCO doesn't work at 1600 MHz apparently (btw it would be nice to have the working frequency band of the VCO, I couldn't find it anywhere on the Sparkfun website)

-In a lot of function you are using a 8 bits integer to code a 12 bits integer.

-When setting the fractional part of the frequency output divider you forgot to shift the 6 least significant bits by two.

-In example 2, you're modifying two times clock one.

Best,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions