Skip to content

Kimu754/AD9910-Driver-Plus-Hardware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sources

TODOS and MAYBES

TODOS

  1. Important : dds_digital_ramp_freq is never setted back after dds_digital_ramp_freq -> I think it is a problem, not sure
  2. Check how to deal with : drg_continuous_, current_high , right now both false

MAYBES

  1. Right Now, The Code is still hybrid, in the meaning that although there is an abstraction layer implemented for the MCU Hardware, we still rely on HAL on some level. This dependency can at some point be rethought by addressing the MCU through registers directly, which will allow for some efficiency gain. The current architecture paved the path for such implementations, however due to a higher code error probability, we omit this idea for futur improvments based on a finished and tested code base.

  2. Closely realted to the firt point, is pin handeling architecture which could be improved to an array of pin handlers. Currently we use the DdsPin class which then calls a pin_t from which we take then only half of the information, becasue the rest is not needed at run time anyway. Clearly, This can be improved.

Remember

  • On STM32, if a pin is never configured as output, writing to it later may not work correctly.
  • On Arduino, uninitialized pins default to INPUT, so writing could work differently.
  • AD9910 Big Endian

WEIRD Behaviour of OG CODE to investigate

  • SPI WRITE FORMAT OG sends the following 9 bytes: [0] = profile # [1] = ASF high byte [2] = ASF low byte [3] = 0 [4] = 0 [5] = FTW byte3 [6] = FTW byte2 [7] = FTW byte1 [8] = FTW byte0 This is not a real AD9910 register write. This is a bizarre custom packet into a custom firmware block, not the AD9910 protocol.

This line in the OG code if (DDS_Core_Clock<=1000000000) strBuffer[1] = VCO5; // bilo VCO3 else strBuffer[1] = VCO5; // | DRV0_REFCLK_OUT_High_output_current;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published