Motherboard Forums


Reply
Thread Tools Display Modes

Microcontroller with I2C and ISO7816 support?

 
 





















goister@gmail.com
Guest
Posts: n/a

 
      09-28-2006, 05:00 AM


Hi,

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

 
Reply With Quote
 
Ulf Samuelsson
Guest
Posts: n/a

 
      09-28-2006, 06:32 AM
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

This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB


 
Reply With Quote
 
Robert Lacoste
Guest
Posts: n/a

 
      09-28-2006, 12:05 PM
<> a écrit dans le message de news:
. 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


 
Reply With Quote
 
goister@gmail.com
Guest
Posts: n/a

 
      09-29-2006, 02:13 AM

Ulf Samuelsson wrote:
> 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
>
> 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?

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!

 
Reply With Quote
 
goister@gmail.com
Guest
Posts: n/a

 
      09-29-2006, 02:13 AM

Ulf Samuelsson wrote:
> 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
>
> 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?

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!

 
Reply With Quote
 
Ulf Samuelsson
Guest
Posts: n/a

 
      09-29-2006, 05:39 AM
wrote:
> Ulf Samuelsson wrote:
>> 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
>>
>> 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!


--
Best Regards,
Ulf Samuelsson

This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB



 
Reply With Quote
 
goister@gmail.com
Guest
Posts: n/a

 
      09-29-2006, 08:16 AM
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 wrote:

> > 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!

>
> --
> Best Regards,
> Ulf Samuelsson
>
> This message is intended to be my own personal view and it
> may or may not be shared by my employer Atmel Nordic AB


 
Reply With Quote
 
Ulf Samuelsson
Guest
Posts: n/a

 
      09-29-2006, 04:57 PM
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.

> Ulf Samuelsson wrote:
>
>>> 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!

>>
>> --
>> Best Regards,
>> Ulf Samuelsson
>>
>> This message is intended to be my own personal view and it
>> may or may not be shared by my employer Atmel Nordic AB


--
Best Regards,
Ulf Samuelsson

This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB


 
Reply With Quote
 
goister@gmail.com
Guest
Posts: n/a

 
      09-30-2006, 07:00 AM

Ulf Samuelsson wrote:
> 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.

 
Reply With Quote
 
Ulf Samuelsson
Guest
Posts: n/a

 
      09-30-2006, 09:32 AM
wrote:
> Ulf Samuelsson wrote:
>> 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...



--
Best Regards,
Ulf Samuelsson

This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 11:04 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43