industrialNETworXnetx

SciMan

SciMan

| 23.04.2010 | 09:15 | 3 replies

Content of the PLL status register

Hi,

I'm using VARAN HAL V1.1.1.0 and have a question connected to the PLL synchronization. I have a test equipment with a manager and slave. On a first look, the communication is ok. Now I want to check if the PLL synchronization is succesful, therefore I want to read the PLL status register. According to the VARAN design specification it's content is the following:

PLL Status Register

  • Bit 0:PLL locked
  • Bit 1: PLL unlock (reset on readout)
  • Bit 2: Device Delay Time Compensated
  • Bit 3: Delta Regulation Enable (Read back to check if option is available)
  • Bit 4: Sync Divider enable (Read back to check if option is available)
  • Bit 5: IRQ watch dog enable
  • Bit 6: PLL enable
  • Bit 7: System period overwrite via sync_time allowed

In my code I use the following line to read the PLL status register:

VaranClient_GetParameter( VRNCLNT_PARAMETER_PLL_LOCKED_STAT, &ulSyncPllLockedStat );

The value of ulSyncPllLockedStatis 0x1 (that means PLL locked). When I disconnect the Ethernet cable from the Manager, the value of ulSyncPllLockedStat becomes 0x0.

This looks correct, but why bit 6 is not set? What about the other bits?

So my real question is what I have to expect - all bits according to the VARAN design specifications are supported or only some of them? I'm not sure whether the Slave has a problem to be synchronized or some bits in the PLL status register are not supported...

A little help, please...

 

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 28.04.2010 | 12:01

Hi SciMan,

your question can be answered very easily.

The VARAN for netX was implemented after the specification V0.59 which was at this the the current one.
If the PLL is locked are Bit0 and Bit6 set in the PLL Status register.
On a unlocked PLL are Bit0, Bit1 and Bit6 = 0.

A VARAN manager have to read out the VARAN version to support this.
The netX VARAN HAL documentation describes the supported VARAN version. It is currently VARAN Protocol Version 1.1.1.0 based on VARAN design specification V0.59.

Regards
AJ

houzenan

houzenan

| 26.08.2010 | 13:37

Hi AJ,

which hilscher product is designed to implement VARAN ? why i can't find VARAN in the www.hilscher.com ?

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 26.08.2010 | 13:43

Hi houzenan,

the netX chips are designed to implement VARAN. As far as I know does Hilscher not have a ready to use standard product which includes the VARAN protocol.

The VARAN is available as a Hardware Abstraction Layer (HAL) which will be the interface between the netX chip and your application. It includes only the handling up to layer2.

I am sorry but I have no idea, why you can not find any information about VARAN on the Hilscher web page.

Regards
AJ

Login