Emulator of payphone card

There are two variants of manufacturing the card based on AMTELa: from software - the first, the stationary programmer - the second.

Method one - to make a card from the software you need AVR studio and BASCOM-AVR programmer.
AVR studio, absolutely free and full, can be found at http://www.atmel.com (but in English) BASCOM-AVR demo, but it's enough. See here http://www.mcselec.com/
For Ukrainians, you simply need to compile the main.asm file with AVR studio. The compilation process itself is described in the AVR studio documentation. For other regions it will be necessary to correct the main.asm a little. You need to change the emulation dump itself. In the loaddata procedure, the mechanism for loading the first 16 bytes of the card dump is clearly visible. To change to a dump of a card (your city, the country) it will not be difficult.

Ldi YH, high (cardaddr)
Ldi YL, low (cardaddr)
Clr r1
Dec r1
; Db $ E8, $ 31, $ 7f, $ ef, $ 1D, $ A8, $ 88, $ db, $ 00, $ 0f, $ fe, $ e0, $ 00, $ FF, $ 6a, $ 3e
; Example of the UKRTELECOM card dump

Ldi temp, $ e8; Change to the 1st byte of the dump of your card
St Y +, temp
Ldi temp, $ 31; Change to the 2nd byte of the dump of your card
St Y +, temp
Ldi temp, $ 7f; Change to the 3rd byte of the dump of your card
St Y +, temp
...
As a result of the compilation, the main.hex file should be obtained, which must be flashed into the microcircuit itself.
If you have a programmer and iron to it, then you know how to do it. If you are first encountering programming the AVR series, you can use BASCOM-AVR. To do this, connect the chip to the LPT port using 5 wires.

LPT pin CHIP pin
2 5 (MOSI)
4 1 (RESET)
5 7 (SCK)
eleven 6 (MISO)
18-35 4 (GND)
+ 5v 8 (VCC)

Do not forget to power the chip.
When programming, make sure that the fuyuz is responsible for the On-chip RC-Oscillator.

The scheme of chip inclusion on the card (4Kb)

The scheme of chip inclusion on the card

A few words about AVR and firmware. AT90S2343 - CPU risk, similar to PIC16F8x but more powerful. Unlike the PIC, the RC-Oscillator has a 1 MHz onboard, which allows the chip to be pegged without additional devices.
The program is implemented so that when the power is applied to the card in the AVR memory, a start image of the phone card dump is created. In the future, the program emulates the actions of the phone card, until the power is gone. The next time you use the card, it will be full again.

Firmware for the proz, source .

But there is another way to not download from the network about 20 meters of BASCOM-AVR and AVR studio, do not etch the board and do not clog your brains with any nonsense ....

Step 1. You buy a motherboard - a dummy for satellite receivers, there the pins of the tracks fit and the thickness of the textolite is just perfect. It costs 0.5 dolar. Here is its appearance.

Step 2. The cost of the processor is about 2 dollars, this is if the market. Ask the seller where he (the processor) can be stitched - he will say.

Step 3. The driver will give a floppy with * emul.hex * and the processor itself and tell me to enable the internal oscillator on firmware !!! The cost of 0.2 to 1 dollar, this is how to arrange.

Total for 3 dollars you have eternal (let's hope that nothing in the near future will not change) card.