Pira.cz Technical Forum

General Category    (This section is not monitored) => FM Transmitters, RF Amplifiers => Topic started by: DJ Adam Eve on February 17, 2012, 10:25:18 am

Title: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 17, 2012, 10:25:18 am
Hello. I know Jan no longer really supports the saa1057 pll design posted on pira.cx, however. It is a very popular design and a lot of people have reposted it, and put links to it on their own sites.

As Jan already said on the old forum the saa is a pretty old chip that was designed originally for use with receivers not transmitters. However the pll works pretty well and locks on fast, it does allow (with a bit of modding) for you to use out of lock power down too. The code Jan wrote is fairly simple (apparently), but works well.
 
The problems I am having (others are to) is with there being a 1khz tone superimposed over the signal (clearly audible). I have used an opamp voltage follower at the output still have the noise. I have played about a little with the decoupling of the input and output amplifiers, I have also added 1n caps to the bus lines. Still I have the noise.

Jan: please help! Reading the datasheet of the saa1057 I have a few questions; do the data lines have constant activity on them? Could that be anything to do with it? I also notice you have to configure the pll to be dual speed, and the input/ output amps are configurable, could this beb anything to do with the problems? Where do you think the noise originates? Any help would be great.

Also I have done another pcb layout without the wire links you used, can I email it to you please?
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 18, 2012, 09:25:10 am
OK, so I used my Oscilloscope and located the only sources of anything like 1khz on the pll, and think I have located it in the sample and hold circuits r & c decoupling pins.

I have started experiments with the values of components there. I tested last night and saw some improvements.

Any thoughts anyone?
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 20, 2012, 01:27:01 pm
OK... So i am making some very good progress with the saa057 PLL... I AM DETERMINED to get this working well and i have 100% confidence that it is possible.

I now need some help REALLY badly please; i don't do much code writing/programming (it's next on my 'to do' list). I have been looking at the firmware that Jan has provided for this circuit and notice it is version 5, is there any chance of viewing the change you made please Jan?

Also i want to locate within the code the data bits for configuration words A & B. I have been looking at the assembly file, is this the config bits?:


START   CLRWDT
        CLRF    PORTA
        CLRF    COUNT
        MOVLW   B'00100000'       
        MOVWF   WORKA
        MOVLW   B'00111010'
        MOVWF   WORKB

If it is i can't really see wahts going on beacsue the word should be 16 bit unless the last bit is set '0' (don't care), which it is, but the first bitshould be '1' shouldn't it? And shouldn't the second also be '1' to configure for FM?

Please, any help would be great. The .ASM file is attached in case anyone fancies a look and hasn't got a copy.
Title: Re: Dual speed pll using saa1057
Post by: Jan on February 20, 2012, 05:27:05 pm
It's about 15 years back when this piece of code has been written. Don't ask me for exact details as I really don't remember  ;D

The configuration words A and B are filled bit by bit using the instructions numbered from ;0 to ;16
The configuration words are present twice in the code as they differ in charge pump current so higher current is used for first tuning and lower current is used for keeping the frequency tuned - that's the dual speed  8)
WORKA and WORKB holds a 16bit constant that is added to the value read from the DIP switches so the final frequency is computed.
There's also some repeated upload of the frequency in about 30 minutes intervals due to safety reasons and reliability improvement.

If you have some PCB design for this PLL, please create also a black&white output that can be used directly for home PCB manufacturing. If you convert that images into gif or png format, they will be small in size so you'll be able to post them to this forum.

The SAA1057 PLL has a disadvantage in the internal phase comparator frequency which is 1 kHz. Unfortunatelly that frequency can be easily audible as ears are very sensitive to 1 kHz. This should not occur in perfect design but often some 1 kHz residues may be present in the audio, especially due to ground loops and RF field going into the PLL circuit. There never has been a simple method, how to solve it. It was about a luck a bit, and hours of experimenting with wires, rf part and PLL block placement.
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 21, 2012, 12:30:04 pm
Hi Jan,

Thanks for the advice, i am now looking at the code, and i see the changes in charge pump current, that is what i was going to look at!

It actually appears that the config. (word B) goes to the PLL three times throughout the routine, is that right? The current seems to be: 2.3 @ start up then 0.07 for the second two cycles. I have noticed though that SLA load match is set 'asynchronuos' then 'synchronous' then 'asyncronous', is that relevant?

I put a Opamp voltage follower on the output of the PLL, but unfortunately it also replicates the AC part of the signal (the 1KHz tone).

Can you please tell me how you arrived at the values for the input/output of the output amplifier (the 4k7,10u tan, 10k and 0.47u)? In the datasheet it says 'Depends on tuner diode characteristics': Lots of the other designs out there have the same values, did you just use common values, or has everyone copied from you? The reason i ask is that I am using BB909 diodes and i was thinking about changing the output to form a low pass filter in an attempt to just pass the DC and filter off the HF AC tone, maybe a cutoff around 100hz? I have noticed that you can change the audible tone by playing with these values, i would like to get rid of it.

I have had my oscillscope on pins 1,2,3 of the device and see a clean wave at 1, then a distorted wave and highly distorted wave at 2 and 3. I have had some success playing around at TR, TCA and TCB; reducing the value of TR and decoupling TCB to gnd via a low value resistor, this seems to reduce the phase noise a bit.

I don't think i have grounding/RF issues becasue i have payed around with layouts so much, i have a solid ground plane, the DC is fed through chokes and the supply is smooth and well decoupled.

I really appriciate your help and if i find the answers to this little problem i will let you know so you can post them (if you would like to).

Thanks :D
Title: Alternative PCB layout for Dual speed pll using saa1057
Post by: DJ Adam Eve on February 21, 2012, 12:37:31 pm
I have decide to upload my own PCB layout for the PLL that Pira (Jan) designed.

This first post includes the PCB lauyout including component IDs.

you will notice i have included an extra decoupling capacitor at the DC input, as well as the 47k optional resistor at the PLL output.

I have dropped the wire links Jan used and allowed for pin connections should you want to use them.

The PCB is 45x50mm (HxW)

You will need to use my own look up chart for the frequency becasue the pin layout has changed, apart from that the design is the property of Pira.cz and should not be used comemrcially without permission.

For the hex, PCB pattern and frequency look up see next few posts.

NOTE: THE PCB PATTEREN IS REVERSED FOR TONER TRANSFER METHOD OF PCB FABRICATION, FOR UV EXPOSURE METHOD MAKE SURE THAT THE PATTERN IS ORIENTATED CORRECTLY (THE TEXT SHOULD READ CORRECTLY ON THE PCB ITSELF)
Title: PCB fo Dual speed pll using saa1057
Post by: DJ Adam Eve on February 21, 2012, 12:39:52 pm
PCB file

45x50mm (HxW)
Title: Frequncy look up and Hex for Dual speed pll using saa1057
Post by: DJ Adam Eve on February 21, 2012, 12:42:11 pm
Here is the (pira) hex code and my own frequency look up.

You MUST use my look up if you used my layout.

GOOD LUCK!
Title: Re: Dual speed pll using saa1057
Post by: Jan on February 21, 2012, 09:21:40 pm
As I remember the SAA1057 datasheet was extremely miserable. Moreover there are some differences between SAA1057 produced by Phillips and ST. That's probably the reason why the words are sent more times to the IC: 1) there's no information at all how to do it, 2) this has worked.
How the part values have been found, I really don't know today.
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 22, 2012, 12:02:34 am
Oh yeah I have confidence that this pll can work well with your code. Its just a case of figuring out how to filter the output without loading it too much, either that or isolating the pll completely. I will keep you informed. Thanks
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on February 27, 2012, 12:16:02 pm
OK... Made some good progress over the weekend.... I probably should state (as i haven't before) that i am using this with my own oscillator/buffer design, and the 2n4427 output design by BW.

I have noticed that Jan fed the PLL signal into the collector in his design, i'm mixing the audio and PLL signal at the VCD and feeding it into the base of an MPSH10 oscillator (NOT the BW type). It may be that this method introduces even MORE noise than Jan's design.

Anyone following this thread please note; there are MUCH better PLL chips out there, the 1057 was designed for 80's fm receivers, look at the date on the datasheet!! Jan himself offers good code and support for a TSA5511 design (lift  it from his 5w tx design to use with other exciters), it also offers momentary push button tuning and LCD display. THere are a few designs for the SAA1057 which also have push button tuning and LCD (Freedo's/Salt and Light/15w multiplex), but ALL will suffer from the same noise problem. There are a couple of Spanish designs which use Jan's PLL and the RDVV oscillator/output which look like they have made some good progress toward minimising the sound by removing the decoupling cap from TCB, however this may lead to stability problems becasue of stray capacitance in the sample and hold circuit.

The secret is definately in the way the control voltage is filtered and used. I am using a voltage follower to isolate the control voltage from the PLL chip itself, this allows me much more scope to play with filter values. I have also changed Jan's code to up the output amp current, something which i THINK Jan reduced in an effort to minimise the noise and current consumption.

I am getting there... slowly!

I will upload pictures of my prototype exciter later.
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on March 01, 2012, 02:00:53 pm
OK, If you are at all interested in using my layout you might wnat to wait for a couple of days and i will upload a new image with my additions (which  hopefully reduce the noise to an acceptable level). Failing  that you can always surface mount extra comonents (there's only 3).
Title: FREQUENCY LOOK UP CHART FOR DIP SWITCH SETTINGS
Post by: DJ Adam Eve on March 01, 2012, 02:04:09 pm
Please see attache an excel spreadsheet used for looking up frequency using my layout... Pretty straight forward: Either look up frequency on chart OR select from drop down menau and switch setting automatically generated in box on right.

If using open office not that drop down MIGHT not work, in which case simply enter the desired frequency in box.
Title: Re: Dual speed pll using saa1057
Post by: Eladi on April 06, 2012, 04:26:47 am

 Perhaps it would be a good idea insert a choke (low pass audio filter let only pass frequencies below 50 hz.) in vco voltage control that stops the 1khz noise.

 We would have in this way the vco voltage control that don't change so quickly for be interfered for the bf choke.

 It's only an idea don't checked for me. I like the simplicity of this pll design, specially with the programmed chip because unfortunately there is many circuits diagrams publicated but most of them don't publicates the PICs code.

 Sorry for my poor english. Best Regards.
Title: Re: Dual speed pll using saa1057
Post by: Will on April 16, 2012, 12:47:30 pm
Hello, I've just want to say that I've never had this problem your getting, I know that does help much, But I remember the First one I built did have a similar problem but this was due to the coupling capacitor  or C5 on the schematic being either not present to to low.  You can use greater value which will suppress this but I would recommend changing your varicap diodes to ones that have a smaller Capacitor scale i.e 1-10pf instead ones that are 1-40pf for example.

I dont now how you building these either, If your etched your own PCB or even the Pira template I recommend building these as a ( Birds nest or Spider wiring as some call it ) on copper clad board with a good solid ground plane with the components floating about 6mm  above the ground plane. this is a must for me as I build 150watt rigs using the SAA1057 in the same way as I described with no problems at all.

If you want help just email me on Junction@gmx.co.uk I'm more than happy to help and show you pictures of one I've built this way.

Regards

Will
Title: Re: Dual speed pll using saa1057
Post by: shiva on May 05, 2012, 05:13:26 am
Hi,
i'm new here (and in the rf world)
i just read this thread.
just noticed that this pll design produced 1khz noise.
hope you guys find a way to reduce the noise.

i've bought 10 pcs of saa1057 online and its on the way. planning to build AM PLL for my sdr radio.
i got the schematic from fred's web. it said covers 512KHz upto 32MHz.
that will do good.
anyone have ever bulid this project?
when i'm finished building my MW PLL i'll post it here


regards,
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on May 08, 2012, 05:18:29 pm

 Perhaps it would be a good idea insert a choke (low pass audio filter let only pass frequencies below 50 hz.) in vco voltage control that stops the 1khz noise.

 We would have in this way the vco voltage control that don't change so quickly for be interfered for the bf choke.

 It's only an idea don't checked for me. I like the simplicity of this pll design, specially with the programmed chip because unfortunately there is many circuits diagrams publicated but most of them don't publicates the PICs code.

 Sorry for my poor english. Best Regards.

Yeah that's cool, thank for that reply. You may notice that else where in the forums is a post from me about this exact thing. Anyone else thinking about this fix would need to take in  to consideration the effect any capacitive element may have on the over all stability of the PLL (note the comment in Pira's original posting about not over loading the ouput with too much capacitance).

I have managed a work around for this.

ANyone thinking about this solution may consider a voltage follower at the PLL output.
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on May 08, 2012, 05:38:27 pm
Hello, I've just want to say that I've never had this problem your getting, I know that does help much, But I remember the First one I built did have a similar problem but this was due to the coupling capacitor  or C5 on the schematic being either not present to to low.  You can use greater value which will suppress this but I would recommend changing your varicap diodes to ones that have a smaller Capacitor scale i.e 1-10pf instead ones that are 1-40pf for example.

I dont now how you building these either, If your etched your own PCB or even the Pira template I recommend building these as a ( Birds nest or Spider wiring as some call it ) on copper clad board with a good solid ground plane with the components floating about 6mm  above the ground plane. this is a must for me as I build 150watt rigs using the SAA1057 in the same way as I described with no problems at all.

If you want help just email me on Junction@gmx.co.uk I'm more than happy to help and show you pictures of one I've built this way.

Regards

Will

I'm glad you never had this issue, but LOTS of people have, including the chip manufacturer Phillips. If you search hard enough there is an AN out ther regarding the possibility of phase noise entering the PLL charge pump. THis is due to the internal architecture of the chip itself.

Reducing the current has helped a little, as did playing around with the sample and hold circuitary.

Oscillator type also has a massive bearing on outcome, maybe you have just luckily ended up with the right oscillator?!

Changing layout has little effect, the noise is NOT picked up through tracks, or components but rather originate INSIDE THE PLL chip itself.

As for spider wiring (Ugly bugging) a PLL circuit: I wouldn't recommend it if avoidable, certainly not as a way of improving performance over a proper PCB! It inherantly requires longer leads than through hole, therefor results are a lot less predictable in RF circuits. My alternative layout is on here somewhere, and that was the start of me getting this one working.

As for the varicaps: I couldn't comment. But the issue isn't with tuning, or with stability. It's phase noise, so i don't really see that a smaller varicap would help, but i will look into it (my understanding was that the diode's capacitance was dependant on the reverse voltage applied to it, therefor a BB809 and a BB109, or BB909 would all demonstrate a tuning capacitance of {for example} 10pf, just at different points on a voltage scale).


Thanks for your reply.
AE
Title: Re: Dual speed pll using saa1057
Post by: shiva on May 18, 2012, 04:27:41 pm
i have build the pll circuit.
the freq wont change.
i've try to change the freq by pushing the up/down button but it just change a bit.
the output rf is about 1800khz and stays there.

any idea?
Title: Re: Dual speed pll using saa1057
Post by: DJ Adam Eve on May 18, 2012, 05:50:58 pm
Right, not sure what you mean... This design has no up and down buttons, it has DIP switches? Also this circuit puts out no rf at all, its a pll. The saa1057 can go down to 1.8mhz, but not with this firmware, thats designed to FM broadcast band. Are you using AM or fm?

If this isn't a design related to the pll perhaps you should start another thread?

Good luck!
Title: Re: Dual speed pll using saa1057
Post by: duivenmelker on October 16, 2012, 01:17:14 am
(http://[img]http://www.3-mtr.info/shareware/Transmitter%20-%20DZ%208410/FIG-001.GIF)[/img]

i have built many transmitters using this oscillator using a BF199 with a wideband varicap diode and without the tuning capacitor and the original design from pira. They all worked very well without 1 khz tone or instability. The pll could lock anything from 88 to 108 MHz without manually tuning.

The secret is to set the pll to 88 MHz and bend your oscillator coil in a way the tuning voltage is very low (the lower the better) using a volt meter over the pll's tuning output for measurement. Now, the pll is able to lock any frequency up to 108 MHz. When you don't set your oscillator up like this, the pll might face lack of tuning capacity and therefor failure of locking to the desired frequency.
Title: Re: Dual speed pll using saa1057
Post by: duivenmelker on October 16, 2012, 01:17:59 am
(http://www.3-mtr.info/shareware/Transmitter%20-%20DZ%208410/FIG-001.GIF)
Title: Re: Dual speed pll using saa1057
Post by: duivenmelker on October 16, 2012, 01:28:37 am
p.s. perhaps the varicap should get the highest possible voltage on 88 MHz. It was a long time ago i built transmitters and don't know for sure if varicap diodes increase of decrease in capacity when voltage is increased. However this is easily figured out by the given fact that at a lower frequency a higher tuning capacity is needed, so when comparing tuning voltages both on a high and on a low frequency will let you know how the varicap is behaving.

the amplifier stages in this schematic i never used, always use no-tune wideband stages. taking the pll's rf input from after the first buffer using a 10p capacitor for coupling. as a buffer i could recommend the bfr91 using the following diagram.

http://www.3-mtr.info/sales/Amplifier%20NoTune%20Profline%20300mW/Amplfier%2010mWatt%20-%20300mWatt%20rev%20A%20-%2028-06-2006.pdf (http://www.3-mtr.info/sales/Amplifier%20NoTune%20Profline%20300mW/Amplfier%2010mWatt%20-%20300mWatt%20rev%20A%20-%2028-06-2006.pdf)
Title: Re: Dual speed pll using saa1057
Post by: duivenmelker on October 16, 2012, 01:48:47 am
here the transmitter as proven to work with the pira pll.
note: the 40p tuning capacitor may be removed when following the method as desribed in my former post.

(http://www.freebits.nl/images/845transmitter.jpg)