Smart Card Programming + schamtic
Hi every one
iv been having probloms trying to talk to the smartcard, iv managed to program it with the following code through ic-prog.
"the following is in pic basic pro complied in microcode studio which uses pic basic pro as a compiler and and mpasm as an assembler"
-----------------------------------------------------------------------
' SERIN & SEROUT Commands
'
' Upper case serial filter.
Include "modedefs.bas" ' Include serial modes
SO con 0 ' Define serial out pin
SI con 1 ' Define serial in pin
B0 var byte
loop: Serin SI,T9600,B0 ' B0 = input character
If (B0 < "a") or (B0 > "z") Then print ' If lower case, convert to upper
B0 = B0 - $20
print: Serout SO,T9600,[B0] ' Send character
Goto loop
---------------------------------------------------------------------------------
i then got the hex file, and transmitted it into the goldwafer smartcard,
what that routine{above} actaully do is that it just accepts a letter from the key board, and then change that into capital letter and send it back serially i.e. from the I/O of the pic processor pin13/portb.7
Having the card inside the reader, programmed and waiting (i think its wating) :?: i right a simple routine in "tcl" to just send a letter and recive the answer from the serial port:
-------------------------------------
set serial [open com1 r+]
fconfigure $serial -mode "9600,n,8,1" -ttycontrol {RTS 0}
fconfigure $serial -blocking 0 -buffering line
puts $serial "a"
set data [read $serial]
puts "$data"
-----------------------------------------
please help me, i really need help, i dont know what to do, im not doing this correctley please tell me what you know, anything can help
[/i]