Author Topic: Source Codes Archive of EPE Magazine  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Source Codes Archive of EPE Magazine
« on: November 27, 2022, 09:06:25 pm »
Hello

I read many Everyday Practical Electronics (EPE) magazines.

I finished assembling a "PIC LCF Meter" project (February 2004), looked for a source code file to download, I clicked "Legacy Projects" (http://www.epemag.com/projects-legacy.html), then I clicked "Feb 2004" (http:/www.epemag.com/vault/0204.htm), it was said "Download area" (https://www.epemag.com/vault/downloads.html) that I clicked, and finally, I clicked "www.epemag.net/microcontroller-code.htm", and no ZIP file appeared.

I don't want to waste too much time searching until you find this.

Where do I download this file?

Thank you. Regards.
 
The following users thanked this post: pardo-bsso

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2658
  • Country: fr
    • kripton2035 schematics repository
 
The following users thanked this post: boB

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Re: Source Codes Archive of EPE Magazine
« Reply #2 on: November 28, 2022, 03:30:04 pm »
Thank, krypton2035

I read all the comments on Electro-Tech-Online.com writing that there were several bugs and they fixed their bugs.

It was a good idea, so I didn't know of these bugs.

I believed that this source code CAPMET790.ASM (version 4 or 5) belonged exactly to LCF Meter.

John Becker wrote:
"
Hi All,

These are the results of my findings when using different makes of 4011 in the LCF Meter when in Capacitance mode:

HEF4011BP  no problems
HCF4011BE  parasitic oscillation at about 6MHz
MC14011BCP parasitic oscillation at about 2MHz
RS4011B    parasitic oscillation at about 4MHz

Whilst a 4093 NAND Schmitt trigger can be used for capacitance measuring, the inductance mode cannot work with a Schmitt because of its hysteresis preventing oscillation occurring with LC feedback.

The parasitic oscillations were cured by putting a 68p cap between 4011 pin 5 and 0V (e.g. pin 7).

Further investigation showed that increasing the value of R4 from 1k to 2k helped with those 4011s prone to parasitic oscillation in cap mode. This reduces the initial surge current from 5mA to 2.5mA into/out of C7 at the moment of IC3b's logic change. This beneficial effect was especially noticeable with high values of external capacitor being measured. However, the use of 2k affects the capacitance calculation and so would require a modification to the program to compensate. Those of you with PIC programming facilities can experiment with this. The formula for R4 = 1k as the program stands for calculating C is

C = 1/(pi x 1 x F), where pi is calculated as 22/7

For R4 = 2k, the formula becomes:

C = 1/(pi x 2 x F), therefore pi can now be taken as 44/7

Consequently the cap calc statement at line 580 (line count taken through DOS Edit) currently saying "movlw 22" should be changed to "movlw 44".

It should be noted, though, that increasing R2 to 2K will roughly halve the maximum capacitance that can be measured before the software's time-out routine is triggered. It would also require (ideally) that R3 should be increased to 20k to maintain the 10:1 ratio between R3 and R4.

In conclusion, if your 4011 is giving problems, simply adding a capacitor of about 68p across R3 seems to be the simplest workable option (I would also have tried 47p had I had some free. I did try 10p, but that was insufficient). Another option is to purchase an HEF4011BP as I use without problems in my own unit.

This situation, as I've already said, is highly unexpected, having never experienced it before in the countless times I've used this type of circuit, but in which I guess I have probably always used the HEF device. I can only conclude that there is a degree of hysteresis built into the input of HEF 4011s which the other manufacturers don't include.

An intriguing situation. Thanks to you all for your input.

Another point - a certain Mike here on CZ commented that he had removed a statement from the previously advised revision (done to correct an erratic frequency readout at about 16kHz). He was right to do so (thanks Mike!) - it was a statement I'd forgotten to remove following the addition of a test routine when looking into the erratic problem. I have now deleted it and the amended code has been sent Alan, who will put it onto our site when he gets the chance!

Best wishes

John
"

But there is a difference of 2 RC formulas for π (pi) and 2.2:

          1
fo = -----------   for LCF Meter
      π × R × C

           1
fo = -------------   for Original Oscillator
      2.2 × R × C

Why?

I replaced 4011 by 74HC00 (better than 4011), I recorded the latest version and I tested correctly.

Greetings.
 

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Re: Source Codes Archive of EPE Magazine
« Reply #3 on: November 30, 2022, 12:46:28 pm »
Hello

The Internet Archive saves billions of data all the time.

So there's an old EPE website, it's https://web.archive.org/web/20101230131002/http://homepages.nildram.co.uk/~starbug/epepic.htm

It says "PIC MIRROR PAGE" and has a bunch of ZIP files from 1995 to 2010.

Luck. Greetings.
 

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Re: Source Codes Archive of EPE Magazine
« Reply #4 on: December 05, 2022, 06:14:13 pm »
Hello again

I am interested in add me to my small test bench and thinking in the advantage of several small digital instruments that are very good projects to save space.

Even though I have my old analog oscilloscope that doesn't look very good due to bad conditions, the slow synchronism is difficult to pinpoint the frequency range. But I have never been able to buy a new fast digital oscilloscope because it is expensive.

If you use the fast digital oscilloscope to take photos or video, you can help me with this project or you don't want to. Thanks.

There are three versions of digital frequency meter:

Low-Cost 50 MHz Frequency Meter (EPE Magazine September 2006) with PIC16F84 at 4 MHz, 1x MC10116 and 1x 74HC132.

Low-Cost 50 MHz Frequency Meter Mk.2 (EPE Magazine November 2008) with PIC16F628A at 4 MHz, 1x MC10116 and 1x 74HC132.

Compact 8-Digit Frequency Meter (EPE Magazine September 2017) with PIC16F88 at 4 MHz, 3x ADA4899 and 1x 74LVC2G132.

However, I find it difficult to get an old MC10116 IC because it appears "obsolete", and the problem is also that the ECL 10K family consumes much power.

My solution: remove this MC10116 and just connect it to the transistor?

I also don't have any ADA4899 nor 74LVC2G132. I always have several 74HC.

The HCMOS gates family datasheet shows input rise and fall times which are typical 8ns at 5V and 6ns at 6V.

In the case, I assume that each edge of the input signal delays 6-8 ns. It delays each rising edge at 6-8 ns and each falling edge at 6-8 ns. For double the pulse delay, it's 12-16 ns, I calculate 1/12 ns = 83.33 MHz (typical 80 MHz) and 1/16 ns = 62.5 MHz (typical 60 MHz). Does it mean that the symmetrical pulse period of 12-16 ns can disappear completely?

Then, for triple the pulse delay, it's 18-24 ns, I calculate 1/18 ns = 55.56 MHz (typical 55 MHz) and 1/24 ns = 41.67 MHz (typical 40 MHz). Because this datasheet does not show any maximum frequency.

My question is do you know what maximum frequency HCMOS reaches. Up to 40, 50, 60 or 80 MHz?

In another case, I go up to 6V from the regulator for 6 ns and I take into account that the output of the HCMOS gate at 6V to the input of the PIC at 5V so that it burns?

So, the conversion connects a resistor or double NPN/PNP transistor to 5V to the PIC input. But I don't know how the conversion is done.

Hope it solution a new simple conversion.

Before I make my new digital frequency counter design with PIC16F84 (in this case MPLAB ASM will calculate the number of bytes to record it) and 74HC132. I will finish it soon.

I will acknowledge some bugs that will be corrected.

See you.
 

Offline ozcar

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: au
Re: Source Codes Archive of EPE Magazine
« Reply #5 on: December 05, 2022, 07:26:59 pm »
Many of the EPE projects are basically re-published Silicon Chip magazine projects, and hence you might find software for them here:

https://www.siliconchip.com.au/Shop/6
 

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Re: Source Codes Archive of EPE Magazine
« Reply #6 on: December 12, 2022, 09:24:01 pm »
Many of the EPE projects are basically re-published Silicon Chip magazine projects, and hence you might find software for them here:

https://www.siliconchip.com.au/Shop/6

Thanks, ozsar

I didn't know the Silicon Chip magazine (Australia) and I didn't know that EPE copied Silicon Chip's projects.

If you criticize him, I don't care.

I have bought the famous magazines: Radio-Electronics (USA), Popular Electronics (USA), Electronics (USA), Circuit Cellar (USA), Elektor (Germany/USA) and Everyday Practical Electronics (United Kingdom).
 

Offline MahechiukTopic starter

  • Contributor
  • Posts: 17
  • Country: ar
Re: Source Codes Archive of EPE Magazine
« Reply #7 on: December 13, 2022, 04:31:56 pm »
A long busy time for my modified and implemented design of 3 EPE's projects. I use a PIC16F84A or PIC16F628A with the 3 .ASM programs that also they me complice by the number of program bytes.

I read several comments from other sites and several articles by the authors that described that they have implemented several versions of "Frequency Counter". And I downloaded the old articles in PDF.

Several authors commented on the implementation:

Quote from: Various authors
"I built my first prototype that worked well up to 30 or 40 MHz, with reduced sensitivity up to 50 MHz and another try worked up to 60 MHz but this has exceeded the PIC timing specifications."

"Typical examples of this Frequency Meter should be OK for signals up to 55MHz or more. In fact, our prototype meter is good for 60MHz but with falling sensitivity above 50MHz."

"This project proposes a simple frequency reader specifically designed for QRP rigs, also if you may employ it also as a workbench instrument. In fact it exhibits several very interesting features, like a maximum working frequency above 40 MHz, a 10 Hz resolution, a low consumption (15 mA) and a very simple assembly. Moreover it is possible to program an IF value and mode simply by means of two push buttons."

"The basic idea comes from the AN592 Microchip application note: "Frequency Counter Using PIC16C5X", where you may find a simple software which implements a frequency counter using a PIC microcontroller. I also read a couple of interesting articles concerning this matter on "QST", and so I was encouraged to go ahead with the project. I wrote a specifically designed software to improve the counter resolution, to handle the IF mode and value by means of an operating menu, to decode and edit the read frequency on an LCD display. The result was a simple and effective device, equipped with a free software available to those who could be interested."

"The PIC implements a 32 bit counter, partly in internal hardware and partly in software. Counting is enabled by turning off the internal pull-down transistor for "exactly" 0.4 second. At the end of this time, the PIC divides the count by 4, then adds or subtracts the appropriate IF frequency to get the actual frequency. The resulting count is converted to printable characters and delivered to the display."

"The counter works using the 8 bits internal counter (TMR0) and the 8 bits prescaler of the PIC. The prescaler cannot be read directly by means of the PIC basic instructions, therefore it is necessary to employ a trick in the software, the whole process is well described in the Microchip application note where you may find further details. To improve the resolution I managed a third 8 bits counter, which is increased by the program when a timer overflow is detected. So it was possible to improve the overall counters capacity to 24 bits. The counting period is obtained by means of some accurate delay routines, tuned precisely using my workbench instrumentation."

Lastly, there are 2 old articles called "Frequency Counter, EECE 283 by Raveen Kumaran" and "The μ-counter, a PIC Based Programmable Frequency Meter by Francesco Morgantini". I read both interesting articles with the show of circuits, calculations, oscilloscopes and .ASM source codes.

For me it is easy to believe in the comments of the authors but I am not the author of any project and I do not like to steal nor fabricate any project that never belongs to me because I am electronics and Microchip hobbyist technician.

I don't believe in advanced technology how far away I am. So I have NO "PROFESSIONAL EXPERIENCE". I don't like to criticize anyone for being nice.

I have a knowledge of digital electronics, PIC microcontroller and 4 or 5 programming languages.

If I have 1N4148, MPF102 and BF245, I need to know about their replacements for BAW62, 2N5484 and 2N5485.

If you are an engineer or a teacher, you know everything about everyone.

I still don't have any answers. I would like to know your answer or opinion.

Thanks.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf