Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

I2C: Differences LPC210x - AT91SAM7S (ISR)

Posted by Thomas on March 21, 2006
Hello,

I´m currently trying to implement the WIZnet I2C TCP/IP Demo into my project with an AT91SAM7S (Rowley GCC).
The WIZNet Demo uses a Philips LPC210x.
In i2c.c it simply starts the I2C communication with setting the start condition:
I2C_I2CONCLR = i2cSI_BIT;
I2C_I2CONSET = i2cSTA_BIT;
then waits for an IRQ and goes on in the ISR in i2cISR.c.

Therefore its necessary that on every I2C state change occurs an IRQ. The LPC does it(?).
When my Atmel datasheet informs my correctly the AT91SAM7S isn´t able to do this.

So I have to implement nearly the whole Write/Read procedure in i2c.c ???
(I think I can only get an IRQ after transmit has finished ?)

Has anybody else done this with an Atmel?

Thomas






RE: I2C: Differences LPC210x - AT91SAM7S (ISR)

Posted by Nobody/Anonymous on March 21, 2006
I think the interrupts only fire after each byte. The isr then just copies the next byte.

Also on the Atmel I think it can be simpler through the use of the dma to pass data straight to the i2c peripheral without software intervention at all.

Do the Rowley GCC tools have any i2c examples for atmel?

RE: I2C: Differences LPC210x - AT91SAM7S

Posted by Thomas on March 21, 2006
Hello,

thanks for the answer!

At AT91.com I read the Atmels TWI does not have a PDC, so I have to do it manually or with IRQs.

I found no example using TWI with the AIC, so if anybody has done this before...

Thomas


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists