If I use the capture an compare, is there any incompatibility using at the same time the UART or USART?
Thank in advance
Hi support
- ranko.rankovic
- Posts: 433
- Joined: 11 Jun 2010 09:22
Re: Hi support
Hello emanuel,
We need little more information about your development system and MCU to be able to help.
We need little more information about your development system and MCU to be able to help.
Ranko Rankovic
mikroElektronika [Support Department]
mikroElektronika [Support Department]
Re: Hi support
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
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
Re: Hi support
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
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
- ranko.rankovic
- Posts: 433
- Joined: 11 Jun 2010 09:22
Re: Hi support
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.
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]
mikroElektronika [Support Department]