Skip to content

Commit

Permalink
Sayma: bypass dividers where possible to minimize noise (nb this chan…
Browse files Browse the repository at this point in the history
…ges the output skew).
  • Loading branch information
hartytp committed Jun 12, 2018
1 parent 7a0140e commit c8935f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions artiq/firmware/libboard_artiq/hmc830_7043.rs
Expand Up @@ -288,8 +288,11 @@ pub mod hmc7043 {
write(channel_base + 0x3, aphase & 0x1f);
write(channel_base + 0x4, dphase & 0x1f);

// No analog phase shift on clock channels
if (channel % 2) == 0 { write(channel_base + 0x7, 0x00); }
// bypass analog phase shift on clock channels to reduce noise
if (channel % 2) == 0 {
if divider != 0 { write(channel_base + 0x7, 0x00); } // enable divider
else { write(channel_base + 0x7, 0x03); } // bypass divider for lowest noise
}
else { write(channel_base + 0x7, 0x01); }

write(channel_base + 0x8, 0x08)
Expand Down

0 comments on commit c8935f7

Please sign in to comment.