![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LPC800-MAX RGB demo using SCT and MRT
LPC800-MAX RGB demo using State-Configurable Timer(SCT) and Multi-Rate Timer(MRT).
http://www.youtube.com/watch?v=PABxoWZB0YM
MRT.h
- Committer:
- va009039
- Date:
- 2013-10-14
- Revision:
- 1:4e19f154ec21
File content as of revision 1:4e19f154ec21:
#pragma once #include "LPC8xx.h" class MRT { public: MRT(int channel = 0); /** write down counter * @param interval start count */ void write(uint32_t interval); /** read down counter */ uint32_t read(); enum STAT { IDLE, RUNNING, }; int status(); void wait_ms(uint32_t timeout_ms); void wait_us(uint32_t timeout_us); void wait_raw(uint32_t timeout); protected: void inst(); MRT_Channel_cfg_Type* _ch; int us_clk; };