The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: Refurbed PCs


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Re: Rabbit 2000


  • Subject: RE: Re: Rabbit 2000
  • From: "Paul Smith" <ukha@xxxxxxxxxxxxx>
  • Date: Fri, 31 Mar 2006 13:37:46 +0100

>=20
> Looks a bit better!
> If I was you, I would use an interrupt driven input rather than
> polling. Polling can be made to work, but you must sample at at least
> twice the frequency of the pulse you are looking to measure, and it
> can all get a bit messy if your mark-space ratio is not even (which is
> pretty likely in a measuring meter led pulse scenario).
>=20
> For details on setting up an edge triggered interrupt, see here:
>=20
> http://www.rabbitsemiconductor.com/documentation/docs/manuals/Rabbit2000/=
U
> sersManual/index.htm
>=20
> section 7.9.1 is the relevant bit
>=20
> If I remember correctly, the rabbit sample code that comes with the
> compiler also includes some examples of how to do this too (or
> something pretty close to it)?
>=20
> PPS. Do publish the finished design, quite fancy one of these myself
:-)
>=20
> Cheers
> Patrick

Hi Patrick,

That=92s a problem for me as what I am trying to do is monitor at least 3 =
inputs and the TN note from rabbit which hi-lights the 2000 module
interrup=
t problem and says "This is done by using an interrupt routine that is
driv=
en continuously by a timer, and using that
routine to examine a number of input lines that can be considered to be
int=
errupt requests. The synthetic
interrupt can be edge or level sensitive. When a condition is detected
requ=
iring a synthetic interrupt, the
routine calls the interrupt service routine.
This technique is more robust and requires less hardware than using hard
in=
terrupts. It is especially good
for counting pulses and can be used to count a number of input pulse
stream=
s at the same time. Experience
shows that counting pulses by using an interrupt input is an endless
source=
of trouble because of ill-conditioning
of the pulses and exceptions that often happen at the start and end of the
=
pulse train."

I've contacted rabbit for an example but they've not come back to me :-)

Any ideas ?

Regards,

Paul


--=20
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.384 / Virus Database: 268.3.3/298 - Release Date: 30/03/2006
=20



UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.