{"id":16729315,"url":"https://github.com/simenkid/adf4113_driver","last_synced_at":"2025-07-24T08:11:28.944Z","repository":{"id":30839685,"uuid":"34397138","full_name":"simenkid/adf4113_driver","owner":"simenkid","description":"This is the driver for the ADF4113 frequency synthesizer IC from Anlog Devices.","archived":false,"fork":false,"pushed_at":"2015-04-22T15:44:45.000Z","size":148,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T16:37:29.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simenkid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-22T15:01:58.000Z","updated_at":"2024-12-22T22:27:18.000Z","dependencies_parsed_at":"2022-09-03T09:00:07.755Z","dependency_job_id":null,"html_url":"https://github.com/simenkid/adf4113_driver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simenkid/adf4113_driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenkid%2Fadf4113_driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenkid%2Fadf4113_driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenkid%2Fadf4113_driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenkid%2Fadf4113_driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simenkid","download_url":"https://codeload.github.com/simenkid/adf4113_driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenkid%2Fadf4113_driver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266813479,"owners_count":23988545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T23:28:04.898Z","updated_at":"2025-07-24T08:11:28.922Z","avatar_url":"https://github.com/simenkid.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adf4113_driver\nThis is the driver implemented on MSP430 for controlling the ADF4113 frequency synthesizer IC.\nYou can also port this driver to other MCUs. Let's take the 8051 as an example, there are just few steps to do:\n\nstep1: Re-assign the GPIOs in hal_adf4113.h\n \n    #define TriWire_Port  P1_bit.P1_0 \n    #define TriWire_IO    P1_bit.P1_1 \n    #define TriWire_SCLK  P1_bit.P1_2 \n    #define TriWire_LE    P1_bit.P1_3 \n\nstep2: Change the MCU header file in hal_adf4113.c\n \n    #include  \u003cmsp430g2452.h\u003e -\u003e #include  \u003cioAT89C52.h\u003e\n\nstep3: Change the MCU header file \u0026 re-assign the GPIOs used by the buttons in main.c\n \n    #include  \u003cmsp430g2452.h\u003e -\u003e #include  \u003cioAT89C52.h\u003e \n    #define BTN1 BV(3) -\u003e #define BTN1 P3_bit.P3_2 \n    Modifiy the code to make it run! \n\nAPIs\n\n1. HalSynInit(void) \n \n    Initialize the synthesizer when powered up.\n    \n2. HalSynStart(uint16 rf_Freq) \n \n    Call this function to start the synthesizer with rf_Freq.\n    The unit of the rf_Freq is MHz.\n    For exmaple: HalSynStart(2430) will tell the synthesizer \n                 to output a 2.43 GHz sinudoidal signal.\n\n3. halSynSetFunc(uint8 funcSet, uint8 mode)\n \n    funcSet: (Please see the datasheet for the detail)\n    \n            ADF4113_SET_RESYNC\n            ADF4113_SET_LD_PREC      \n            ADF4113_SET_TEST         \n            ADF4113_SET_ABP          \n            ADF4113_SET_CP_GAIN      \n            ADF4113_SET_POWER_DOWN   \n            ADF4113_SET_CURRENT      \n            ADF4113_SET_COUNTER_CONT \n            ADF4113_SET_FAST_LOCK    \n            ADF4113_SET_CP_STATE     \n            ADF4113_SET_PFD_SIGN     \n            ADF4113_SET_MUX          \n            ADF4113_SET_COUNTER_RESET\n            ADF4113_SET_CTL_BITS     \n            ADF4113_SET_PRESCALE_VAL \n \n    mode: (Please see hal_adf4113.h and the datasheet for the detail)\n    \n            ADF4113_RESYNC_NORMAL1   \n            ADF4113_RESYNC_NONDELAYRF\n            ADF4113_RESYNC_NORMAL2   \n            ADF4113_RESYNC_DELAYRF   \n            ADF4113_LD_PREC_3CYCLE   \n            ADF4113_LD_PREC_5CYCLE   \n            ADF4113_TEST_MODE_OFF    \n            ADF4113_ANTI_WIDTH_3P0NS \n            ADF4113_ANTI_WIDTH_1P5NS \n            ADF4113_ANTI_WIDTH_6P0NS \n            ...\n\nNote:\n    Everytime when you change the settings, please remember to call HalSynStart()\nto apply new changes. For example:\n \n    halSynSetFunc(ADF4113_SET_LD_PREC, ADF4113_LD_PREC_5CYCLE); \n    halSynSetFunc(ADF4113_SET_ABP, ADF4113_ANTI_WIDTH_1P5NS); \n    halSynSetFunc(ADF4113_SET_CURRENT, ADF4113_ICP6); \n    halSynSetFunc(ADF4113_SET_COUNTER_CONT, ADF4113_TCOUNTER10); \n    halSynSetFunc(ADF4113_SET_MUX, ADF4113_MUX_DIVN_OUT); \n    HalSynStart(2423); \n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenkid%2Fadf4113_driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimenkid%2Fadf4113_driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenkid%2Fadf4113_driver/lists"}