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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LCD_Wait.h Source File

LCD_Wait.h

00001 #ifndef LCD_H
00002 #define LCD_H
00003 
00004 #include "mbed.h"
00005 
00006 class LCD_Wait {
00007 public:
00008 
00009 LCD_Wait(void);
00010 void Wait(float num_wait);
00011 
00012 
00013 /* Private Macros ------------------------------------------------------------- */
00014 /* --------------------- BIT DEFINITIONS -------------------------------------- */
00015 
00016 /*********************************************************************//**
00017  * Macro defines for CT16B1->IR Interrupt tegister                  
00018  **********************************************************************/
00019 #define CT16B1_IR_MR0INT                        ((uint32_t)(1<<0))
00020 
00021 /*********************************************************************//**
00022  * Macro defines for SYSCON->SYSAHBCLKDIV register  bits LPC11U24      page 30
00023  **********************************************************************/
00024 #define CT16B1_CLK_ENABLE                       ((uint32_t)(1<<8))
00025 
00026 /*********************************************************************//**
00027  * Macro defines for CT16B1->TCR register  bits LPC11U24                page 335
00028  **********************************************************************/
00029 #define CT16B1_TCR_CEN                           1UL
00030 
00031 /*********************************************************************//**
00032  * Macro defines for CT16B1->MCR register  bits LPC11U24               page 337
00033  **********************************************************************/
00034 #define CT16B1_MR0I                             ((uint32_t)(1<<0))
00035 #define CT16B1_MR0R                             ((uint32_t)(1<<1))
00036 
00037 
00038 };
00039 
00040 #endif