Wait function that uses 16 Bit Timer 1 instead of using 32 bit Timer 0 to be used in conjunction with 'TextLCD16x4_Wait' and 'PulseWidthCapture' to measure the +ve and -ve Pulsewdth of a signal
Dependents: PulseWidthCapture_Program
LCD_Wait.h
- Committer:
- Ellor1
- Date:
- 2014-12-11
- Revision:
- 2:46e8391685c4
- Parent:
- 1:57aba608a20d
File content as of revision 2:46e8391685c4:
#ifndef LCD_H #define LCD_H #include "mbed.h" class LCD_Wait { public: LCD_Wait(void); void Wait(float num_wait); /* Private Macros ------------------------------------------------------------- */ /* --------------------- BIT DEFINITIONS -------------------------------------- */ /*********************************************************************//** * Macro defines for CT16B1->IR Interrupt tegister **********************************************************************/ #define CT16B1_IR_MR0INT ((uint32_t)(1<<0)) /*********************************************************************//** * Macro defines for SYSCON->SYSAHBCLKDIV register bits LPC11U24 page 30 **********************************************************************/ #define CT16B1_CLK_ENABLE ((uint32_t)(1<<8)) /*********************************************************************//** * Macro defines for CT16B1->TCR register bits LPC11U24 page 335 **********************************************************************/ #define CT16B1_TCR_CEN 1UL /*********************************************************************//** * Macro defines for CT16B1->MCR register bits LPC11U24 page 337 **********************************************************************/ #define CT16B1_MR0I ((uint32_t)(1<<0)) #define CT16B1_MR0R ((uint32_t)(1<<1)) }; #endif