一个数码管与NTC的应用实例

源代码在线查看: led.sdb

软件大小: 1050 K
上传用户: q459753722
关键词: NTC 数码管 应用实例
下载地址: 免注册下载 普通下载 VIP

相关代码

				[p GLOBOPT AUTOSTATIC PIC14 PICMIDHI PICLOMID CANREADCODE ]
				"14 d:\HT-PIC\INCLUDE\pic168xa.h
				[v _INDF `Vuc  1 s 1 @0 ]
				"15
				[v _TMR0 `Vuc  1 s 1 @1 ]
				"16
				[v _PCL `Vuc  1 s 1 @2 ]
				"17
				[v _STATUS `Vuc  1 s 1 @3 ]
				"18
				[v _FSR `uc  1 s 1 @4 ]
				"19
				[v _PORTA `Vuc  1 s 1 @5 ]
				"20
				[v _PORTB `Vuc  1 s 1 @6 ]
				"21
				[v _PORTC `Vuc  1 s 1 @7 ]
				"26
				[v _PCLATH `uc  1 s 1 @10 ]
				"27
				[v _INTCON `Vuc  1 s 1 @11 ]
				"28
				[v _PIR1 `Vuc  1 s 1 @12 ]
				"29
				[v _PIR2 `Vuc  1 s 1 @13 ]
				"30
				[v _TMR1 `Vui  1 s 2 @14 ]
				"31
				[v _TMR1L `Vuc  1 s 1 @14 ]
				"32
				[v _TMR1H `Vuc  1 s 1 @15 ]
				"33
				[v _T1CON `Vuc  1 s 1 @16 ]
				"34
				[v _TMR2 `Vuc  1 s 1 @17 ]
				"35
				[v _T2CON `Vuc  1 s 1 @18 ]
				"36
				[v _SSPBUF `Vuc  1 s 1 @19 ]
				"37
				[v _SSPCON `Vuc  1 s 1 @20 ]
				"38
				[v _CCPR1L `Vuc  1 s 1 @21 ]
				"39
				[v _CCPR1H `Vuc  1 s 1 @22 ]
				"40
				[v _CCP1CON `Vuc  1 s 1 @23 ]
				"41
				[v _RCSTA `Vuc  1 s 1 @24 ]
				"42
				[v _TXREG `Vuc  1 s 1 @25 ]
				"43
				[v _RCREG `Vuc  1 s 1 @26 ]
				"44
				[v _CCPR2L `Vuc  1 s 1 @27 ]
				"45
				[v _CCPR2H `Vuc  1 s 1 @28 ]
				"46
				[v _CCP2CON `Vuc  1 s 1 @29 ]
				"47
				[v _ADRESH `Vuc  1 s 1 @30 ]
				"48
				[v _ADCON0 `Vuc  1 s 1 @31 ]
				"51
				[v _OPTION `Xuc  1 s 1 @129 ]
				"52
				[v _TRISA `VXuc  1 s 1 @133 ]
				"53
				[v _TRISB `VXuc  1 s 1 @134 ]
				"54
				[v _TRISC `VXuc  1 s 1 @135 ]
				"59
				[v _PIE1 `VXuc  1 s 1 @140 ]
				"60
				[v _PIE2 `VXuc  1 s 1 @141 ]
				"61
				[v _PCON `VXuc  1 s 1 @142 ]
				"62
				[v _SSPCON2 `VXuc  1 s 1 @145 ]
				"63
				[v _PR2 `VXuc  1 s 1 @146 ]
				"64
				[v _SSPADD `VXuc  1 s 1 @147 ]
				"65
				[v _SSPSTAT `VXuc  1 s 1 @148 ]
				"66
				[v _TXSTA `VXuc  1 s 1 @152 ]
				"67
				[v _SPBRG `VXuc  1 s 1 @153 ]
				"68
				[v _CMCON `VXuc  1 s 1 @156 ]
				"69
				[v _CVRCON `VXuc  1 s 1 @157 ]
				"70
				[v _ADRESL `VXuc  1 s 1 @158 ]
				"71
				[v _ADCON1 `VXuc  1 s 1 @159 ]
				"74
				[v _EEDATA `VYuc  1 s 1 @268 ]
				"75
				[v _EEADR `VYuc  1 s 1 @269 ]
				"76
				[v _EEDATH `VYuc  1 s 1 @270 ]
				"77
				[v _EEADRH `VYuc  1 s 1 @271 ]
				"80
				[v _EECON1 `VZuc  1 s 1 @396 ]
				"81
				[v _EECON2 `VZuc  1 s 1 @397 ]
				"84
				[v _IRP `Vb  1 s 0 @31 ]
				"85
				[v _RP1 `Vb  1 s 0 @30 ]
				"86
				[v _RP0 `Vb  1 s 0 @29 ]
				"87
				[v _TO `Vb  1 s 0 @28 ]
				"88
				[v _PD `Vb  1 s 0 @27 ]
				"89
				[v _ZERO `Vb  1 s 0 @26 ]
				"90
				[v _DC `Vb  1 s 0 @25 ]
				"91
				[v _CARRY `Vb  1 s 0 @24 ]
				"94
				[v _RA5 `Vb  1 s 0 @45 ]
				"95
				[v _RA4 `Vb  1 s 0 @44 ]
				"96
				[v _RA3 `Vb  1 s 0 @43 ]
				"97
				[v _RA2 `Vb  1 s 0 @42 ]
				"98
				[v _RA1 `Vb  1 s 0 @41 ]
				"99
				[v _RA0 `Vb  1 s 0 @40 ]
				"102
				[v _RB7 `Vb  1 s 0 @55 ]
				"103
				[v _RB6 `Vb  1 s 0 @54 ]
				"104
				[v _RB5 `Vb  1 s 0 @53 ]
				"105
				[v _RB4 `Vb  1 s 0 @52 ]
				"106
				[v _RB3 `Vb  1 s 0 @51 ]
				"107
				[v _RB2 `Vb  1 s 0 @50 ]
				"108
				[v _RB1 `Vb  1 s 0 @49 ]
				"109
				[v _RB0 `Vb  1 s 0 @48 ]
				"112
				[v _RC7 `Vb  1 s 0 @63 ]
				"113
				[v _RC6 `Vb  1 s 0 @62 ]
				"114
				[v _RC5 `Vb  1 s 0 @61 ]
				"115
				[v _RC4 `Vb  1 s 0 @60 ]
				"116
				[v _RC3 `Vb  1 s 0 @59 ]
				"117
				[v _RC2 `Vb  1 s 0 @58 ]
				"118
				[v _RC1 `Vb  1 s 0 @57 ]
				"119
				[v _RC0 `Vb  1 s 0 @56 ]
				"139
				[v _GIE `Vb  1 s 0 @95 ]
				"140
				[v _PEIE `Vb  1 s 0 @94 ]
				"141
				[v _T0IE `Vb  1 s 0 @93 ]
				"142
				[v _INTE `Vb  1 s 0 @92 ]
				"143
				[v _RBIE `Vb  1 s 0 @91 ]
				"144
				[v _T0IF `Vb  1 s 0 @90 ]
				"145
				[v _INTF `Vb  1 s 0 @89 ]
				"146
				[v _RBIF `Vb  1 s 0 @88 ]
				"148
				[v _TMR0IE `Vb  1 s 0 @93 ]
				"149
				[v _TMR0IF `Vb  1 s 0 @90 ]
				"155
				[v _ADIF `Vb  1 s 0 @102 ]
				"156
				[v _RCIF `Vb  1 s 0 @101 ]
				"157
				[v _TXIF `Vb  1 s 0 @100 ]
				"158
				[v _SSPIF `Vb  1 s 0 @99 ]
				"159
				[v _CCP1IF `Vb  1 s 0 @98 ]
				"160
				[v _TMR2IF `Vb  1 s 0 @97 ]
				"161
				[v _TMR1IF `Vb  1 s 0 @96 ]
				"164
				[v _CMIF `Vb  1 s 0 @110 ]
				"165
				[v _EEIF `Vb  1 s 0 @108 ]
				"166
				[v _BCLIF `Vb  1 s 0 @107 ]
				"167
				[v _CCP2IF `Vb  1 s 0 @104 ]
				"170
				[v _T1CKPS1 `Vb  1 s 0 @133 ]
				"171
				[v _T1CKPS0 `Vb  1 s 0 @132 ]
				"172
				[v _T1OSCEN `Vb  1 s 0 @131 ]
				"173
				[v _T1SYNC `Vb  1 s 0 @130 ]
				"174
				[v _TMR1CS `Vb  1 s 0 @129 ]
				"175
				[v _TMR1ON `Vb  1 s 0 @128 ]
				"178
				[v _TOUTPS3 `Vb  1 s 0 @150 ]
				"179
				[v _TOUTPS2 `Vb  1 s 0 @149 ]
				"180
				[v _TOUTPS1 `Vb  1 s 0 @148 ]
				"181
				[v _TOUTPS0 `Vb  1 s 0 @147 ]
				"182
				[v _TMR2ON `Vb  1 s 0 @146 ]
				"183
				[v _T2CKPS1 `Vb  1 s 0 @145 ]
				"184
				[v _T2CKPS0 `Vb  1 s 0 @144 ]
				"187
				[v _WCOL `Vb  1 s 0 @167 ]
				"188
				[v _SSPOV `Vb  1 s 0 @166 ]
				"189
				[v _SSPEN `Vb  1 s 0 @165 ]
				"190
				[v _CKP `Vb  1 s 0 @164 ]
				"191
				[v _SSPM3 `Vb  1 s 0 @163 ]
				"192
				[v _SSPM2 `Vb  1 s 0 @162 ]
				"193
				[v _SSPM1 `Vb  1 s 0 @161 ]
				"194
				[v _SSPM0 `Vb  1 s 0 @160 ]
				"197
				[v _CCP1X `Vb  1 s 0 @189 ]
				"198
				[v _CCP1Y `Vb  1 s 0 @188 ]
				"199
				[v _CCP1M3 `Vb  1 s 0 @187 ]
				"200
				[v _CCP1M2 `Vb  1 s 0 @186 ]
				"201
				[v _CCP1M1 `Vb  1 s 0 @185 ]
				"202
				[v _CCP1M0 `Vb  1 s 0 @184 ]
				"205
				[v _SPEN `Vb  1 s 0 @199 ]
				"206
				[v _RX9 `Vb  1 s 0 @198 ]
				"207
				[v _SREN `Vb  1 s 0 @197 ]
				"208
				[v _CREN `Vb  1 s 0 @196 ]
				"209
				[v _ADDEN `Vb  1 s 0 @195 ]
				"210
				[v _FERR `Vb  1 s 0 @194 ]
				"211
				[v _OERR `Vb  1 s 0 @193 ]
				"212
				[v _RX9D `Vb  1 s 0 @192 ]
				"215
				[v _CCP2X `Vb  1 s 0 @237 ]
				"216
				[v _CCP2Y `Vb  1 s 0 @236 ]
				"217
				[v _CCP2M3 `Vb  1 s 0 @235 ]
				"218
				[v _CCP2M2 `Vb  1 s 0 @234 ]
				"219
				[v _CCP2M1 `Vb  1 s 0 @233 ]
				"220
				[v _CCP2M0 `Vb  1 s 0 @232 ]
				"223
				[v _ADCS1 `Vb  1 s 0 @255 ]
				"224
				[v _ADCS0 `Vb  1 s 0 @254 ]
				"225
				[v _CHS2 `Vb  1 s 0 @253 ]
				"226
				[v _CHS1 `Vb  1 s 0 @252 ]
				"227
				[v _CHS0 `Vb  1 s 0 @251 ]
				"228
				[v _ADGO `Vb  1 s 0 @250 ]
				"229
				[v _ADON `Vb  1 s 0 @248 ]
				"232
				[v _RBPU `Xb  1 s 0 @1039 ]
				"233
				[v _INTEDG `Xb  1 s 0 @1038 ]
				"234
				[v _T0CS `Xb  1 s 0 @1037 ]
				"235
				[v _T0SE `Xb  1 s 0 @1036 ]
				"236
				[v _PSA `Xb  1 s 0 @1035 ]
				"237
				[v _PS2 `Xb  1 s 0 @1034 ]
				"238
				[v _PS1 `Xb  1 s 0 @1033 ]
				"239
				[v _PS0 `Xb  1 s 0 @1032 ]
				"242
				[v _TRISA5 `VXb  1 s 0 @1069 ]
				"243
				[v _TRISA4 `VXb  1 s 0 @1068 ]
				"244
				[v _TRISA3 `VXb  1 s 0 @1067 ]
				"245
				[v _TRISA2 `VXb  1 s 0 @1066 ]
				"246
				[v _TRISA1 `VXb  1 s 0 @1065 ]
				"247
				[v _TRISA0 `VXb  1 s 0 @1064 ]
				"250
				[v _TRISB7 `VXb  1 s 0 @1079 ]
				"251
				[v _TRISB6 `VXb  1 s 0 @1078 ]
				"252
				[v _TRISB5 `VXb  1 s 0 @1077 ]
				"253
				[v _TRISB4 `VXb  1 s 0 @1076 ]
				"254
				[v _TRISB3 `VXb  1 s 0 @1075 ]
				"255
				[v _TRISB2 `VXb  1 s 0 @1074 ]
				"256
				[v _TRISB1 `VXb  1 s 0 @1073 ]
				"257
				[v _TRISB0 `VXb  1 s 0 @1072 ]
				"260
				[v _TRISC7 `VXb  1 s 0 @1087 ]
				"261
				[v _TRISC6 `VXb  1 s 0 @1086 ]
				"262
				[v _TRISC5 `VXb  1 s 0 @1085 ]
				"263
				[v _TRISC4 `VXb  1 s 0 @1084 ]
				"264
				[v _TRISC3 `VXb  1 s 0 @1083 ]
				"265
				[v _TRISC2 `VXb  1 s 0 @1082 ]
				"266
				[v _TRISC1 `VXb  1 s 0 @1081 ]
				"267
				[v _TRISC0 `VXb  1 s 0 @1080 ]
				"295
				[v _ADIE `VXb  1 s 0 @1126 ]
				"296
				[v _RCIE `VXb  1 s 0 @1125 ]
				"297
				[v _TXIE `VXb  1 s 0 @1124 ]
				"298
				[v _SSPIE `VXb  1 s 0 @1123 ]
				"299
				[v _CCP1IE `VXb  1 s 0 @1122 ]
				"300
				[v _TMR2IE `VXb  1 s 0 @1121 ]
				"301
				[v _TMR1IE `VXb  1 s 0 @1120 ]
				"304
				[v _CMIE `VXb  1 s 0 @1134 ]
				"305
				[v _EEIE `VXb  1 s 0 @1132 ]
				"306
				[v _BCLIE `VXb  1 s 0 @1131 ]
				"307
				[v _CCP2IE `VXb  1 s 0 @1128 ]
				"310
				[v _POR `VXb  1 s 0 @1137 ]
				"311
				[v _BOR `VXb  1 s 0 @1136 ]
				"314
				[v _GCEN `VXb  1 s 0 @1167 ]
				"315
				[v _ACKSTAT `VXb  1 s 0 @1166 ]
				"316
				[v _ACKDT `VXb  1 s 0 @1165 ]
				"317
				[v _ACKEN `VXb  1 s 0 @1164 ]
				"318
				[v _RCEN `VXb  1 s 0 @1163 ]
				"319
				[v _PEN `VXb  1 s 0 @1162 ]
				"320
				[v _RSEN `VXb  1 s 0 @1161 ]
				"321
				[v _SEN `VXb  1 s 0 @1160 ]
				"324
				[v _STAT_SMP `VXb  1 s 0 @1191 ]
				"325
				[v _STAT_CKE `VXb  1 s 0 @1190 ]
				"326
				[v _STAT_DA `VXb  1 s 0 @1189 ]
				"327
				[v _STAT_P `VXb  1 s 0 @1188 ]
				"328
				[v _STAT_S `VXb  1 s 0 @1187 ]
				"329
				[v _STAT_RW `VXb  1 s 0 @1186 ]
				"330
				[v _STAT_UA `VXb  1 s 0 @1185 ]
				"331
				[v _STAT_BF `VXb  1 s 0 @1184 ]
				"334
				[v _CSRC `VXb  1 s 0 @1223 ]
				"335
				[v _TX9 `VXb  1 s 0 @1222 ]
				"336
				[v _TXEN `VXb  1 s 0 @1221 ]
				"337
				[v _SYNC `VXb  1 s 0 @1220 ]
				"338
				[v _BRGH `VXb  1 s 0 @1218 ]
				"339
				[v _TRMT `VXb  1 s 0 @1217 ]
				"340
				[v _TX9D `VXb  1 s 0 @1216 ]
				"343
				[v _C2OUT `VXb  1 s 0 @1255 ]
				"344
				[v _C1OUT `VXb  1 s 0 @1254 ]
				"345
				[v _C2INV `VXb  1 s 0 @1253 ]
				"346
				[v _C1INV `VXb  1 s 0 @1252 ]
				"347
				[v _CIS `VXb  1 s 0 @1251 ]
				"348
				[v _CM2 `VXb  1 s 0 @1250 ]
				"349
				[v _CM1 `VXb  1 s 0 @1249 ]
				"350
				[v _CM0 `VXb  1 s 0 @1248 ]
				"353
				[v _CVREN `VXb  1 s 0 @1263 ]
				"354
				[v _CVROE `VXb  1 s 0 @1262 ]
				"355
				[v _CVRR `VXb  1 s 0 @1261 ]
				"356
				[v _CVR3 `VXb  1 s 0 @1259 ]
				"357
				[v _CVR2 `VXb  1 s 0 @1258 ]
				"358
				[v _CVR1 `VXb  1 s 0 @1257 ]
				"359
				[v _CVR0 `VXb  1 s 0 @1256 ]
				"362
				[v _ADFM `VXb  1 s 0 @1279 ]
				"363
				[v _ADCS2 `VXb  1 s 0 @1278 ]
				"364
				[v _PCFG3 `VXb  1 s 0 @1275 ]
				"365
				[v _PCFG2 `VXb  1 s 0 @1274 ]
				"366
				[v _PCFG1 `VXb  1 s 0 @1273 ]
				"367
				[v _PCFG0 `VXb  1 s 0 @1272 ]
				"370
				[v _EEPGD `VZb  1 s 0 @3175 ]
				"371
				[v _WRERR `VZb  1 s 0 @3171 ]
				"372
				[v _WREN `VZb  1 s 0 @3170 ]
				"373
				[v _WR `VZb  1 s 0 @3169 ]
				"374
				[v _RD `VZb  1 s 0 @3168 ]
				"4 E:\My Project\7seg\LED.h
				[v _YWCP `Vb  1 s 0 @48 ]
				"5
				[v _DS `Vb  1 s 0 @63 ]
				"6
				[v _SCCP `Vb  1 s 0 @62 ]
				"2 E:\My Project\7seg\led.c
				[v _Display_addr `Xuc  24a e 24 0 ]
				"6
				[v _Display_data `Xuc  24a e 24 0 ]
				"11
				[v _Time_data `Xuc  10a e 10 0 ]
				"13
				[v _Temp_data `Xuc  11a e 11 0 ]
				"15
				[v _Display_turn `uc  1 e 1 0 ]
				"16
				[v _Beep `uc  1 e 1 0 ]
				[v _Flash_Flag `uc  1 e 1 0 ]
				[v _Flash `uc  1 e 1 0 ]
				[v _Flash_turn `uc  1 e 1 0 ]
				[v _Flash_Counter `uc  1 e 1 0 ]
				"19
				[v _Display `(v  1 e 0 0 ]
				{
				[v _data `uc  1 a 1 0 ]
				[v _i `uc  1 a 1 1 ]
				"113
				} 2
							

相关资源