Skip to content

Arduino library for interfacing with the Philips UMA1014 PLL chip

License

Notifications You must be signed in to change notification settings

randomradioprojects/UMA1014-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMA1014-arduino

Arduino library for interfacing with the Philips UMA1014 PLL chip

Thanks to FelixTRG for testing!

Basic usage

#include <UMA1014.h>

UMA1014 pllchip(0x62);

void setup() {
 Serial.begin(9600); 
 pllchip.init();
 pllchip.state.phaseInverter = true;
 pllchip.writeState();

 // manually set the dividers
 pllchip.state.referenceRatio = 0b1100;
 pllchip.state.mainDividerRatio = 7368;
 pllchip.writeState();

 // or simply
 pllchip.setPLLfreq(92100000, 12800000);
}

void loop() {
  struct UMA1014::status currentStatus;
  if(pllchip.getStatusRegister(&currentStatus) == 0) {
    Serial.println("UMA1014 state:");
    if(currentStatus.disableAlarm) {
      Serial.println("    -> alarm on");
    }
    if(currentStatus.latchedPowerDip) {
      Serial.println("    -> latched power dip");
    }
    if(currentStatus.latchedOutOfLock) {
      Serial.println("    -> latched out of lock");
    }
    if(currentStatus.momentaryOutOfLock) {
      Serial.println("    -> momentary out of lock");
    }
  }
  delay(1000);
}

About

Arduino library for interfacing with the Philips UMA1014 PLL chip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages