Telephone cards. [part 2]
ZXNet echo conference «hardware.zx»
From Max Melnikov → To All 1 October 2000
Hello to you, All.
I had one problem, the duration of the signals, this is what I dug up in
old mail about this:
*** as if the beginning of the file FROM_MAIL.TXT ***
And the minimum pulse times and the interval between pulses of the signal Clk
when reading cards are defined at 8 and 10 µs.
*** seems to be the end of the file FROM_MAIL.TXT ****
Well, gentlemen, we draw conclusions: The normal frequency of the Z80 is 3.5 MHz, one clock cycle
processor ~0.285 µs, if you attach the card to the printer port like this:
Printer port Card
D0 --> RES
D1 --> CLK
BUSY <-- DATA
then to reset the card and start reading the card, the program will be something like this:
LD D,1 ; RES=1 CLK=0
LD E,2 ; RES=0 CLK=1
LD H,3 ; RES=1 CLK=1
LD L,0 ; RES=0 CLK=0
LD BC,PRINTER_PORT
; Reset the card and read the first bit
OUT (C),D ; 12 clock cycles = 3.42 µs
NOP; 1.14 µs (just in case)
OUT (C),H ; 3.42 µs
NOP (4 pieces); 4.56 µs
OUT(C),D
OUT(C),L
IN A,(#1F) ; reading the bit (I have BUSY - bit 7 of port #1F)
LD (ADRES1),A
; Reading the remaining bits (how many bits this segment is repeated so many times;
code)
OUT(C),E
NOP
NOP
NOP
NOP
OUT(C),L
IN A,(#1F)
LD (ADRESS2),A
and so on...
I haven’t been able to test this in action yet, I don’t have enough time, the programraw, just invented, you can’t really trust it, you have to do it
debug what I want to do in the near future...
If anyone needs a document on cards and software support on an offtopic site, I can
throw (everything I found weighs ~500 kilos per pack)...
Sincerely, Max Melnikov... aka HighLander... aka Uncle Maximka...
-+- = Very golden grandfather, sample 3.00.Alpha5 = ---
+ Origin: PC - a cure for brains... (500:3432/13)
*** as if the end of the file GED_FIL.OUT ****
Sincerely, Max Melnikov... aka HighLander... aka Uncle Maximka...