Hobby Projects - Insulation tester, LED Circuits, Meters.

Tuesday, June 24, 2014

SDCC - Small Device C Compiler

SDCC was written by Sandeep Dutta and released under a GPL license. SDCC is a retargettable, optimizing ANSI - C compiler that works for the Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08 based MCUs.

SDCC - Small Device C Compiler

Work is in progress on supporting the Microchip PIC16 and PIC18 series. SDCC is Free Open Source Software.

SDCC - Small Device C Compiler
  • ASXXXX and ASLINK, a Freeware, retargettable assembler and linker.
  • extensive MCU specific language extensions, allowing effective use of the underlying hardware.
  • a host of standard optimizations such as global sub expression elimination, loop optimizations (loop invariant, strength reduction of induction variables and loop reversing ), constant folding and propagation, copy propagation, dead code elimination and jump tables for 'switch' statements.
  • MCU specific optimizations, including a global register allocator.
  • adaptable MCU specific backend that should be well suited for other 8 bit MCUs
  • independent rule based peep hole optimizer.
  • a full range of data types: char (8 bits, 1 byte), short (16 bits, 2 bytes), int (16 bits, 2 bytes), long (32 bit, 4 bytes) and float (4 byte IEEE).
  • the ability to add inline assembler code anywhere in a function.
  • the ability to report on the complexity of a function to help decide what should be re-written in assembler.
  • a good selection of automated regression tests.
The SDCC Open Knowledge Resource

Cygnal (Silicon Labs) 8051 Port

Cygnal (Silicon Labs) 8051 Port

The Cygnal port was developed on a C8051F120-TB prototyping board (instructions are provided should you wish to use an alternative development board) fitted with a 8051F120 microcontroller. The freeware SDCC compiler was used along with the Cygnal IDE.

Tuesday, June 17, 2014

Tutorials Electronics made EASY Williamson Labs

These are simple and easy for learning, it is oriented towards practical electronics. It has a rich experience of Glen, who has seen the real electronics engineering as it evolved.

Tutorials for Electronics - Williamson Labs
  • Engineering NOTEBOOK
  • Ergonomics
  • Elementary Electricity
  • Intuitive Electronics
  • Transmission Lines
  • Mixers & Modulation
Design Flow Chart
"He may be the Customer, and you the Engineer, but remember, you are both people. We as engineers often get a bad rap for not being "sensitive guys," not having people-skills."

Engineer under Construction 
School Should Emulate Industry: - The Project Oriented Approach: Enables the Learn by Doing Paradigm.

Engineer under Construction

Glen is like the Murphy for Electronics Engineering. There has be a "Laws of Glen" one can digest and precipitate from his valuable writings.

Wednesday, June 11, 2014

Electronic Microcontroller Projects of Mast

Here are BASIC-52 projects and some Atmel AVR projects.and audio projects like Balanced microphone preamp with phantom power. It also has the old PIC Archive.

Electronic Projects of Mast

Projects with Basic 52
  • Using DS1621 temperature sensor chip with BASIC-52 (Temperature logger)
  • Using ADS1286 12-bit ADC with BASIC-52 
  • Cheap R2R DAC for BASIC-52 with performance analysis 
  • Using RF modules for wireless communication with BASIC-52 
  • Sinewave generator with AD9835 DDS, driven by BASIC-52
Electronic Mmicrocontroller Projects of Mast

My first 8052 BASIC Project

"So, first of all, you need a 80C52 or compatible microcontroller. There are several producers, I used Atmel's AT89C52 which is FLASH based, so it can be reprogrammed (as opposed to 80C52 which is OTP part). Any 89C52 or 87C52 part will do fine for experimenting, but if you do not have a programmer for 8051 family of MCU-s, Atmel also has a AT89S8252 (8052 compatible chip with 2K of EEPROM built in) with a serial programming interface which makes building a programmer much easier."

Simple PWM controller - with 555

This 555 timer based PWM controller features almost 0..100% pulse width regulation using R1, while keeping the oscillator frequency relatively stable. The frequency is dependent on values of R1 and C1, values shown will give a frequency range from about 170 to 200 Hz. Any 555 chip will do, CMOS is fine as well.

Local copy of David Tait's PIC archive

Most of these files are related in some way to my simple PIC16C84 programmer for IBM compatible PCs (download pic84pgm.zip and pic84v05.zip). You may find one or two packages that have more to offer though.