How to Convert WordStar Files to Plain Text (ASCII) and Microsoft Word

You have a bunch of old WordStar files from the 1980s. When you open one of these files in NotePad or Microsoft Word or some other modern word processing program, you see lot of gibberish:

  ma i rubbe hosin dow hi a 1 noon 
  shor broo
i th othe hand.

Typical Gibberish-Greek Contained in 1980s-era WordStar Files


Skip the Story and Go to the Instructions

You search the web for a simple and free solution to your problem of converting WordStar files to plain text files. You read the Wikipedia article on WordStar. You try the conversion program recommended by the UCLA Knowledge Base. You try add-ons converters to Microsoft Word. But nothing works.

Finally, you come across this WordStar discussion page on archiveteam.org:

^hot^ Download Sg3525 Library For Proteus -

How to Download and Install the SG3525 Library for Proteus: A Complete Guide

Meta Description: Struggling to find the SG3525 PWM controller in Proteus? Learn how to download, install, and use the SG3525 library for Proteus. Step-by-step guide for simulation of inverters and SMPS.

Alternative: Using the TL494 or Building Your Own

If you cannot get the SG3525 library to work after several attempts, you have alternatives:

  1. Use TL494 Library: The TL494 is a competitor PWM IC. It works almost identically for push-pull converters. The installation process is the same.
  2. Use Arduino PWM: For educational purposes, simulate an Arduino generating a 50kHz PWM signal.
  3. Build a Behavioral Model: Use Proteus’s "ABM" (Analog Behavioral Modeling) sources with a comparator and ramp generator to mimic the SG3525.

Installation (assumes Proteus 8.x / 8.14+; adapt paths if different)

  1. Close Proteus if it’s open.
  2. Unpack the downloaded archive into a safe folder.
  3. Locate the library files. Common file types:
    • .IDX, .LIB, .LBR (Proteus library files)
    • .TPP/.TPL templates, .SUBCKT/.MODEL SPICE netlists
    • .HEX or model files for advanced components
  4. Copy the library (.LBR or .LIB/.IDX pair) to Proteus’s library folder:
    • Typical Windows path: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY\
    • Or Proteus installation folder\LIBRARY\
  5. If the library includes a SPICE subcircuit (.SUBCKT/.MODEL), place it where Proteus can access it (same Library folder or Proteus SPICE models folder). Some libraries instruct adding references in Proteus’s model configuration — follow included README.
  6. Start Proteus and open “Pick Devices” (P) dialog. In search, type SG3525. If it appears, add it to your schematic.
  7. If not found, use “Library Manager” or “Library > Install” in Proteus (depending on version) and point to the .LBR file you copied.
  8. Place the SG3525 part, wire pins according to the datasheet, and attach power rails and test circuits (oscillator resistors, timing capacitor, outputs to MOSFETs or logic probes).
  9. Run a simulation. Verify expected behavior: oscillator frequency, PWM duty variation with control voltage, dead time and complementary outputs if provided.

How to Download and Install the SG3525 Library for Proteus: A Complete Guide

Option 2: Use an Alternative IC

If immediate simulation is critical, consider using the SG3525A, UC3525, or KA3525. Some Proteus versions include these under different names. Search for PWM controller in the component library.


Closing

Follow the installation steps and validation checklist to integrate SG3525 into Proteus and confirm correct PWM behavior before building hardware.

Searching for and installing the SG3525 PWM Controller library for Proteus involves finding the correct model files and manually placing them in your software's library folder. 1. Where to Find the SG3525 Library

Since the SG3525 is not always included in the default Proteus library, you can download community-created models from several engineering forums and repositories: : Look for repositories like the SG3525 PWM module simulation

which often includes the necessary library files (.LIB and .IDX). Engineering Forums : Active discussions and file shares can be found on the All About Circuits forum

, where users frequently post updated models for power electronics. Component Sites : You can also use to search for and import specific part files in 2. How to Install the Library in Proteus Once you have downloaded the files (often contained in a archive), follow these steps to add them to your software: Locate the Library Folder

: Navigate to the Proteus installation directory on your computer. This is typically found at:

C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY

Note: If you cannot see the "ProgramData" folder, you may need to enable "Show hidden files" in your Windows folder options. Copy and Paste : Copy the downloaded files and paste them into this Restart Proteus

: For the software to recognize the new components, you must close and restart Proteus. Search for Component : Open "Schematic Capture," click on the download sg3525 library for proteus

(Pick Devices) button, and search for "SG3525." It should now appear in the list. 3. Quick Reference for SG3525 Simulation NirisonFabrice/SG3525-PWM-module - GitHub

A SG3525 PWM module simulation and PCB design using Proteus.

Downloading and Installing SG3525 Library for Proteus: A Step-by-Step Guide

Are you looking to simulate and design power electronics circuits using Proteus? Do you need to work with the SG3525 PWM controller IC in your projects? If so, you'll require the SG3525 library for Proteus. In this article, we'll walk you through the process of downloading and installing the SG3525 library for Proteus, enabling you to effectively design and simulate your power electronics circuits.

What is SG3525?

The SG3525 is a popular PWM (Pulse Width Modulation) controller IC used in power electronics applications, such as DC-DC converters, motor control, and power supplies. It's a versatile IC that offers a range of features, including adjustable frequency, adjustable duty cycle, and built-in protection mechanisms.

What is Proteus?

Proteus is a powerful simulation software used for designing and testing electronic circuits. It's widely used by engineers, students, and hobbyists for simulating and analyzing electronic circuits, including power electronics circuits.

Why Do You Need the SG3525 Library for Proteus?

To simulate and design power electronics circuits using Proteus, you need to have the relevant libraries installed, including the SG3525 library. The library provides the necessary models and components for simulating the SG3525 IC in your Proteus projects.

Downloading the SG3525 Library for Proteus How to Download and Install the SG3525 Library

To download the SG3525 library for Proteus, follow these steps:

  1. Visit the Proteus Library Website: Go to the official Proteus library website or a reputable third-party website that offers Proteus libraries.
  2. Search for SG3525 Library: Search for the SG3525 library in the Proteus library website.
  3. Download the Library: Click on the download link to download the SG3525 library file (usually in .LIB or .ZIP format).

Installing the SG3525 Library for Proteus

Once you've downloaded the SG3525 library, follow these steps to install it:

  1. Extract the Library File: Extract the downloaded library file to a folder on your computer.
  2. Open Proteus: Launch Proteus and open the ISIS (Intelligent Schematic Input System) window.
  3. Access Library Manager: Click on Tools > Library Manager in the ISIS window.
  4. Install Library: In the Library Manager window, click on Install Library and navigate to the folder where you extracted the SG3525 library file.
  5. Select Library: Select the SG3525 library file and click Open to install it.

Verifying the SG3525 Library Installation

To verify that the SG3525 library has been successfully installed, follow these steps:

  1. Open ISIS: Open the ISIS window in Proteus.
  2. Search for SG3525: Type SG3525 in the component search bar.
  3. Check Library: If the SG3525 library has been installed correctly, you should see the SG3525 component listed in the search results.

Conclusion

In this article, we've shown you how to download and install the SG3525 library for Proteus. With the SG3525 library installed, you can now design and simulate power electronics circuits using Proteus, incorporating the SG3525 PWM controller IC. If you encounter any issues during the installation process, refer to the Proteus documentation or seek support from the library provider. Happy simulating!

Downloading and installing the SG3525 library for Proteus allows you to simulate high-frequency PWM control for power electronics, such as inverters and DC-DC converters. While Proteus does not always include the SG3525 by default, you can find community-contributed models and symbols from several reputable sources. Where to Download the SG3525 Library

SnapMagic (formerly SnapEDA): Provides the SG3525AN Symbol and Footprint specifically for Proteus, as well as other EDA tools like Altium and Eagle.

GitHub (NirisonFabrice): Features a dedicated PWM module project that includes Proteus-ready schematics and simulation files.

GitHub (gutierrezps): A personal collection of Proteus Design Suite libraries that may contain various power IC models. How to Install the Library in Proteus Use TL494 Library: The TL494 is a competitor PWM IC

Once you have downloaded the .LIB and .IDX files, follow these steps to integrate them:

Locate the Library Folder: Navigate to your Proteus installation directory.

Common path: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY.

If you are designing an inverter, a DC-DC converter, or a switch-mode power supply (SMPS), the Go to product viewer dialog for this item.

is likely your go-to PWM controller. However, Proteus often lacks this specific model in its default database. This guide will show you exactly where to find a working

model and how to add it to your Proteus environment so you can start simulating. 1. Where to Download the SG3525 Library

isn’t always included in standard Proteus versions, you’ll need to source it from verified community repositories.

GitHub Repositories: Engineers often share validated PWM modules and PCB designs. You can find simulation files on repositories like NirisonFabrice's SG3525-PWM-module.

Electronics Forums: Sites like Edaboard frequently have members who upload custom .LIB and .IDX files for missing components.

Component Search Engines: Tools like the Component Search Engine or SnapEDA provide free, high-quality CAD models and footprints specifically for Proteus. 2. Step-by-Step Installation Guide

Once you have downloaded the library files (usually in a .zip or .rar format), follow these steps to install them: Proteus Loader Download - Component Search Engine

[Optional geek explanation: WordStar encodes the last character of each word by setting the high-order bit of the binary character representation. The program simply resets the high-order bit of all characters in the file, changing the goofy characters into normal ones.]

You install Perl on your computer and you try out the script. It works! The program reads the WordStar file named in.ws, converts the Greek-like characters to ordinary text, and writes out a new file, out.txt in ordinary plain text format, which you can read into NotePad, Microsoft Word, or practically any modern program.

But you have to modify the file names inside the script (in.ws and out.txt) for each file conversion. You want to automate the process of converting lots of WordStar files. But you don't know anything about Perl programming. You ask your office co-worker who knows Perl to modify the script to make it do what you want. Here's what you get:

opendir my $dir, "." or die "Cannot open directory: $!";
my @files = readdir $dir;
closedir $dir;

foreach $file (@files) {
    unless (($file =~ /^[A-Za-z0-9_\s\-]*$/) && (-f $file)) {
        print "  Skipped $file\n";
        next;
    }
    open OUTFILE, ">$file.txt";
    open INFILE, "<$file";
    while (<INFILE>)
    {
        tr [\200-\377] [\000-\177];
        print OUTFILE $_;
    }
    close INFILE;
    close OUTFILE;
    print "  Read $file, wrote $file.txt ...\n";
}
sleep (5);


The program looks at all the files in the same directory where the program resides. If a file name consists of only letters, numerals, underscores, hyphens, and space characters, it assumes that it's a WordStar file; it converts the file to plain text and writes it out as a new file with ".txt" appended to the file name. It leaves the original WordStar file unchanged.

The program ignores any file whose name contains any other characters, such as the period character in an extension like .doc or .jpg. If you have a WordStar file named with an extension such as MYPAPER.783, you'll first need to rename it (or copy it to a new file) and use a new name such as MYPAPER783 or MYPAPER 783 (with a space replacing the dot). 



Instructions for Converting WordStar Files to Text

First of all, you need to have the Perl computer language installed on your computer. If you're working on a Mac or Unix/Linux system, you're in luck because Perl comes pre-installed. (If you're using Linux, see Note 4 below.)

If you're working on Windows, you can download and install Perl for free from perl.org:

Perl - Download website: https://www.perl.org/get.html      (Not necessary for Mac or Unix/Linux)

Scroll down to find your computer operating system. For Windows, you're offered different versions of Perl. I used the first one, ActiveState Perl. Click the download button and follow the instructions to download and install Perl.

After Perl is installed, you need to put a small program called convert.pl in the directory containing your old WordStar file. You can either download the from this website or you can create the file yourself (open a text editor such as Notepad, copy the text below, paste it into your text editor, and save the file under the name convert.pl). 

To download from this website:

1. Click the following download link: convert.txt
2. Save the file
3. Rename the file to "convert.pl" (change the "txt" to "pl" in the file name)
4. Copy the file to each directory containing WordStar files

OR use a text editor to create a text file named convert.pl containing the following text:

opendir my $dir, "." or die "Cannot open directory: $!";
my @files = readdir $dir;
closedir $dir;

foreach $file (@files) {
    unless (($file =~ /^[A-Za-z0-9_\s\-]*$/) && (-f $file)) {
        print "  Skipped $file\n";
        next;
    }
    open OUTFILE, ">$file.txt";
    open INFILE, "<$file";
    while (<INFILE>)
    {
        tr [\200-\377] [\000-\177];
        print OUTFILE $_;
    }
    close INFILE;
    close OUTFILE;
    print "  Read $file, wrote $file.txt ...\n";
}
sleep (5);


In a file browser, go to the WordStar directory and run the convert.pl program (in Windows, double-click the icon in the folder). Voila! The program converts your WordStar files to plain text and writes them out as new files in the same directory, with ".txt" appended to the file name. You can open these files in Microsoft Word and most other programs.

This is what you can expect to see when you run the convert.pl program:

WordStar to Text Conversion Directory   WordStar to Text Conversion Report

Important Notes

Note 1: The program only converts files whose names contain only letters, numbers, underscores, hyphens, and space characters. If you have a WordStar file named with an extension such as MYPAPER.783, you'll first need to rename it or copy it to a new file and choose a new name without using the dot character, for example, MYPAPER783 or MYPAPER 783 (with a space replacing the dot).

Note 2: The convert.pl program leaves your original WordStar files unchanged. However, when it writes out the filename.txt file, it doesn't check to see if there's an existing file of the same name. It simply overwrites the existing file. Before you run the convert.pl program, make sure you don't have any existing .txt files that you would mind losing.

Note 3: On my Windows 10 PC, the first time I double-clicked the convert.pl icon, Windows asked me which program I wanted to use to open the file, and offered several choices. I clicked on "Perl Command Line Interpreter", and then the program ran in the wrong directory (the Perl installation directory). This had no effect, because it simply skipped all the files (they all had file name extensions). After that, double-clicking the icon always worked on the local directory, as it should.

Note 4: For Linux (operating system) users, I got the following note from a reader.

The Perl script doesn't run as-is on Unix-like systems when one double-clicks on the icon.  It's an easy fix, though. Add this line to the top of the file:

#!/usr/bin/perl

Perl treats it as a comment and ignores it, but the Bash shell in Linux sees the #! in the first two bytes and then knows that the path to the program that will run the executable script follows on the same line.  Microsoft Windows does it by filename extension, but Unix/Linux doesn't give a whit about filename extensions when it comes to deciding what interpreter to use: It's all in the text that follows the "hash-bang" (#!).

If the user knows that their Perl interpreter is located elsewhere, in a non-standard location or with a different name, they're probably savvy enough to modify the path in the Perl script as needed.  The code will still run fine on Windows systems with the modification.


2016 Gray Chang
Thanks to Dan White (no relation to Moscone/Milk figure) for Perl programming assistance
Thanks to Andrew Poth for Note 4 about Linux