BASIC Stamp PulsIN function

Post your requests and ideas on the future development of mikroC PRO for PIC.
Post Reply
Author
Message
sophtware
Posts: 60
Joined: 05 Jun 2008 02:35
Location: Dacula, GA
Contact:

BASIC Stamp PulsIN function

#1 Post by sophtware » 30 Oct 2010 01:01

I know this topic has resurfaced many times with various solutions, all of which seem to want to use a pin with interrupts on the chip, which seems a little overkill and limiting.

On the basic stamp, this function (pulsin) can be used on ANY pin, so obviously they are not using interrupts on a pin. I would think a function like this could be created for any pin on the PIC and use just a timer, like TMR0.

Having a function like this built in would allow us Mikro users that also have Parallax modules, like the Memsic Accelerometer, to use them with the PIC boards.

I know I can create this funciton my self, but it would be nice if it was included in the libraries. Like this:

unsigned short PulseIn_Rise(pin);
unsigned short PulseIn_Fall(pin);

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: BASIC Stamp PulsIN function

#2 Post by zristic » 30 Oct 2010 19:39

Check in help for Soft_SPI_Read.

Post Reply

Return to “mikroC PRO for PIC Wish List”