Version 4, last updated by Leonid Kostrykin at September 03, 2008 00:17 UTC

Summary 

This page documents the program running on the ATmega8 micro-controller. It is written in assembler. Basicly the program makes the micro-controller convert voltage on Port C Pin 0 to digital values in an infinite loop. On every iteration it checks for incoming commands from UART (RS-232). If there is none, it proceeds to the next voltage and sends it's digital value via UART. If a command was received, the program interprets it. Currently there is only one type of commands: The bit string 0x01 tells the program to interrupt converting voltages on Port C Pin 0 for one moment and instead switch to Port C Pin 1; that's where RM, also called Pre-Resistor, is expected. When it's digital value is ready, it's sent via RS-232. Afterwards the program switches back to it's regular job. During the procession of Port C Pin 0 (regular job) Port C Pin 5 (red LED) is turned on, in case of Port C Pin 1 this is Port C Pin 4 (yellow LED).


 

Files

Sources (Assembler) — The comments are currently in German language

Binary (HEX-File)