Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Microcontroller with I2C and ISO7816 support?

84 views
Skip to first unread message

goi...@gmail.com

unread,
Sep 28, 2006, 12:00:40 AM9/28/06
to
Hi,

Are there any low cost microcontrollers(8051/AVR/etc) that support both
I2C and ISO7816 interface?

Ulf Samuelsson

unread,
Sep 28, 2006, 1:32:12 AM9/28/06
to

I assume master ISO7816 so: AT91SAM7S32(1)
It only supports I2C master though which could be a drawback!
I2C slave can rpbably quite easioly be emulated using the SSC.


You will find that a UART to ISO7816 is easier to find.
Atmel has several such circuits, and I am sure other companies have as well.
You could put an ATmega48 or similar in between.

--
Best Regards,
Ulf Samuelsson
u...@a-t-m-e-l.com
This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB


Robert Lacoste

unread,
Sep 28, 2006, 7:05:16 AM9/28/06
to
<goi...@gmail.com> a écrit dans le message de news:
1159416040.3...@k70g2000cwa.googlegroups.com...

> Hi,
>
> Are there any low cost microcontrollers(8051/AVR/etc) that support both
> I2C and ISO7816 interface?
>

Look at STM families (www.st.com), I'm 99% sure you will find one...
Cheers,
Robert


goi...@gmail.com

unread,
Sep 28, 2006, 9:13:16 PM9/28/06
to

Well I will need I2C slave functionality so yeah that would be a
drawback. What do you mean by SSC?

I also found some application notes for ISO7816 via UART, but it was
for ST. Where can I find such circuits for Atmel/etc?

Thanks!

goi...@gmail.com

unread,
Sep 28, 2006, 9:13:50 PM9/28/06
to

Well I will need I2C slave functionality so yeah that would be a

Ulf Samuelsson

unread,
Sep 29, 2006, 12:39:59 AM9/29/06
to
goi...@gmail.com wrote:
> Ulf Samuelsson wrote:
>> goi...@gmail.com wrote:
>>> Hi,
>>>
>>> Are there any low cost microcontrollers(8051/AVR/etc) that support
>>> both I2C and ISO7816 interface?
>>
>> I assume master ISO7816 so: AT91SAM7S32(1)
>> It only supports I2C master though which could be a drawback!
>> I2C slave can rpbably quite easioly be emulated using the SSC.
>>
>>
>> You will find that a UART to ISO7816 is easier to find.
>> Atmel has several such circuits, and I am sure other companies have
>> as well. You could put an ATmega48 or similar in between.
>>
>> --
>> Best Regards,
>> Ulf Samuelsson
>> u...@a-t-m-e-l.com
>> This message is intended to be my own personal view and it
>> may or may not be shared by my employer Atmel Nordic AB
>
> Well I will need I2C slave functionality so yeah that would be a
> drawback. What do you mean by SSC?

The SSC is the Synchronous Serial Controller of the AT91.
You get access to the raw data and clock.
The CPU should have enough performance to do the I2C
slave in S/W when you

> I also found some application notes for ISO7816 via UART, but it was
> for ST. Where can I find such circuits for Atmel/etc?

ISO 7816 is directly supported in the AT91 USART.

There is code for an AVR RS-232 <-> ISO7816 bridge at
http://www.smartcache.net/download.html
It is C code for the AT902313 but I think
it would not be too hard to adopt for the ATmega48
which has the TWI = I2C as well.

>
> Thanks!

goi...@gmail.com

unread,
Sep 29, 2006, 3:16:09 AM9/29/06
to
Thanks Ulf! I'll take a look at the ASM/C code. I'm assuming that it
won't be too hard using it for any MCU that has RS232 serial port and
I2C that's fast enough? I currently already am in possession of some
Toshiba TMP91 series 16bit MCUs running at 27MHz. I think it should be
fast enough, and I'll save some money since I already have the dev kit
too.

Ulf Samuelsson

unread,
Sep 29, 2006, 11:57:01 AM9/29/06
to
goi...@gmail.com wrote:
> Thanks Ulf! I'll take a look at the ASM/C code. I'm assuming that it
> won't be too hard using it for any MCU that has RS232 serial port and
> I2C that's fast enough? I currently already am in possession of some
> Toshiba TMP91 series 16bit MCUs running at 27MHz. I think it should be
> fast enough, and I'll save some money since I already have the dev kit
> too.
>

You can probably run the complete program in the AVR simulator
so not a lot of need for tools.
The AVR Dragon emulator is selling for around $40...
Quickly saved if you need to build a few.

goi...@gmail.com

unread,
Sep 30, 2006, 2:00:58 AM9/30/06
to

Ulf Samuelsson wrote:
> goi...@gmail.com wrote:
> > Thanks Ulf! I'll take a look at the ASM/C code. I'm assuming that it
> > won't be too hard using it for any MCU that has RS232 serial port and
> > I2C that's fast enough? I currently already am in possession of some
> > Toshiba TMP91 series 16bit MCUs running at 27MHz. I think it should be
> > fast enough, and I'll save some money since I already have the dev kit
> > too.
> >
>
> You can probably run the complete program in the AVR simulator
> so not a lot of need for tools.
> The AVR Dragon emulator is selling for around $40...
> Quickly saved if you need to build a few.
>
Hmm, I've had experience in programming AVR(atmega32) on an STK-500
with codevisionAVR, but I'm not familiar with the AVR Dragon. What
exactly is that? Anyway, moving from 1 MCU to another, how do I figure
out exactly what clock speeds to run at? The code seems to indicate a
very specific clockspeed so as to match the desired ISO7816 baudrate.

Ulf Samuelsson

unread,
Sep 30, 2006, 4:32:08 AM9/30/06
to
goi...@gmail.com wrote:
> Ulf Samuelsson wrote:
>> goi...@gmail.com wrote:
>>> Thanks Ulf! I'll take a look at the ASM/C code. I'm assuming that it
>>> won't be too hard using it for any MCU that has RS232 serial port
>>> and I2C that's fast enough? I currently already am in possession of
>>> some Toshiba TMP91 series 16bit MCUs running at 27MHz. I think it
>>> should be fast enough, and I'll save some money since I already
>>> have the dev kit too.
>>>
>>
>> You can probably run the complete program in the AVR simulator
>> so not a lot of need for tools.
>> The AVR Dragon emulator is selling for around $40...
>> Quickly saved if you need to build a few.
>>
> Hmm, I've had experience in programming AVR(atmega32) on an STK-500
> with codevisionAVR, but I'm not familiar with the AVR Dragon. What
> exactly is that?

Low cost JTAG ICE Mk II,
Supports Debugwire(tm), but JTAG parts are limited to max 32 kB.

> Anyway, moving from 1 MCU to another, how do I figure
> out exactly what clock speeds to run at? The code seems to indicate a
> very specific clockspeed so as to match the desired ISO7816 baudrate.

You need to read documentation on ISO7816...

linnix

unread,
Sep 30, 2006, 10:08:02 PM9/30/06
to

>
> Low cost JTAG ICE Mk II,
> Supports Debugwire(tm), but JTAG parts are limited to max 32 kB.

If I read the spec (half page text file) correctly, AVR dragon is not
ICE. It will emulate and program, but not ICE.

Ulf Samuelsson

unread,
Oct 1, 2006, 5:29:27 AM10/1/06
to

To be exact, it supports OCD using Debugwire and JTAG
(limited to <= 32kB parts)

0 new messages