51-based tuner design with schematic and source code