EmbeddedRelated.com
Forums

how should i read a I2C ADC @50khz on rcm2250?

Started by Flux January 19, 2004
currently, i am using external ISR to read the 8bit ADC0804

the sampling action is driven by internal ISR driving by timer A.

using I2C means no interrupt anymore??
how can i tailor the speed I2C works and the I/O that I can use??



--- Flux <bene-tam@bene...> wrote:
> currently, i am using external ISR to read the 8bit
> ADC0804
>
> the sampling action is driven by internal ISR
> driving by timer A.
>
> using I2C means no interrupt anymore??
> how can i tailor the speed I2C works and the I/O
> that I can use??
hi,
u can use port d for i2c. I2c.lib functions didn't
work out for me. I am also using rcm2250. in lib file
pd6& pd7 are used for scl& sda.plz check out.
indranuj

__________________________________



If you read the instructions at the top of the library you will find you can
change the ports used with simple defines.
-Pete

-----Original Message-----
From: INDRANUJ HALDAR [mailto:indraid2002@indr...]
Sent: Monday, January 19, 2004 9:15 AM
To: rabbit-semi@rabb...
Subject: Re: [rabbit-semi] how should i read a I2C ADC @50khz on rcm2250?
--- Flux <bene-tam@bene...> wrote:
> currently, i am using external ISR to read the 8bit
> ADC0804
>
> the sampling action is driven by internal ISR
> driving by timer A.
>
> using I2C means no interrupt anymore??
> how can i tailor the speed I2C works and the I/O
> that I can use??
hi,
u can use port d for i2c. I2c.lib functions didn't
work out for me. I am also using rcm2250. in lib file
pd6& pd7 are used for scl& sda.plz check out.
indranuj

__________________________________



how about the speed concern?? any clue??

--- In rabbit-semi@rabb..., "Fournier, Pete" <pfournier@a...>
wrote:
> If you read the instructions at the top of the library you will
find you can
> change the ports used with simple defines.
> -Pete
>
> -----Original Message-----
> From: INDRANUJ HALDAR [mailto:indraid2002@y...]
> Sent: Monday, January 19, 2004 9:15 AM
> To: rabbit-semi@rabb...
> Subject: Re: [rabbit-semi] how should i read a I2C ADC @50khz on
rcm2250?
> --- Flux <bene-tam@d...> wrote:
> > currently, i am using external ISR to read the 8bit
> > ADC0804
> >
> > the sampling action is driven by internal ISR
> > driving by timer A.
> >
> > using I2C means no interrupt anymore??
> > how can i tailor the speed I2C works and the I/O
> > that I can use??
> >
> >
> hi,
> u can use port d for i2c. I2c.lib functions didn't
> work out for me. I am also using rcm2250. in lib file
> pd6& pd7 are used for scl& sda.plz check out.
> indranuj
>
> __________________________________





--- Flux <bene-tam@bene...> wrote:
> how about the speed concern?? any clue??
>
> --- In rabbit-semi@rabb..., "Fournier, Pete"
> <pfournier@a...>
> wrote:
> > If you read the instructions at the top of the
> library you will
> find you can
> > change the ports used with simple defines.
> > -Pete
> >
> > -----Original Message-----
> > From: INDRANUJ HALDAR [mailto:indraid2002@y...]
> > Sent: Monday, January 19, 2004 9:15 AM
> > To: rabbit-semi@rabb...
> > Subject: Re: [rabbit-semi] how should i read a I2C
> ADC @50khz on
> rcm2250?
> >
> >
> >
> > --- Flux <bene-tam@d...> wrote:
> > > currently, i am using external ISR to read the
> 8bit
> > > ADC0804
> > >
> > > the sampling action is driven by internal ISR
> > > driving by timer A.
> > >
> > > using I2C means no interrupt anymore??
> > > how can i tailor the speed I2C works and the I/O
> > > that I can use??
> > >
> > >
> > hi,
> > u can use port d for i2c. I2c.lib functions
> didn't
> > work out for me. I am also using rcm2250. in lib
> file
> > pd6& pd7 are used for scl& sda.plz check out.
> >
> indranuj
> >
> > __________________________________
> >
> >
> >
> >
> >
>
hi all,
if u can check out with the lib file i2c.lib
and over there one macro is defined in assembly & c
"#define WAIT_5_us " .Here the variable
i2c_clocks_per_us is responsible for the delay.
Increase / decrease it if required. you will find
between the rotate left operation & clocking this very
macro is called for the delay. Please check out if
in the lib file only PDDDR is written between the
rotate left operations or not and give me the feedback
if possible.It will be done in your
i2c_SDA_H...macros.
thanking you all,
with rgds,
Indranuj

__________________________________