1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Code Repository

A place for code snippets for microcontroller circuits.

Top Articles

  1. Basic 8051 tutorial 5 Ian Rogers
    Serial communication in ASM and C
  2. Getting Started with Android Programming: Creating Your First App DerStrom8
    A tutorial to help you write a simple Hello World! Android application
  3. Simple Interrupts on mid range PIC's.... Ian Rogers
    How to implement interrupts in your project.
  4. Basic 8051 tutorial 4 Ian Rogers
    LCD in ASM and C
  5. Basic 8051 tutorial 3 Ian Rogers
    Basic motor control using ASM and C
  6. Basic 8051 tutorial 2 Ian Rogers
    Continuing the ASM and C on the 51 derivatives
  7. Basic 8051 tutorial 1 Ian Rogers
    Asm and C code on the 8051
  1. Articles are being shown from all child categories.
  2. OlPhart

    Debounce Both States / Asm / Freescale 908

    I wrote this for toggle switches. It first looks for a change of state. If seen, it counts loops to
    0/5, 0 votes
    Jun 13, 2011
  3. OlPhart

    Debounce Active Low Switch / Asm / Freescale 908

    I wrote this for use on pushbuttons. It first looks for an active low state. If seen, it counts loo
    0/5, 0 votes
    Feb 26, 2011
  4. Wond3rboy

    C18 code for interfacing a PIC to a DS 12885 / DS 12887

    Hi, this is a code snippet for writing to and reading from the registers of a BQ3287(DS12885-DS12C8
    0/5, 0 votes
    Feb 26, 2011
  5. Mr RB

    Accurate 1-second periods with any xtal

    Here are some easy C code examples to generate 1-second (or any period) from any xtal value and any
    0/5, 0 votes
    Feb 12, 2011