Due with Smartcard iso7816

Hi,

I just got myself my first arduino (Due) and i would like to start a project to interface it with a smartcard.
I see that the Due (SAM3X8E) handle ISO7816 protocol on it's USART ports.

I could see some examples on atmel website with other kind of boards than the Due to handle ISO7816 communications.

I found this one which seems to be similar to SAM3X8E :
http://asf.atmel.com/docs/latest/sam.drivers.usart.usart_iso7816_example.sam3x_ek/html/index.html
But not clearly the same.

My question is so far i think i know where to connect a few of the smartcard pins to the Due :
(found the SAM3X8E pintout from this forum and link to pdf http://www.robgray.com/temp/Due-pinout.pdf) --> thanks a lot for this big work !!
So the pinout i found :
I/O --> TXD0 --> Pin 18
CLK --> SCK0 --> Pin SCL1
GND --> GND --> select one GND on board, multiple available
And these ones i'm not quite sure where to connect to :
RST --> ??
VCC --> ??

Then there would be the template to use to handle ISO7816 communication.
It seems there are some available in order to use the ISO7816 protocol on arduino board.
I'm not sure if they are compatible.

Any example of this kind of achievement on Due board would be nice to have please.

Thanks

Hi

I finally managed to do it by myself.
Using the SAM3X8E datasheet which explains ISO7816 protocol with T=0

First initializing UART 1 to work on ISO mode T=0
Then i connected SCK1(board) on CLK (card) :divided the the board frequency with the needed baudrate to get the needed frequency for the card
VCC(Card) on 5v of the DUE
GND(Card) on GND of the DUE
IO(Card) on UART TXD0.
And chosen PWM (pin 6) as the RST(card) connector.

Then i just followed the ISO7816 specification to get the ATR (so far i only got the ATR to work which is sufficient for me)
I used the PULL UP methods of the uart (documented in uart.c/h) to extract the data.

When i finish cleaning up a bit my code (i did lots and lots of approaches) i'll post it.

Regards

vsidou:
Hi

I finally managed to do it by myself.

....

When i finish cleaning up a bit my code (i did lots and lots of approaches) i'll post it.

Regards

Did you take this any further? I'm interested in doing the same, it would be great to not re-invent everything.

Pete