CCS-C Derleme yardım lütfen

Başlatan conk83, 17 Haziran 2013, 13:59:52

conk83

arkadaşlar şu kodları bir türlü derleyemiyorum lütfen yardım edermisiniz hex oluşturamadım sürekli hata alıyorum lütfen yardım.


#include <18F2550.h>
#DEVICE ADC = 10

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOUSBDIV                 //USB clock source comes from primary oscillator
#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES PUT                      //Power Up Timer
#FUSES NOBROWNOUT               //No brownout reset
#FUSES MCLR                     //Master Clear pin enabled
#FUSES NOLVP                    //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O

#use delay(clock=8000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=PORT1)

// LCD PINS
#define LCD_DB4   PIN_B0
#define LCD_DB5   PIN_B1
#define LCD_DB6   PIN_B2
#define LCD_DB7   PIN_B3
#define LCD_E     PIN_C0
#define LCD_RS    PIN_C1

#include <flex_lcd.c>
#include <math.h>

float reading;
float temperature, fahrenheitTemp;


void main()
{
    setup_adc(ADC_CLOCK_INTERNAL); // ADC clock
    setup_adc_ports(AN0); // ADC channel combination
   
    lcd_init();                      // initializes the LCD
    lcd_putc("\f");                  // Clear the LCD
    delay_ms(500);
    while(true)
    {
                 
          set_adc_channel(0);   // Select channel
          reading = read_adc();   // Get input
          delay_ms(1000);    // Wait 1 sec
          temperature = (((reading*0.0048828125f))*100);  // Scales input to Celsius, needs some calibration.
          fahrenheitTemp = (temperature*1.8) + 32;     // conversion to Fahrenheit
          printf(lcd_putc,"\n%3.2f%CC, %3.2fF",temperature,0xdf, fahrenheitTemp);
           
    }

}




pwm.c

#include <flex_lcd.c> yerine #include <lcd.c> kullanarak derledim.

hex:
:10000000EEEF03F0F76A140FF66E000EF722090008
:10001000F5501200280C01060C000A25332E32661A
:100020002543432C2025332E32664600EA6A1E0EF5
:10003000E96EEF500DE0020E016E006A002EFED751
:10004000012EFBD7970E006E002EFED7EF2EF3D7B2
:1000500012002538F00B006E0F0E8A1400108A6E05
:1000600000008A8000D000D08A9012008150006E7B
:1000700000380F0B016E12000F0E9314F009936EEF
:100080008A8400008A800000F1DF01C025F08A9098
:1000900000008A8000D0EADF01C024F08A900F0EB1
:1000A0009314936E2538006EF00E00160050241045
:1000B000016E60EF00F09390939293948A92DCD754
:1000C00001C024F001BEFBD78A9222B08A820000D0
:1000D0008A9400008A902338246E0F0E241624C0C0
:1000E00025F0B7DF23500F0B246E256EB2DF120010
:1000F0000F0E9314936E9390939293948A928A9492
:100100008A900F0E1E6E92DF010E106E10500308C3
:1001100008E3030E256E9DDF050E1E6E87DF102A95
:10012000F5D7020E256E95DF050E1E6E7FDF106A75
:100130001050030809E3036A105064DF116E226A4D
:10014000236EB9DF102AF4D70AEF04F01F2C01D078
:1001500003D0400E206E01D0206A010E1E5C2026C6
:1001600020508009216E226A236EA5DF12001D50E7
:10017000070A07E00B0A0AE0060A10E0020A14E088
:1001800018D0010E1E6E1F6EE1DF18D0226A010E1C
:10019000236E91DF020E1E6E49DF10D0010E1E6E1F
:1001A000020E1F6ED3DF0AD0226A100E236E83DF89
:1001B00005D0010E226E1DC023F07DDF1200090064
:1001C000F5520CE0F6CF10F0F7CF11F0F5CF1DF09F
:1001D000CEDF10C0F6FF11C0F7FFF1D70FEF04F02C
:1001E0008E0E006E11C001F010C002F0036A0152C1
:1001F00009E102C001F0026A080E005E015202E14C
:10020000006A08D0D89001BE04D00236013600063C
:10021000F9D7019E26EF04F01D50D8B471D0006EBE
:100220002150D8B46DD0002604E3810E002668E288
:1002300004D07F0E005E64E363E01EC025F0225010
:10024000251A1E8E228E20502402F4CF27F01F5034
:100250002302F4CF03F0F3CF26F02402F350272635
:10026000F4502622000E032220502302F3502726AA
:10027000F4502622000E026A032202221E5024029B
:10028000F3502626F4500322000E02221E502302B1
:10029000F3500326F4500222000E016A012220507E
:1002A0002202F3502626F4500322000E02220122DD
:1002B0001F502202F3500326F4500222000E0122A6
:1002C0001E502202F3500226F4500122002A01BEE1
:1002D00005D026360336023601360006000E26AE5D
:1002E0000AD0032A02220122015005E1025003E153
:1002F000035001E1002A25BE018E25AE019E04D0E7
:10030000006A016A026A036A1200800ED8B2191AE2
:100310001E6A1F6A15C01DF019501D1A1450D8B45A
:10032000DCD01C6E006E1850D8B4E0D01C5ED8B47F
:1003300081D03DE319C022F0228E1AC021F01BC0EB
:1003400020F01F6AD8902232213220321F321C2E18
:10035000F8D71DAE03D01E80DDD01E901C901E88E5
:10036000EA6A170EE96EE9D01E981DBE0AD01CA0DD
:1003700013D02232213220321F32002AD8B4C5D005
:100380000BD022BE0CD0D8901F3620362136223614
:100390000006D8B4BAD0F5D71E8C6BD01E9C15C001
:1003A0001DF015AE02D0228EA9D0229EA7D018C073
:1003B0001CF018C000F014501C5E15C022F0228EF4
:1003C00016C021F017C020F01F6AD89022322132C7
:1003D00020321F321C2EF8D71DAE03D01E829AD0B9
:1003E0001E921C901E8AEA6A1B0EE96EA6D01E9A07
:1003F0001DBE0AD01CA013D02232213220321F325F
:10040000002AD8B482D00BD022BE0CD0D8901F3690
:100410002036213622360006D8B477D0F5D71E8E86
:1004200028D01E9E19C01DF019AE02D0228E66D0B3
:10043000229E64D019C022F0228E1AC021F01BC067
:1004400020F01DAE04D0229E1E8464D01E941F6A2C
:100450001C90EA6A170EE96E70D01DBE1CD015C044
:100460001DF01CA006D02232213220321F32002A79
:100470004CE01FAE0BD0202A09E1212A07E1222AF5
:1004800005E1223221322032002A3FE01EBC86D70D
:100490001EBEC7D71CD0800E221A22AE04D03AD07E
:1004A00019C01DF00AD015C01DF0225206E12152DC
:1004B00004E1205202E1006A21D022BE08D0D89087
:1004C0001F36203621362236002EF7D71ED01DAE1D
:1004D00002D0228E13D0229E11D018C000F019C075
:1004E00022F01AC021F01BC020F008D014C000F088
:1004F00015C022F016C021F017C020F022C001F074
:1005000021C002F020C003F034D0006A016A026A00
:10051000036A2FD01F6A201E211E221E1F1E1F2AA3
:1005200005E1202A03E1212A01E1222A1EB015D784
:100530001EB256D71EB48AD7B3D7EF50202605E394
:10054000212A03E1222AD8B41C80ED52EF50212643
:1005500003E3222AD8B41C80ED52EF50EFBE01D045
:10056000800A2226D8B01C801EB8FED61EBA3FD7FD
:1005700074D78AEF04F01D50B6081D6E036A1EC0C2
:1005800021F01E8ED8901E321F32203203320232EA
:10059000013200321D2EF6D721AE0BD0001E011EF7
:1005A000021E031E002AD8B4012AD8B4022AD8B4E5
:1005B000032A49EF03F0D8B203D0EA6A250EE96EA8
:1005C000006A016A026A036A256A266A276A286A3B
:1005D00024502310221021102CE0200E296ED890D8
:1005E0001D361E361F362036253626362736283647
:1005F0002450285C08E12350275C05E12250265C4A
:1006000002E12150255C0FE32150255E2250D8A045
:10061000223C265E2350D8A0233C275E2450D8A03D
:10062000243C285ED8800036013602360336292E57
:10063000D6D725C0EFFF26C0ECFF27C0ECFF28C0AF
:10064000ECFF1200E950156E1450176E19E013C03C
:1006500020F012C01FF011C01EF010C01DF0246A5F
:10066000236A200E226E820E216ED6DD03C013F0A7
:1006700002C012F001C011F000C010F0172EE7D731
:1006800013C020F012C01FF011C01EF010C01DF0EA
:1006900072D703C013F002C012F001C011F000C005
:1006A00010F013AE0DD01506158A101E111E121E65
:1006B000131E102AD8B4112AD8B4122AD8B4132A77
:1006C0003B0E1C6E9A0E1B6ECA0E1A6E196A0A0E2B
:1006D000176E1450D8B4152AD882EA6A100EE96E43
:1006E00013C020F012C01FF011C01EF010C01DF08A
:1006F0001CC024F01BC023F01AC022F019C021F046
:100700005ADF015000520FE11428175C0CE015501D
:100710000CE00F0B175C01E037E215BE35D015BCBD
:1007200004D0200E2DD0200E151615AA0CD0159A27
:100730001450D8A415060050156E2D0E1D6E17DD31
:100740001550006E156A1450175C0AE10050156EC2
:100750002E0E1D6E0CDD1550006E200E1516000EAF
:10076000300E15AA0DD0159A1450D8A415060050B5
:10077000156E2D0E1D6EFBDC1550006E156A300EC9
:10078000002600C01DF0F3DCD8921CC020F01BC076
:100790001FF01AC01EF019C01DF0246A236A226AD5
:1007A0000A0E216E08DF03C01CF002C01BF001C05E
:1007B0001AF000C019F0172E8FD712000900F6CFDB
:1007C00011F0F7CF12F0F5CF1DF0D1DC11C0F6FF1C
:1007D00012C0F7FF102EF2D7ABEF04F0F86AD09EEC
:1007E000EA6AE96AB8960C0EAF6EA20EAC6E900E75
:1007F000AB6EC150C00B0F09C16E070EB46EC05076
:10080000C00B0709C06EC08EC280C150C00B0E095C
:10081000C16E6ED4180EF66E000EF76ED0D4020EB6
:10082000106EFA0E1E6E02DC102EFBD7000E016E4B
:10083000C250C30B0110C26EC282C2B2FED7C4CF77
:1008400003F0C3CF10F0C4CF11F0CAD403C007F037
:1008500002C006F001C005F000C004F0040E106EE6
:10086000FA0E1E6E16EC00F0102EFAD707C020F01C
:1008700006C01FF005C01EF004C01DF0246A236AE4
:10088000200E226E770E216EC7DC00C010F001C072
:1008900011F002C012F003C013F003C020F002C038
:1008A0001FF001C01EF000C01DF0246A236A480E2C
:1008B000226E850E216EB0DC03C00BF002C00AF080
:1008C00001C009F000C008F00BC020F00AC01FF002
:1008D00009C01EF008C01DF0660E246E236E226E45
:1008E0007F0E216E99DC00C010F001C011F002C033
:1008F00012F003C013F0D89203C017F002C016F034
:1009000001C015F000C014F01B6A1A6A196A840E3F
:10091000186EFBD403C00FF002C00EF001C00DF042
:1009200000C00CF00A0E1D6E22DC020EE96E0BC038
:1009300013F00AC012F009C011F008C010F0146ED4
:1009400081DEDF0E1D6E13DC220EF66E000EF76EDA
:10095000030E106E33D7020EE96E0FC013F00EC0F7
:1009600012F00DC011F00CC010F0146E6BDE460ECC
:0A0970001D6EB7EC00F05AD703002B
:020000040030CA
:0E0000001FCC381E008781000FC00FE00F409C
:00000001FF
;PIC18F2550
;CRC=D5BB  CREATED="18-Haz-13 08:11"
_/\/\/\_ -[ı- -ı>|- -|ı|ı|ı- -ı< -||- -l[]l-

conk83

çok teşekkür ederim pwm.c arkadaşım çok sağol uzun zamandır derlemeye çalışıyordum yardımların için teşekkür ederim

conk83

pwm.c arkadaşım hex pice attım fakat LCD ekran pinlerine herhangi bir çıkış gelmedi isis ortamında ekran çalışmadı yani gerçek ortamda çıkış alabilirmiyim LCD ekrana

pwm.c

CCS4.140 da LCD tanımlamaları değişmiş. kodları yeniden düzenledim. birde şunu dene bakalım.
ayrıca RW bacağınıda kullanman gerekiyor yoksa olmuyor. bunu portc 2 ye ilave ettim.

#include <18F2550.h>
#DEVICE ADC = 10

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOUSBDIV                 //USB clock source comes from primary oscillator
#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES PUT                      //Power Up Timer
#FUSES NOBROWNOUT               //No brownout reset
#FUSES MCLR                     //Master Clear pin enabled
#FUSES NOLVP                    //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O

#use delay(clock=8000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=PORT1)

// LCD PINS
#define LCD_ENABLE_PIN  PIN_C0                                    ////
#define LCD_RS_PIN      PIN_C1                                    ////
#define LCD_RW_PIN      PIN_C2                                    ////
#define LCD_DATA4       PIN_B0                                    ////
#define LCD_DATA5       PIN_B1                                    ////
#define LCD_DATA6       PIN_B2                                    ////
#define LCD_DATA7       PIN_B3
#include <lcd.c>
#include <math.h>

float reading;
float temperature, fahrenheitTemp;


void main()
{
    setup_adc(ADC_CLOCK_INTERNAL); // ADC clock
    setup_adc_ports(AN0); // ADC channel combination
   
    lcd_init();                      // initializes the LCD
    lcd_putc("\f");                  // Clear the LCD
    delay_ms(500);
    while(true)
    {
                 
          set_adc_channel(0);   // Select channel
          reading = read_adc();   // Get input
          delay_ms(1000);    // Wait 1 sec
          temperature = (((reading*0.0048828125f))*100);  // Scales input to Celsius, needs some calibration.
          fahrenheitTemp = (temperature*1.8) + 32;     // conversion to Fahrenheit
          printf(lcd_putc,"\n%3.2f%CC, %3.2fF",temperature,0xdf, fahrenheitTemp);
           
    }

}


hex:
:1000000034EF04F0F76A140FF66E000EF7220900C1
:10001000F5501200280C01060C000A25332E32661A
:100020002543432C2025332E32664600EA6A1E0EF5
:10003000E96EEF500DE0020E016E006A002EFED751
:10004000012EFBD7970E006E002EFED7EF2EF3D7B2
:10005000120025B002D08A9001D08A80939025B2F8
:1000600002D08A9201D08A82939225B402D08A94D7
:1000700001D08A84939425B602D08A9601D08A86CC
:10008000939600008B80949000D000D08B90949039
:100090001200266A9380000E81B0010E2612938210
:1000A000000E81B2010E006ED8900036005026126C
:1000B0009384000E81B4010E006E00360036FC0EF3
:1000C0000016005026129386000E81B6010E006EB7
:1000D000003600360036F80E00160050261226C0F4
:1000E00001F0120093809382938493868B8494947E
:1000F00000008B8094900000CCDF01C025F08B9035
:10010000949000008B80949000D0C3DF01C024F055
:100110008B90949093909392939493962538006E3D
:10012000F00E001600502410016E9DEF00F0949028
:10013000949294948B929492D5D701C024F001BEEE
:10014000FBD7225202E18B9201D08B829492000065
:100150008B94949400008B9094902338246E0F0E0F
:10016000241624C025F075DF23500F0B246E256E56
:1001700070DF12009390939293949396949094923C
:1001800094948B9294928B9494948B9094900F0E61
:100190001E6E4CDF010E106E1050030808E3030EB4
:1001A000256E57DF050E1E6E41DF102AF5D7020EB1
:1001B000256E4FDF050E1E6E39DF106A10500308E2
:1001C00009E3036A10501EDF116E226A236EAFDF4F
:1001D000102AF4D750EF04F01F2C01D003D0400EAA
:1001E000206E01D0206A010E1E5C2026205080095E
:1001F000216E226A236E9BDF12001D50070A07E062
:100200000B0A0AE0060A10E0020A14E018D0010EF8
:100210001E6E1F6EE1DF18D0226A010E236E87DF8B
:10022000020E1E6E03DF10D0010E1E6E020E1F6E38
:10023000D3DF0AD0226A100E236E79DF05D0010EBB
:10024000226E1DC023F073DF12000900F5520CE08E
:10025000F6CF10F0F7CF11F0F5CF1DF0CEDF10C0C4
:10026000F6FF11C0F7FFF1D755EF04F08E0E006EC8
:1002700011C001F010C002F0036A015209E102C08E
:1002800001F0026A080E005E015202E1006A08D025
:10029000D89001BE04D0023601360006F9D7019E7F
:1002A0006DEF04F01D50D8B471D0006E2150D8B459
:1002B0006DD0002604E3810E002668E204D07F0E94
:1002C000005E64E363E01EC025F02250251A1E8EF6
:1002D000228E20502402F4CF27F01F502302F4CFA7
:1002E00003F0F3CF26F02402F3502726F450262201
:1002F000000E032220502302F3502726F45026221A
:10030000000E026A032202221E502402F350262607
:10031000F4500322000E02221E502302F350032643
:10032000F4500222000E016A012220502202F350F2
:100330002626F4500322000E022201221F50220220
:10034000F3500326F4500222000E01221E50220216
:10035000F3500226F4500122002A01BE05D02636B1
:100360000336023601360006000E26AE0AD0032AF6
:1003700002220122015005E1025003E1035001E194
:10038000002A25BE018E25AE019E04D0006A016AB6
:10039000026A036A1200800ED8B2191A1E6A1F6A16
:1003A00015C01DF019501D1A1450D8B4DCD01C6EA5
:1003B000006E1850D8B4E0D01C5ED8B481D03DE3B4
:1003C00019C022F0228E1AC021F01BC020F01F6A33
:1003D000D8902232213220321F321C2EF8D71DAE87
:1003E00003D01E80DDD01E901C901E88EA6A170E76
:1003F000E96EE9D01E981DBE0AD01CA013D022328F
:10040000213220321F32002AD8B4C5D00BD022BEF0
:100410000CD0D8901F362036213622360006D8B4AC
:10042000BAD0F5D71E8C6BD01E9C15C01DF015AE32
:1004300002D0228EA9D0229EA7D018C01CF018C0CE
:1004400000F014501C5E15C022F0228E16C021F060
:1004500017C020F01F6AD8902232213220321F327A
:100460001C2EF8D71DAE03D01E829AD01E921C906F
:100470001E8AEA6A1B0EE96EA6D01E9A1DBE0AD01D
:100480001CA013D02232213220321F32002AD8B4CD
:1004900082D00BD022BE0CD0D8901F362036213609
:1004A00022360006D8B477D0F5D71E8E28D01E9EEF
:1004B00019C01DF019AE02D0228E66D0229E64D0E3
:1004C00019C022F0228E1AC021F01BC020F01DAEF0
:1004D00004D0229E1E8464D01E941F6A1C90EA6A77
:1004E000170EE96E70D01DBE1CD015C01DF01CA0EB
:1004F00006D02232213220321F32002A4CE01FAEB9
:100500000BD0202A09E1212A07E1222A05E1223223
:1005100021322032002A3FE01EBC86D71EBEC7D73C
:100520001CD0800E221A22AE04D03AD019C01DF081
:100530000AD015C01DF0225206E1215204E12052DA
:1005400002E1006A21D022BE08D0D8901F362036A2
:1005500021362236002EF7D71ED01DAE02D0228EB5
:1005600013D0229E11D018C000F019C022F01AC07A
:1005700021F01BC020F008D014C000F015C022F0FC
:1005800016C021F017C020F022C001F021C002F0F7
:1005900020C003F034D0006A016A026A036A2FD0D7
:1005A0001F6A201E211E221E1F1E1F2A05E1202A4F
:1005B00003E1212A01E1222A1EB015D71EB256D727
:1005C0001EB48AD7B3D7EF50202605E3212A03E1D2
:1005D000222AD8B41C80ED52EF50212603E3222AB0
:1005E000D8B41C80ED52EF50EFBE01D0800A222615
:1005F000D8B01C801EB8FED61EBA3FD774D7D1EF34
:1006000004F01D50B6081D6E036A1EC021F01E8E38
:10061000D8901E321F3220320332023201320032B1
:100620001D2EF6D721AE0BD0001E011E021E031E8A
:10063000002AD8B4012AD8B4022AD8B4032A8FEFEA
:1006400003F0D8B203D0EA6A250EE96E006A016AA7
:10065000026A036A256A266A276A286A24502310D8
:10066000221021102CE0200E296ED8901D361E3647
:100670001F36203625362636273628362450285C65
:1006800008E12350275C05E12250265C02E121505D
:10069000255C0FE32150255E2250D8A0223C265E27
:1006A0002350D8A0233C275E2450D8A0243C285EA9
:1006B000D8800036013602360336292ED6D725C01B
:1006C000EFFF26C0ECFF27C0ECFF28C0ECFF1200B4
:1006D000E950156E1450176E19E013C020F012C0C7
:1006E0001FF011C01EF010C01DF0246A236A200EF6
:1006F000226E820E216ED6DD03C013F002C012F00E
:1007000001C011F000C010F0172EE7D713C020F081
:1007100012C01FF011C01EF010C01DF072D703C030
:1007200013F002C012F001C011F000C010F013AEBF
:100730000DD01506158A101E111E121E131E102A2A
:10074000D8B4112AD8B4122AD8B4132A3B0E1C6E7E
:100750009A0E1B6ECA0E1A6E196A0A0E176E145084
:10076000D8B4152AD882EA6A100EE96E13C020F0B8
:1007700012C01FF011C01EF010C01DF01CC024F0EC
:100780001BC023F01AC022F019C021F05ADF01501B
:1007900000520FE11428175C0CE015500CE00F0B11
:1007A000175C01E037E215BE35D015BC04D0200E31
:1007B0002DD0200E151615AA0CD0159A1450D8A4B9
:1007C00015060050156E2D0E1D6E17DD1550006EAE
:1007D000156A1450175C0AE10050156E2E0E1D6E3E
:1007E0000CDD1550006E200E1516000E300E15AAE9
:1007F0000DD0159A1450D8A415060050156E2D0E64
:100800001D6EFBDC1550006E156A300E002600C010
:100810001DF0F3DCD8921CC020F01BC01FF01AC0E2
:100820001EF019C01DF0246A236A226A0A0E216E86
:1008300008DF03C01CF002C01BF001C01AF000C0AA
:1008400019F0172E8FD712000900F6CF11F0F7CF4D
:1008500012F0F5CF1DF0D1DC11C0F6FF12C0F7FF8A
:10086000102EF2D7F2EF04F0F86AD09EEA6AE96A35
:10087000B8960C0EAF6EA20EAC6E900EAB6EC15061
:10088000C00B0F09C16E070EB46EC050C00B070934
:10089000C06EC08EC280C150C00B0E09C16E6AD43A
:1008A000180EF66E000EF76ED0D4020E106EFA0E11
:1008B0001E6E16EC00F0102EFAD7000E016EC2501C
:1008C000C30B0110C26EC282C2B2FED7C4CF03F006
:1008D000C3CF10F0C4CF11F0C9D403C007F002C0D9
:1008E00006F001C005F000C004F0040E106EFA0E10
:1008F0001E6E16EC00F0102EFAD707C020F006C0CE
:100900001FF005C01EF004C01DF0246A236A200EEB
:10091000226E770E216EC6DC00C010F001C011F00F
:1009200002C012F003C013F003C020F002C01FF099
:1009300001C01EF000C01DF0246A236A480E226E1A
:10094000850E216EAFDC03C00BF002C00AF001C0BF
:1009500009F000C008F00BC020F00AC01FF009C069
:100960001EF008C01DF0660E246E236E226E7F0EF0
:10097000216E98DC00C010F001C011F002C012F02E
:1009800003C013F0D89203C017F002C016F001C0E4
:1009900015F000C014F01B6A1A6A196A840E186EEA
:1009A000FAD403C00FF002C00EF001C00DF000C079
:1009B0000CF00A0E1D6E21DC020EE96E0BC013F066
:1009C0000AC012F009C011F008C010F0146E80DEE9
:1009D000DF0E1D6E12DC220EF66E000EF76E030E99
:1009E000106E32D7020EE96E0FC013F00EC012F077
:1009F0000DC011F00CC010F0146E6ADE460E1D6EB4
:080A0000FDEC00F05AD70300E1
:020000040030CA
:0E0000001FCC381E008781000FC00FE00F409C
:00000001FF
;PIC18F2550
;CRC=2949  CREATED="18-Haz-13 15:43"
_/\/\/\_ -[ı- -ı>|- -|ı|ı|ı- -ı< -||- -l[]l-

conk83

çok teşekkür ederim dostum allah razı olsun şuanda çalışıyor istediğim sonucu elde ettim çok teşekkür ederim sağol.

conk83

pwm.c arkadaşım son 2 sorum daha olucak çok soru sordum biliyorum ama termokupula girdiğim derece 302 fakat LCD ekranda gözüken derece 262 sorun nerede olabilir.

bulduğum siteyide yollarım ad594 ile ilgili pek devre bulamadım birtek bu sitede kod ve uygulamayı buldum.

http://stephenawotula.blogspot.com/2012/07/digital-thermometer-using-pic.html

asıl kaynak bu  devrede pul up dirençlerine bağlı butonlar olması gerekiyor sanırım ben butonları  bağladım ama herhangi bir sonuç alamadım rb portlarında.

son sorum rc6 yani 17. bacak aktif burası neden aktif olabilir şimdiden teşekkürler.

pwm.c

AD594 hakkında fazla birşey bilmiyorum. bir çok hesaplama yöntemi denedim ama aynı sayıyı tutturamadım. belki proteusla alakalı bir sorunda olabilir. şuanki hesaplamada sadece milivolt dönüşümü yapılmış okadar. bence sana MAX6675 türünden entegreler kullanmanı öneririm.

portc6 nın aktif olma nedeni program kodlarında rs232 kurulumu yapılmış. bu kodu kaldırırsan düzelir:
 #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=PORT1)
_/\/\/\_ -[ı- -ı>|- -|ı|ı|ı- -ı< -||- -l[]l-

conk83

çok teşekkür ederim pwm.c arkadaşım bilgilendirdiğin için sağol

Powered by EzPortal