TX PLL Programming (VCO and VCOCAP Code Selection )

63 views
Skip to first unread message

Tom Morten Berge

unread,
Sep 1, 2016, 2:58:05 PM9/1/16
to Lime Microsystems open-source support channel

Hi,

Trying to follow the VCO and VCOCAP Code Selection algorithm so I can program the TX PLL to my desired frequency. 
I start out with a reference clock of 25 MHz and want to program my TX PLL to 2140 MHz.
Then calculate my Integer and Fractional, NINT= 0xAB, NFRAC= 0x199999.
I also set up the charge pump currents as described in the starter guide.
Then I start the VCO and VCOCAP Code Selection.
I sweep over the different VCOs and write the min and max VCOCAP values and check the output of the comparators after each write. The output of the comparators always stays the same for every VCO/VCOCAP, 0x43. (VTUNE_H=0, VTUNE_L=1).
According to the flow chart I should be panicking, but I was hoping there was something wrong with my setup :slightly_smiling: 
According to the register description, the comparators should be on by default (ADR: 0x1B).
Here are my register settings:
ADR: 0x9, DATA: 0x41
ADR: 0x5, DATA: 0x3A
ADR: 0x34, DATA: 0x2
ADR: 0x41, DATA: 0x19
ADR: 0x45, DATA: 0x78
ADR: 0x44, DATA: 0xB
ADR: 0x10, DATA: 0xAA
ADR: 0x11, DATA: 0x99
ADR: 0x12, DATA: 0x99
ADR: 0x13, DATA: 0x99
ADR: 0x15, DATA: 0xB1
ADR: 0x16, DATA: 0x8C
ADR: 0x17, DATA: 0xE3,
ADR: 0x18, DATA: 0x40

ganeshpatel ece

unread,
Dec 15, 2017, 5:57:14 AM12/15/17
to Lime Microsystems open-source support channel
If you have read back option then it can be help you out.After settling the NINT and NFRAC registers settling of Tx:0X15 is very important.it can be varied according to your wanted frequency of LO. after this follow below steps(same like flow chart vcocap selection algorithm).
1.Write minimum cap code at reg TX:0X19.
2.read 0X1A register.
 ******if it is with in the range(Vtune_H=0 and Vtune_H=1), then your PLL locked.
 to verify it just increase your VGA2 gain.
 *******if not go to 3.step
3.increase the cap code at reg TX:0X19. and go to 2.step...

i got the result after processed the above steps.

Thanks & Regards
Kasarla Ganesh

ganeshpatel ece

unread,
Dec 15, 2017, 6:08:28 AM12/15/17
to Lime Microsystems open-source support channel
If you have read back option then it can be help you out.After settling the NINT and NFRAC registers settling of Tx:0X15 is very important.it can be varied according to your wanted frequency of LO. after this follow below steps(same like flow chart vcocap selection algorithm).


Perform write operation on NINT and NFRAC, VCO selection. 

1.Write minimum cap code at reg TX:0X19.
2.read 0X1A register.
 ******if it is with in the range(Vtune_H=0 and Vtune_H=0), then your PLL locked.
 to verify it just increase your VGA2 gain.
 *******if not go to 3.step
3.increase the cap code at reg TX:0X19. and go to 2.step...

i got the result after processed the above steps.

Thanks & Regards
Kasarla Ganesh

On Friday, September 2, 2016 at 12:28:05 AM UTC+5:30, Tom Morten Berge wrote:
Reply all
Reply to author
Forward
0 new messages