echo47
Advanced Member level 6
You should grab a good book for learning C. Search around for recommendations.
C does not have HEX or DEC variables. The variable tuning_freq is an unsigned long int. In most C compilers, that is a 32-bit binary value.
If you explain exactly how you stored your keypad input digits, someone can help you convert it to the required format for the DDS.
Don't forget - if your enter Hertz into your keypad, you must scale that value before writing the bytes to the DDS.
C does not have HEX or DEC variables. The variable tuning_freq is an unsigned long int. In most C compilers, that is a 32-bit binary value.
If you explain exactly how you stored your keypad input digits, someone can help you convert it to the required format for the DDS.
Don't forget - if your enter Hertz into your keypad, you must scale that value before writing the bytes to the DDS.