Hi support

Please check the frequently asked questions before posting to the forum.
Post Reply
Author
Message
emanuel
Posts: 15
Joined: 09 Jun 2010 21:43

Hi support

#1 Post by emanuel » 18 Jun 2010 04:27

If I use the capture an compare, is there any incompatibility using at the same time the UART or USART?
Thank in advance

User avatar
ranko.rankovic
Posts: 433
Joined: 11 Jun 2010 09:22

Re: Hi support

#2 Post by ranko.rankovic » 18 Jun 2010 12:32

Hello emanuel,

We need little more information about your development system and MCU to be able to help.
Ranko Rankovic
mikroElektronika [Support Department]

emanuel
Posts: 15
Joined: 09 Jun 2010 21:43

Re: Hi support

#3 Post by emanuel » 18 Jun 2010 13:47

This my university's proyect is an engine test bench.
So I need use A/D to read preasure and tempertaure of the engine then I2C for temperature and humidity, force from a streengauge, then Input capture for velocity RPM after that I send all data trhoug rs232 to pc, this aquision module is a salve of the PC program.
The program will show the power curves and the corrected curves.
The Micro is a 18F4520
Ranko do you have any example how to use the input capture to read velocity?

Iknow you need start a counter when the first pulse happend and when the other pulse arrive you stop the counter an do the diference an that is the period

piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

Re: Hi support

#4 Post by piort » 18 Jun 2010 14:33

hi,
you will nice idea and code there : http://www.mikroe.com/eng/projects/index/

ADC, temp and humidity sensor and tach project....

HTH a bit ;-)

User avatar
ranko.rankovic
Posts: 433
Joined: 11 Jun 2010 09:22

Re: Hi support

#5 Post by ranko.rankovic » 23 Jun 2010 14:51

Hello,

There is no combined example for all your needs, for RPM you could look this code:
http://www.mikroe.com/forum/viewtopic.p ... 71#p127371

This MCU is able to simultaneously work with all data you need, you should just pay attention not to use same pins for more then one input/output.

You should consult Datasheet for PIC18F2420/2520/4420/4520 for more info about pin layout of current chip.

Hope this helped.

Best regards.
Ranko Rankovic
mikroElektronika [Support Department]

Post Reply

Return to “mikroPascal FAQ”