Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Driving a LMX1601 with Bascom-AVR

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1178
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu Dec 31, 2009 12:11 pm    Post subject: Driving a LMX1601 with Bascom-AVR Reply with quote

For a transceiver project we have used a LMX1601 1.1 Ghz/500 Mhz low cost dual frequency synthesizer. It drives the VCO of a MC3362, a single chip narrow band FM receiver. Very stable. It has taken some time to get things up and running. The input frequency is taken from the 11.059.200 hertz crystal from the driving Atmega128. Coupled with a 100 pf to the F-aux-in of the LMX1601. With a Shiftout the Atmega128 is configering the LMX1601 at the startup of the program. Four 18 bits codes are shiftout. The last two bits of the code (LSB) are to define to which register this code has to be written. The four registers are AUX_R, AUX_N, MAIN_R and MAIN_N. With the four bits (MSB) of the AUX_R the type of output is selected. With these four bits you can choose the output of the input freq. divided by the AUX_R, by the AUX_N register, lock detect etc. etc.

A nice webpage with some extra info:
http://www.cappels.org/dproj/Home.htm

Some pictures:
The Bascom-AVR code:


The calculator from National Semiconductor, a big help:



You will have to check the datasheet of the LMX1601 to get the full details. It is a very nice programmable prescaler.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
plusboy

Bascom Member



Joined: 17 Aug 2008
Posts: 21

iran.gif
PostPosted: Fri Aug 12, 2011 8:18 pm    Post subject: Reply with quote

hello.
very nice project..
I have a project about FM receiver with saa1057 and mc3362 .. I dont know how to drive saa1057 or any kind of pll in the range of 130 to 144 MHZ .
what kind of data should send to the saa1057 and how?

please help me to program an avr chip to drive saa1057.!
do u offer me another PLL SYNTHESIZER?

thanks alot
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1178
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Jan 04, 2012 12:02 am    Post subject: LMX2306 Reply with quote

Here the code for a LMX2306

Instead of the 18 bit of the LMX1601 it is 21 bit

Code:
Sub Write_lmx2306                                           '10 Mhz source, 115 Mhz output, R-counter divide by 1000

'(
Lmx2306_latch Alias Portc.0
Lmx2306_data Alias Portc.1
Lmx2306_clock Alias Portc.2
Lmx2306_ce Alias Portc.3
')

'(
Config Lmx2306_data = Output
Config Lmx2306_clock = Output
Config Lmx2306_latch = Output
Config Lmx2306_ce = Output
Config Lmx2306_fold = Input
')


'R-register
Lmx_data = &B00000000000_0000000001111101000_00             '1000

Shift Lmx_data , Left , 11
Shiftout Lmx2306_data , Lmx2306_clock , Lmx_data , 1 , 21 , 1000

Set Lmx2306_latch
Waitms 4
Reset Lmx2306_latch

'N-register
'Lmx_data = &B00000000000_1001010000011100000_01             '104 Mhz
Lmx_data = &B00000000000_1001011001110100100_01             '115 Mhz


Shift Lmx_data , Left , 11
Shiftout Lmx2306_data , Lmx2306_clock , Lmx_data , 1 , 21 , 1000

Set Lmx2306_latch
Waitms 4
Reset Lmx2306_latch

'F-register
'Lmx_data = &B00000000000_0000000000000000000_10             'charge-pump -
Lmx_data = &B00000000000_0000000000000100000_10             'charge-pump +


Shift Lmx_data , Left , 11
Shiftout Lmx2306_data , Lmx2306_clock , Lmx_data , 1 , 21 , 1000

Set Lmx2306_latch
Waitms 4
Reset Lmx2306_latch


End Sub


Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4326
Location: Holland

blank.gif
PostPosted: Thu Jan 05, 2012 10:48 am    Post subject: Reply with quote

Thanks for sharing Ben.
What a difference compared to the PLL i made decades ago using TTL/CMOS chips. And that was just 100 Mhz.

_________________
Best regards,

Mark Alberts
MCS Electronics

http://www.mcselec.com
Back to top
View user's profile Visit poster's website
Stefanus

Bascom Member



Joined: 14 Aug 2012
Posts: 8

PostPosted: Tue Nov 13, 2012 7:18 am    Post subject: Reply with quote

Hello
Please post links LMX2306 calculator.
Thank you
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1178
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Nov 13, 2012 7:51 am    Post subject: software and simulator lmx1601 and lmx2306 Reply with quote

http://www.ti.com/tool/codeloader

have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
Stefanus

Bascom Member



Joined: 14 Aug 2012
Posts: 8

PostPosted: Tue Nov 13, 2012 8:06 am    Post subject: Reply with quote

Hello sir,
i have install codeloader4, but when i select device LMX2306 allways runtime error "13" type mismatch

please help me

Thank you
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1178
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Nov 13, 2012 8:46 am    Post subject: Error 13 Reply with quote

Installed this new codeloader4 and get also the error 13.
Got the older one that is working somewhere so will put that online.

Have fun
Ben Zijlstra

Nothing to do with Bascom-AVR, (but still nice) SDR with a funcube DVB-T USB-stick to get a radio from 24 mHz - 1700 Mhz. AM/FM/LS/US/CW. Stick must contain either the E4000 or the RTL2832U chip. Including NOAA weathermaps. Check youtube.
Back to top
View user's profile Visit poster's website
Stefanus

Bascom Member



Joined: 14 Aug 2012
Posts: 8

PostPosted: Tue Nov 13, 2012 9:02 am    Post subject: Reply with quote

Dear sir,

Do you have older version for codeloader LMX2306? or give me link

Thank you
Back to top
View user's profile
Stefanus

Bascom Member



Joined: 14 Aug 2012
Posts: 8

PostPosted: Tue Nov 13, 2012 9:31 am    Post subject: Reply with quote

Dear, sir
actualy iwant to make RF oscilator 136.000 to 150.000mhz using MAX2606 pll LMX2306, step 100hz, 12,8mhz crystal for LMX2306.

can you give calculation for LMX2306?

Thank you very much
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1178
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Nov 14, 2012 9:03 pm    Post subject: Older version of the CodeLoader software Reply with quote

Here the older Codeloader 4 software. It is freeware.

This one is from the National Semiconductor site, the new one is from the TI.com site and gives an error 13 message.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
Stefanus

Bascom Member



Joined: 14 Aug 2012
Posts: 8

PostPosted: Fri Nov 16, 2012 4:28 am    Post subject: Reply with quote

Dear, Sir
Thank you very much for codeloder4

warm regards
Stefanus
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum