This program demonstrates the usage of the PWM. Program sets PWM0 chanel 1 and outputs it to the pin P1.2 where we get a PWM signal with a constantly changing working cycle.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LPC4088-ioconfig.h Source File

LPC4088-ioconfig.h

00001 //Definicije registrov za periferijo IOCONFIG
00002 
00003 //Port 0
00004 #define IOCON_P0_0           (*((volatile unsigned int *) 0x4002C000))      //D (IOCON type)
00005 #define IOCON_P0_1           (*((volatile unsigned int *) 0x4002C004))      //D
00006 #define IOCON_P0_2           (*((volatile unsigned int *) 0x4002C008))      //D
00007 #define IOCON_P0_3           (*((volatile unsigned int *) 0x4002C00C))      //D
00008 #define IOCON_P0_4           (*((volatile unsigned int *) 0x4002C010))      //D
00009 #define IOCON_P0_5           (*((volatile unsigned int *) 0x4002C014))      //D
00010 #define IOCON_P0_6           (*((volatile unsigned int *) 0x4002C018))      //D
00011 #define IOCON_P0_7           (*((volatile unsigned int *) 0x4002C01C))      //W
00012 #define IOCON_P0_8           (*((volatile unsigned int *) 0x4002C020))      //W
00013 #define IOCON_P0_9           (*((volatile unsigned int *) 0x4002C024))      //W
00014 #define IOCON_P0_10          (*((volatile unsigned int *) 0x4002C028))      //D
00015 #define IOCON_P0_11          (*((volatile unsigned int *) 0x4002C02C))      //D
00016 #define IOCON_P0_12          (*((volatile unsigned int *) 0x4002C030))      //A
00017 #define IOCON_P0_13          (*((volatile unsigned int *) 0x4002C034))      //A
00018 #define IOCON_P0_14          (*((volatile unsigned int *) 0x4002C038))      //D
00019 #define IOCON_P0_15          (*((volatile unsigned int *) 0x4002C03C))      //D
00020 #define IOCON_P0_16          (*((volatile unsigned int *) 0x4002C040))      //D
00021 #define IOCON_P0_17          (*((volatile unsigned int *) 0x4002C044))      //D
00022 #define IOCON_P0_18          (*((volatile unsigned int *) 0x4002C048))      //D
00023 #define IOCON_P0_19          (*((volatile unsigned int *) 0x4002C04C))      //D
00024 #define IOCON_P0_20          (*((volatile unsigned int *) 0x4002C050))      //D
00025 #define IOCON_P0_21          (*((volatile unsigned int *) 0x4002C054))      //D
00026 #define IOCON_P0_22          (*((volatile unsigned int *) 0x4002C058))      //D
00027 #define IOCON_P0_23          (*((volatile unsigned int *) 0x4002C05C))      //A
00028 #define IOCON_P0_24          (*((volatile unsigned int *) 0x4002C060))      //A
00029 #define IOCON_P0_25          (*((volatile unsigned int *) 0x4002C064))      //A
00030 #define IOCON_P0_26          (*((volatile unsigned int *) 0x4002C068))      //A
00031 #define IOCON_P0_27          (*((volatile unsigned int *) 0x4002C06C))      //I
00032 #define IOCON_P0_28          (*((volatile unsigned int *) 0x4002C070))      //I
00033 #define IOCON_P0_29          (*((volatile unsigned int *) 0x4002C074))      //U
00034 #define IOCON_P0_30          (*((volatile unsigned int *) 0x4002C078))      //U
00035 #define IOCON_P0_31          (*((volatile unsigned int *) 0x4002C07C))      //U
00036 
00037 //Port 1
00038 #define IOCON_P1_0           (*((volatile unsigned int *) 0x4002C080))      //D (IOCON type)
00039 #define IOCON_P1_1           (*((volatile unsigned int *) 0x4002C084))      //D
00040 #define IOCON_P1_2           (*((volatile unsigned int *) 0x4002C088))      //D
00041 #define IOCON_P1_3           (*((volatile unsigned int *) 0x4002C08C))      //D
00042 #define IOCON_P1_4           (*((volatile unsigned int *) 0x4002C090))      //D
00043 #define IOCON_P1_5           (*((volatile unsigned int *) 0x4002C094))      //W
00044 #define IOCON_P1_6           (*((volatile unsigned int *) 0x4002C098))      //W
00045 #define IOCON_P1_7           (*((volatile unsigned int *) 0x4002C09C))      //W
00046 #define IOCON_P1_8           (*((volatile unsigned int *) 0x4002C0A0))      //D
00047 #define IOCON_P1_9           (*((volatile unsigned int *) 0x4002C0A4))      //D
00048 #define IOCON_P1_10          (*((volatile unsigned int *) 0x4002C0A8))      //D
00049 #define IOCON_P1_11          (*((volatile unsigned int *) 0x4002C0AC))      //D
00050 #define IOCON_P1_12          (*((volatile unsigned int *) 0x4002C0B0))      //D
00051 #define IOCON_P1_13          (*((volatile unsigned int *) 0x4002C0B4))      //D
00052 #define IOCON_P1_14          (*((volatile unsigned int *) 0x4002C0B8))      //W
00053 #define IOCON_P1_15          (*((volatile unsigned int *) 0x4002C0BC))      //D
00054 #define IOCON_P1_16          (*((volatile unsigned int *) 0x4002C0C0))      //W
00055 #define IOCON_P1_17          (*((volatile unsigned int *) 0x4002C0C4))      //W
00056 #define IOCON_P1_18          (*((volatile unsigned int *) 0x4002C0C8))      //D
00057 #define IOCON_P1_19          (*((volatile unsigned int *) 0x4002C0CC))      //D
00058 #define IOCON_P1_20          (*((volatile unsigned int *) 0x4002C0D0))      //D
00059 #define IOCON_P1_21          (*((volatile unsigned int *) 0x4002C0D4))      //D
00060 #define IOCON_P1_22          (*((volatile unsigned int *) 0x4002C0D8))      //D
00061 #define IOCON_P1_23          (*((volatile unsigned int *) 0x4002C0DC))      //D
00062 #define IOCON_P1_24          (*((volatile unsigned int *) 0x4002C0E0))      //D
00063 #define IOCON_P1_25          (*((volatile unsigned int *) 0x4002C0E4))      //D
00064 #define IOCON_P1_26          (*((volatile unsigned int *) 0x4002C0E8))      //D
00065 #define IOCON_P1_27          (*((volatile unsigned int *) 0x4002C0EC))      //D
00066 #define IOCON_P1_28          (*((volatile unsigned int *) 0x4002C0F0))      //D
00067 #define IOCON_P1_29          (*((volatile unsigned int *) 0x4002C0F4))      //D
00068 #define IOCON_P1_30          (*((volatile unsigned int *) 0x4002C0F8))      //A
00069 #define IOCON_P1_31          (*((volatile unsigned int *) 0x4002C0FC))      //A
00070 
00071 //Port 2
00072 #define IOCON_P2_0           (*((volatile unsigned int *) 0x4002C100))      //D (IOCON type)
00073 #define IOCON_P2_1           (*((volatile unsigned int *) 0x4002C104))      //D
00074 #define IOCON_P2_2           (*((volatile unsigned int *) 0x4002C108))      //D
00075 #define IOCON_P2_3           (*((volatile unsigned int *) 0x4002C10C))      //D
00076 #define IOCON_P2_4           (*((volatile unsigned int *) 0x4002C110))      //D
00077 #define IOCON_P2_5           (*((volatile unsigned int *) 0x4002C114))      //D
00078 #define IOCON_P2_6           (*((volatile unsigned int *) 0x4002C118))      //D
00079 #define IOCON_P2_7           (*((volatile unsigned int *) 0x4002C11C))      //D
00080 #define IOCON_P2_8           (*((volatile unsigned int *) 0x4002C120))      //D
00081 #define IOCON_P2_9           (*((volatile unsigned int *) 0x4002C124))      //D
00082 #define IOCON_P2_10          (*((volatile unsigned int *) 0x4002C128))      //D
00083 #define IOCON_P2_11          (*((volatile unsigned int *) 0x4002C12C))      //D
00084 #define IOCON_P2_12          (*((volatile unsigned int *) 0x4002C130))      //D
00085 #define IOCON_P2_13          (*((volatile unsigned int *) 0x4002C134))      //D
00086 #define IOCON_P2_14          (*((volatile unsigned int *) 0x4002C138))      //D
00087 #define IOCON_P2_15          (*((volatile unsigned int *) 0x4002C13C))      //D
00088 #define IOCON_P2_16          (*((volatile unsigned int *) 0x4002C140))      //D
00089 #define IOCON_P2_17          (*((volatile unsigned int *) 0x4002C144))      //D
00090 #define IOCON_P2_18          (*((volatile unsigned int *) 0x4002C148))      //D
00091 #define IOCON_P2_19          (*((volatile unsigned int *) 0x4002C14C))      //D
00092 #define IOCON_P2_20          (*((volatile unsigned int *) 0x4002C150))      //D
00093 #define IOCON_P2_21          (*((volatile unsigned int *) 0x4002C154))      //D
00094 #define IOCON_P2_22          (*((volatile unsigned int *) 0x4002C158))      //D
00095 #define IOCON_P2_23          (*((volatile unsigned int *) 0x4002C15C))      //D
00096 #define IOCON_P2_24          (*((volatile unsigned int *) 0x4002C160))      //D
00097 #define IOCON_P2_25          (*((volatile unsigned int *) 0x4002C164))      //D
00098 #define IOCON_P2_26          (*((volatile unsigned int *) 0x4002C168))      //D
00099 #define IOCON_P2_27          (*((volatile unsigned int *) 0x4002C16C))      //D
00100 #define IOCON_P2_28          (*((volatile unsigned int *) 0x4002C170))      //D
00101 #define IOCON_P2_29          (*((volatile unsigned int *) 0x4002C174))      //D
00102 #define IOCON_P2_30          (*((volatile unsigned int *) 0x4002C178))      //D
00103 #define IOCON_P2_31          (*((volatile unsigned int *) 0x4002C17C))      //D
00104 
00105 //Port 3
00106 #define IOCON_P3_0           (*((volatile unsigned int *) 0x4002C180))      //D (IOCON type)
00107 #define IOCON_P3_1           (*((volatile unsigned int *) 0x4002C184))      //D
00108 #define IOCON_P3_2           (*((volatile unsigned int *) 0x4002C188))      //D
00109 #define IOCON_P3_3           (*((volatile unsigned int *) 0x4002C18C))      //D
00110 #define IOCON_P3_4           (*((volatile unsigned int *) 0x4002C190))      //D
00111 #define IOCON_P3_5           (*((volatile unsigned int *) 0x4002C194))      //D
00112 #define IOCON_P3_6           (*((volatile unsigned int *) 0x4002C198))      //D
00113 #define IOCON_P3_7           (*((volatile unsigned int *) 0x4002C19C))      //D
00114 #define IOCON_P3_8           (*((volatile unsigned int *) 0x4002C1A0))      //D
00115 #define IOCON_P3_9           (*((volatile unsigned int *) 0x4002C1A4))      //D
00116 #define IOCON_P3_10          (*((volatile unsigned int *) 0x4002C1A8))      //D
00117 #define IOCON_P3_11          (*((volatile unsigned int *) 0x4002C1AC))      //D
00118 #define IOCON_P3_12          (*((volatile unsigned int *) 0x4002C1B0))      //D
00119 #define IOCON_P3_13          (*((volatile unsigned int *) 0x4002C1B4))      //D
00120 #define IOCON_P3_14          (*((volatile unsigned int *) 0x4002C1B8))      //D
00121 #define IOCON_P3_15          (*((volatile unsigned int *) 0x4002C1BC))      //D
00122 #define IOCON_P3_16          (*((volatile unsigned int *) 0x4002C1C0))      //D
00123 #define IOCON_P3_17          (*((volatile unsigned int *) 0x4002C1C4))      //D
00124 #define IOCON_P3_18          (*((volatile unsigned int *) 0x4002C1C8))      //D
00125 #define IOCON_P3_19          (*((volatile unsigned int *) 0x4002C1CC))      //D
00126 #define IOCON_P3_20          (*((volatile unsigned int *) 0x4002C1D0))      //D
00127 #define IOCON_P3_21          (*((volatile unsigned int *) 0x4002C1D4))      //D
00128 #define IOCON_P3_22          (*((volatile unsigned int *) 0x4002C1D8))      //D
00129 #define IOCON_P3_23          (*((volatile unsigned int *) 0x4002C1DC))      //D
00130 #define IOCON_P3_24          (*((volatile unsigned int *) 0x4002C1E0))      //D
00131 #define IOCON_P3_25          (*((volatile unsigned int *) 0x4002C1E4))      //D
00132 #define IOCON_P3_26          (*((volatile unsigned int *) 0x4002C1E8))      //D
00133 #define IOCON_P3_27          (*((volatile unsigned int *) 0x4002C1EC))      //D
00134 #define IOCON_P3_28          (*((volatile unsigned int *) 0x4002C1F0))      //D
00135 #define IOCON_P3_29          (*((volatile unsigned int *) 0x4002C1F4))      //D
00136 #define IOCON_P3_30          (*((volatile unsigned int *) 0x4002C1F8))      //D
00137 #define IOCON_P3_31          (*((volatile unsigned int *) 0x4002C1FC))      //D
00138 
00139 //Port 4
00140 #define IOCON_P4_0           (*((volatile unsigned int *) 0x4002C200))      //D (IOCON type)
00141 #define IOCON_P4_1           (*((volatile unsigned int *) 0x4002C204))      //D
00142 #define IOCON_P4_2           (*((volatile unsigned int *) 0x4002C208))      //D
00143 #define IOCON_P4_3           (*((volatile unsigned int *) 0x4002C20C))      //D
00144 #define IOCON_P4_4           (*((volatile unsigned int *) 0x4002C210))      //D
00145 #define IOCON_P4_5           (*((volatile unsigned int *) 0x4002C214))      //D
00146 #define IOCON_P4_6           (*((volatile unsigned int *) 0x4002C218))      //D
00147 #define IOCON_P4_7           (*((volatile unsigned int *) 0x4002C21C))      //D
00148 #define IOCON_P4_8           (*((volatile unsigned int *) 0x4002C220))      //D
00149 #define IOCON_P4_9           (*((volatile unsigned int *) 0x4002C224))      //D
00150 #define IOCON_P4_10          (*((volatile unsigned int *) 0x4002C228))      //D
00151 #define IOCON_P4_11          (*((volatile unsigned int *) 0x4002C22C))      //D
00152 #define IOCON_P4_12          (*((volatile unsigned int *) 0x4002C230))      //D
00153 #define IOCON_P4_13          (*((volatile unsigned int *) 0x4002C234))      //D
00154 #define IOCON_P4_14          (*((volatile unsigned int *) 0x4002C238))      //D
00155 #define IOCON_P4_15          (*((volatile unsigned int *) 0x4002C23C))      //D
00156 #define IOCON_P4_16          (*((volatile unsigned int *) 0x4002C240))      //D
00157 #define IOCON_P4_17          (*((volatile unsigned int *) 0x4002C244))      //D
00158 #define IOCON_P4_18          (*((volatile unsigned int *) 0x4002C248))      //D
00159 #define IOCON_P4_19          (*((volatile unsigned int *) 0x4002C24C))      //D
00160 #define IOCON_P4_20          (*((volatile unsigned int *) 0x4002C250))      //D
00161 #define IOCON_P4_21          (*((volatile unsigned int *) 0x4002C254))      //D
00162 #define IOCON_P4_22          (*((volatile unsigned int *) 0x4002C258))      //D
00163 #define IOCON_P4_23          (*((volatile unsigned int *) 0x4002C25C))      //D
00164 #define IOCON_P4_24          (*((volatile unsigned int *) 0x4002C260))      //D
00165 #define IOCON_P4_25          (*((volatile unsigned int *) 0x4002C264))      //D
00166 #define IOCON_P4_26          (*((volatile unsigned int *) 0x4002C268))      //D
00167 #define IOCON_P4_27          (*((volatile unsigned int *) 0x4002C26C))      //D
00168 #define IOCON_P4_28          (*((volatile unsigned int *) 0x4002C270))      //D
00169 #define IOCON_P4_29          (*((volatile unsigned int *) 0x4002C274))      //D
00170 #define IOCON_P4_30          (*((volatile unsigned int *) 0x4002C278))      //D
00171 #define IOCON_P4_31          (*((volatile unsigned int *) 0x4002C27C))      //D
00172 
00173 //Port 5
00174 #define IOCON_P5_0           (*((volatile unsigned int *) 0x4002C280))      //D (IOCON type)
00175 #define IOCON_P5_1           (*((volatile unsigned int *) 0x4002C284))      //D
00176 #define IOCON_P5_2           (*((volatile unsigned int *) 0x4002C288))      //I
00177 #define IOCON_P5_3           (*((volatile unsigned int *) 0x4002C28C))      //I
00178 #define IOCON_P5_4           (*((volatile unsigned int *) 0x4002C290))      //D