/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.bak
1,20 → 1,19
#include "C:\Users\Honza\Documents\pic\I2C_vlhkost\main.h"
#include <16F887.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOCPD //No EE protection
#FUSES NOBROWNOUT //No brownout reset
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOWRT //Program memory not write protected
#FUSES BORV40 //Brownout reset at 4.0V
 
#use delay(clock=8000000)
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
 
//TODO: User Code
 
}
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.c
1,11 → 1,5
#include "C:\Users\Honza\Documents\pic\I2C_vlhkost\main.h"
#include "main.h"
 
#define EEPROM_SDA PIN_B0
#define EEPROM_SCL PIN_B1
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL)
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD
 
 
void main()
{
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.cof
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.err
1,5 → 1,5
>>> Warning 202 "main.c" Line 23(21,26): Variable never used: data3
>>> Warning 202 "main.c" Line 25(17,19): Variable never used: ZL
>>> Warning 202 "main.c" Line 25(20,22): Variable never used: ZH
Memory usage: ROM=12% RAM=2% - 8%
>>> Warning 202 "main.c" Line 17(21,26): Variable never used: data3
>>> Warning 202 "main.c" Line 19(17,19): Variable never used: ZL
>>> Warning 202 "main.c" Line 19(20,22): Variable never used: ZH
Memory usage: ROM=14% RAM=2% - 8%
0 Errors, 3 Warnings.
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.esym
1,7 → 1,7
D G "__PCM__" 0 98 ""4.106""
D G "__DEVICE__" 0 98 "887"
D G "__DATE__" 0 98 ""03-4-13""
D G "__TIME__" 0 98 ""09:45:34"" "Standard Header file for the PIC16F887 device ////////////////"
D G "__PCM__" 0 77 ""4.106""
D G "__DEVICE__" 0 77 "887"
D G "__DATE__" 0 77 ""13-IV-13""
D G "__TIME__" 0 77 ""23:28:46"" "Standard Header file for the PIC16F887 device ////////////////"
d G "PIN_A0" 2 20 "40"
d G "PIN_A1" 2 21 "41"
d G "PIN_A2" 2 22 "42"
273,27 → 273,25
d G "INT_RB5" 2 418 "0x0200B08"
d G "INT_RB6" 2 419 "0x0400B08"
d G "INT_RB7" 2 420 "0x0800B08"
D G "EEPROM_SDA" 0 3 "PIN_B0"
D G "EEPROM_SCL" 0 4 "PIN_B1"
F G "main" 0 9 "void()"
C L "main" 0 19 1 "FUNCTION"
V L "data1" 0 23 "int16"
V L "data2" 0 23 "int16"
V L "data3" 0 23 "int16"
V L "XL" 0 25 "int8"
V L "XH" 0 25 "int8"
V L "YL" 0 25 "int8"
V L "YH" 0 25 "int8"
V L "ZL" 0 25 "int8"
V L "ZH" 0 25 "int8"
C L "main" 0 19 1 "FUNCTION"
V L "ack" 0 35 "int1"
C L "main" 0 19 1 "FUNCTION"
C L "main" 0 19 1 "FUNCTION"
C L "main" 0 19 1 "FUNCTION"
C L "main" 0 19 1 "FUNCTION"
C L "main" 0 19 1 "FUNCTION"
C L "main" 0 19 1 "FUNCTION"
F G "main" 0 3 "void()"
C L "main" 0 13 1 "FUNCTION"
V L "data1" 0 17 "int16"
V L "data2" 0 17 "int16"
V L "data3" 0 17 "int16"
V L "XL" 0 19 "int8"
V L "XH" 0 19 "int8"
V L "YL" 0 19 "int8"
V L "YH" 0 19 "int8"
V L "ZL" 0 19 "int8"
V L "ZH" 0 19 "int8"
C L "main" 0 13 1 "FUNCTION"
V L "ack" 0 29 "int1"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep_ulpwu" 1 0
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.h
17,3 → 17,6
 
#use delay(clock=8000000)
 
#use i2c(master, sda=PIN_C4, scl=PIN_C3)
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.hex
1,4 → 1,4
:1000000002308A00632A0000D3346D38EC32202A93
:1000000002308A008B2A0000D3346D38EC32202A6B
:10001000E832F236EF36653AE8327210A0060A008E
:10002000533A613B3A10253220147039EF3165376D
:10003000F430A9060A00533A613B3A1025266414AD
17,116 → 17,132
:100100000D080313AF0003170F080313B0002E08E8
:10011000B70031202F0803178D0003133008031791
:100120008F008D0A03198F0A031353280317031333
:100130008A110A12CB2A0830F800000086108316B4
:10014000861000008312AE0D0610031CAA28831629
:10015000061483120318AF28831606108312831621
:1001600086148312861CB228F80B9D280000861086
:100170008316861000000614000000008614831207
:10018000861CC028F8010000061878148610831613
:10019000861083120610831606108312080008309A
:1001A000AF007708B000831606140000861483128F
:1001B000861CD82806180314061C0310F80D00002E
:1001C0008316861083128610AF0BD328831606146D
:1001D00000008312061030080319F1288316061058
:1001E00083120000831686148312861CF5280000F3
:1001F00086108316861000008312061083160610E0
:1002000083120800831603178C170C1400000000DB
:100210000318312983120C087F390313B000031728
:100220000D080313B10003170F080313B2003008C1
:10023000B7003120310803178D000313320803176C
:100240008F0083168C170C14000000008312031318
:10025000AF0B2B292E29831603173129502983161A
:10026000031783120C0D0E0D7F390313B000031713
:100130008A110A12F32A0830F80000008711A01172
:1001400020088316870000008312AE0D0712031CDF
:10015000AF282016200883168700B32883122012A8
:1001600020088316870000008312A015200883163C
:1001700087008312871DBA28F80B9D28000087117D
:10018000A011200883168700000083122016200883
:1001900083168700000000008312A0152008831634
:1001A00087008312871DD228F8010000071A7814EF
:1001B0008711A011200883168700831207122012CE
:1001C000200883168700831208000830AF007708E4
:1001D000B000201620088316870000008312A015A7
:1001E0002008831687008312871DF428071A03143A
:1001F000071E0310F80D0000A011200883168700C9
:1002000083128711AF0BE928201620088316870078
:100210000000831207123008031913292012200846
:100220008316870083120000A0152008831687001C
:100230008312871D192900008711A0112008831639
:1002400087000000831207122012200883168700FF
:1002500083120800831603178C170C14000000008B
:100260000318592983120C087F390313B0000317B0
:100270000D080313B10003170F080313B200300871
:10028000B7003120310803178D000313320803171C
:100290008F008D0A03198F0A03100313AF0B022975
:1002A00008003608F8013502031859293508F70007
:1002B0006529F7010830B700B50DF70D360877024C
:1002C0000318F700F80DB70B5C2908002030301E2A
:1002D0003030B1002F08F700AF1F7529F709F70A72
:1002E0007708AF002D30B100B0172F08B50064308B
:1002F000B60051217708AF0030307807B2002F08E0
:10030000B5000A30B600512130307707B4003030E4
:100310007807B3003108F700B01D9029B01F3011E5
:10032000301A9D29B01FB8293019B8297708B200B2
:10033000B018B8297708B300B82930303202031D4D
:10034000B8297708B2002030B100B01DAB293011B8
:10035000B014B01FB01030303302031DB829770835
:10036000B3002030B200B01DAB29B010B01F301068
:10037000301DBD293108B7003120B01CC229320818
:10038000B7003120301CC7293308B70031203408AA
:10039000B70031208A110A12B22BB6010408B50049
:1003A0003610831B3614AF1FDD29B517351EB50A6D
:1003B000AE09AF09AE0A0319AF0A2F0EF038B1002B
:1003C000B107E23EB200323EB4002F080F39B20747
:1003D000B207B407E93EB300B307B3072E0E0F39D7
:1003E000B307B407B30DB40DB409B40D2E080F391B
:1003F000B407B10D0730B0000A30B407B303031CD3
:10040000FD29B307B203031C012AB207B103031C81
:10041000052AB107B003031C092A30308400831376
:1004200007303505351384033505031D1E2A351A9B
:10043000840A351A1E2A2030F7003B2A84073430FC
:100440000402031935170008F700031D2F2A351B76
:100450002F2A351A492AB5192F2A20303A2AB51FD2
:10046000372A2D30F70084033513B5133B2AB51511
:1004700035123030F707AF010408AE002F10831B90
:100480002F147708B70031202E08840083132F180B
:100490008317840A351F1F2A08002F308400831316
:1004A00000080319602A0230F800F701F70B562AFA
:1004B000F80B552A9730F700F70B5C2A800B532A6C
:1004C0008A110A12F72B840183131F3083057130C0
:1004D00083168F000F088611831286158316031763
:1004E0000908C039890003131F129F120030031737
:1004F00088008312870188018901FF300313A0005F
:10050000831603170908C039890003131F129F12AD
:10051000003003178800831203131F139F138316E1
:100520009F1383121F149412A012200883168700B1
:10053000831220162008831687008312A01120083A
:1005400083168700013083129400003083169400D4
:100550000108C73908388100831290010030F80083
:100560009200003083169200831220152008831613
:1005700087008312970183169B019C0101309D0027
:100580008312031787018801890104308D00003030
:100590008F0003135328A201A101A401A301831614
:1005A000061400008614000083120610831606103D
:1005B0000000831286108316861081308312AE00ED
:1005C0009B2078082D1078182D1483160610000033
:1005D00086148312861CEA2A0000EE2A0000831685
:1005E0000614000001308312AD06831606100000C9
:1005F00086148312861CFA2A0000FE2A0000831645
:100600000614000006140000861400008312061071
:100610008316061000008312861083168610803021
:100620008312AE009B20F330AE009B20831606148D
:100630000000861400008312861C1C2B06108316F3
:1006400006100000831286108316861081308312F4
:10065000AE009B20F701CF207808A800F701CF203B
:100660007808A70083160610000086148312861CE3
:10067000372B00003B2B00008316061400000614E5
:100680000000861400008312061083160610000076
:10069000831286108316861080308312AE009B2052
:1006A000F530AE009B20831606140000861400006F
:1006B0008312861C592B0610831606100000831225
:1006C00086108316861081308312AE009B20F701BE
:1006D000CF207808AA00F701CF207808A900831658
:1006E0000610000086148312861C742B0000782BE1
:1006F00000008316061400008312AF012808AE0024
:10070000AF00AE012708AE070318AF0A2F0CA200F6
:100710002E0CA100A20CA10C3F30A205AF012A08AB
:10072000AE00AF00AE012908AE070318AF0A2F0CC8
:10073000A4002E0CA300A40CA30C3F30A405003091
:100740002D180130AE00103003178D0000308F00DF
:10075000031006300313AF0002212E08AF001F3034
:10076000B0006629143003178D0000308F0003108D
:100770000D300313AF0002211B3003178D00003032
:100780008F00031006300313AF00022110308400E5
:100790002208AF002108AE00CD211F3003178D00C5
:1007A00000308F0003140C300313AF0002212630F9
:1007B00003178D0000308F00031006300313AF00C5
:1007C0000221103084002408AF002308AE00CD21A0
:1007D0002A3003178D0000308F0003140C300313F0
:1007E000AF0002210830AE00FA30AF004D2AAE0B48
:0607F000F42BCB2A63008C
:100290008F0083168C170C140000000083120313C8
:1002A000AF0B53295629831603175929782983162A
:1002B000031783120C0D0E0D7F390313B0000317C3
:1002C0000D080313B10003170F080313B200300821
:1002D000B7003120310803178D00031332080317CC
:1002E0008F008D0A03198F0A03100313AF0B2A29FD
:1002F00008003608F8013502031881293508F7008F
:100300008D29F7010830B700B50DF70D36087702D3
:100310000318F700F80DB70B842908002030301EB1
:100320003030B1002F08F700AF1F9D29F709F70AF9
:100330007708AF002D30B100B0172F08B50064303A
:10034000B60079217708AF0030307807B2002F0867
:10035000B5000A30B600792130307707B40030306C
:100360007807B3003108F700B01DB829B01F30116D
:10037000301AC529B01FE0293019E0297708B200EA
:10038000B018E0297708B300E02930303202031DAD
:10039000E0297708B2002030B100B01DD329301118
:1003A000B014B01FB01030303302031DE0297708BD
:1003B000B3002030B200B01DD329B010B01F3010F0
:1003C000301DE5293108B7003120B01CEA29320878
:1003D000B7003120301CEF293308B7003120340832
:1003E000B70031208A110A12302CB6010408B5007A
:1003F0003610831B3614AF1F052AB517351EB50AF4
:10040000AE09AF09AE0A0319AF0A2F0EF038B100DA
:10041000B107E23EB200323EB4002F080F39B207F6
:10042000B207B407E93EB300B307B3072E0E0F3986
:10043000B307B407B30DB40DB409B40D2E080F39CA
:10044000B407B10D0730B0000A30B407B303031C82
:10045000252AB307B203031C292AB207B103031CE0
:100460002D2AB107B003031C312A303084008313D6
:1004700007303505351384033505031D462A351A23
:10048000840A351A462A2030F700632A840734305C
:100490000402031935170008F700031D572A351BFE
:1004A000572A351A712AB519572A2030622AB51FE2
:1004B0005F2A2D30F70084033513B513632AB51571
:1004C00035123030F707AF010408AE002F10831B40
:1004D0002F147708B70031202E08840083132F18BB
:1004E0008317840A351F472A08002F30840083139E
:1004F00000080319882A0230F800F701F70B7E2A5A
:10050000F80B7D2A9730F700F70B842A800B7B2AA3
:100510008A110A12752C840183131F3083057130F0
:1005200083168F000F088611831286158316031712
:100530000908C039890003131F129F1200300317E6
:1005400088008312870188018901FF300313A0000E
:10055000831603170908C039890003131F129F125D
:10056000003003178800831203131F139F13831691
:100570009F1383121F149412A01220088316870061
:10058000831220162008831687008312A0112008EA
:100590008316870001308312940000308316940084
:1005A0000108C73908388100831290010030F80033
:1005B00092000030831692008312201520088316C3
:1005C00087008312970183169B019C0101309D00D7
:1005D0008312031787018801890104308D000030E0
:1005E0008F0003135328A201A101A401A301201627
:1005F00020088316870000008312A01520088316A8
:10060000870000008312071220122008831687003B
:10061000000083128711A011200883168700813003
:100620008312AE009B2078082D1078182D1420120C
:1006300020088316870000008312A0152008831667
:1006400087008312871D222B0000262B0000201616
:10065000200883168700000001308312AD062012A7
:1006600020088316870000008312A0152008831637
:1006700087008312871D3A2B00003E2B00002016B6
:100680002008831687000000831220162008831696
:10069000870000008312A015200883168700000041
:1006A000831207122012200883168700000083128D
:1006B0008711A01120088316870080308312AE00B6
:1006C0009B20F330AE009B20201620088316870065
:1006D00000008312A01520088316870000008312F3
:1006E000871D702B07122012200883168700000038
:1006F00083128711A011200883168700813083128E
:10070000AE009B20F701E5207808A800F701E5205E
:100710007808A700201220088316870000008312A3
:10072000A0152008831687008312871D952B0000D3
:10073000992B0000201620088316870000008312E2
:10074000201620088316870000008312A0152008B9
:1007500083168700000083120712201220088316D8
:100760008700000083128711A011200883168700DC
:1007700080308312AE009B20F530AE009B20201607
:1007800020088316870000008312A0152008831616
:10079000870000008312871DCB2B07122012200830
:1007A00083168700000083128711A011200883168A
:1007B000870081308312AE009B20F701E520780886
:1007C000AA00F701E5207808A90020122008831666
:1007D000870000008312A01520088316870083126B
:1007E000871DF02B0000F42B000020162008831634
:1007F000870000008312AF012808AE00AF00AE01F1
:100800002708AE070318AF0A2F0CA2002E0CA10078
:10081000A20CA10C3F30A205AF012A08AE00AF0028
:10082000AE012908AE070318AF0A2F0CA4002E0C46
:10083000A300A40CA30C3F30A40500302D180130F8
:10084000AE00103003178D0000308F00031006300B
:100850000313AF002A212E08AF001F30B0008E29ED
:10086000143003178D0000308F0003100D30031378
:10087000AF002A211B3003178D0000308F000310BA
:1008800006300313AF002A21103084002208AF0085
:100890002108AE00F5211F3003178D0000308F00B6
:1008A00003140C300313AF002A21263003178D00E8
:1008B00000308F00031006300313AF002A211030E0
:1008C00084002408AF002308AE00F5212A30031766
:1008D0008D0000308F0003140C300313AF002A2169
:1008E0000830AE00FA30AF00752AAE0B722CF32A36
:0208F0006300A3
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=524E CREATED="03-4-13 09:45"
;CRC=D298 CREATED="13-IV-13 23:28"
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.lst
1,8 → 1,8
CCS PCM C Compiler, Version 4.106, 47914 03-4-13 09:45
CCS PCM C Compiler, Version 4.106, 47914 13-IV-13 23:28
 
Filename: C:\Users\Honza\Documents\pic\I2C_vlhkost\main.lst
Filename: Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.lst
 
ROM used: 1019 words (12%)
ROM used: 1145 words (14%)
Largest free fragment is 2048
RAM used: 8 (2%) at main() level
29 (8%) worst case
11,9 → 11,9
*
0000: MOVLW 02
0001: MOVWF 0A
0002: GOTO 263
0002: GOTO 28B
0003: NOP
.................... #include "C:\Users\Honza\Documents\pic\I2C_vlhkost\main.h"
.................... #include "main.h"
.................... #include <16F887.h>
.................... //////// Standard Header file for the PIC16F887 device ////////////////
.................... #device PIC16F887
37,138 → 37,174
....................
.................... #use delay(clock=8000000)
*
024D: MOVLW 2F
024E: MOVWF 04
024F: BCF 03.7
0250: MOVF 00,W
0251: BTFSC 03.2
0252: GOTO 260
0253: MOVLW 02
0254: MOVWF 78
0255: CLRF 77
0256: DECFSZ 77,F
0257: GOTO 256
0258: DECFSZ 78,F
0259: GOTO 255
025A: MOVLW 97
025B: MOVWF 77
025C: DECFSZ 77,F
025D: GOTO 25C
025E: DECFSZ 00,F
025F: GOTO 253
0260: BCF 0A.3
0261: BCF 0A.4
0262: GOTO 3F7 (RETURN)
0275: MOVLW 2F
0276: MOVWF 04
0277: BCF 03.7
0278: MOVF 00,W
0279: BTFSC 03.2
027A: GOTO 288
027B: MOVLW 02
027C: MOVWF 78
027D: CLRF 77
027E: DECFSZ 77,F
027F: GOTO 27E
0280: DECFSZ 78,F
0281: GOTO 27D
0282: MOVLW 97
0283: MOVWF 77
0284: DECFSZ 77,F
0285: GOTO 284
0286: DECFSZ 00,F
0287: GOTO 27B
0288: BCF 0A.3
0289: BCF 0A.4
028A: GOTO 475 (RETURN)
....................
....................
....................
.................... #define EEPROM_SDA PIN_B0
.................... #define EEPROM_SCL PIN_B1
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL)
.................... #use i2c(master, sda=PIN_C4, scl=PIN_C3)
*
009B: MOVLW 08
009C: MOVWF 78
009D: NOP
009E: BCF 06.1
009F: BSF 03.5
00A0: BCF 06.1
00A1: NOP
00A2: BCF 03.5
00A3: RLF 2E,F
00A4: BCF 06.0
00A5: BTFSS 03.0
00A6: GOTO 0AA
00A7: BSF 03.5
00A8: BSF 06.0
00A9: BCF 03.5
00AA: BTFSC 03.0
00AB: GOTO 0AF
00AC: BSF 03.5
00AD: BCF 06.0
009E: BCF 07.3
009F: BCF 20.3
00A0: MOVF 20,W
00A1: BSF 03.5
00A2: MOVWF 07
00A3: NOP
00A4: BCF 03.5
00A5: RLF 2E,F
00A6: BCF 07.4
00A7: BTFSS 03.0
00A8: GOTO 0AF
00A9: BSF 20.4
00AA: MOVF 20,W
00AB: BSF 03.5
00AC: MOVWF 07
00AD: GOTO 0B3
00AE: BCF 03.5
00AF: BSF 03.5
00B0: BSF 06.1
00B1: BCF 03.5
00B2: BTFSS 06.1
00B3: GOTO 0B2
00B4: DECFSZ 78,F
00B5: GOTO 09D
00B6: NOP
00B7: BCF 06.1
00B8: BSF 03.5
00B9: BCF 06.1
00BA: NOP
00BB: BSF 06.0
00BC: NOP
00BD: NOP
00BE: BSF 06.1
00BF: BCF 03.5
00C0: BTFSS 06.1
00C1: GOTO 0C0
00C2: CLRF 78
00C3: NOP
00C4: BTFSC 06.0
00C5: BSF 78.0
00C6: BCF 06.1
00C7: BSF 03.5
00C8: BCF 06.1
00C9: BCF 03.5
00CA: BCF 06.0
00CB: BSF 03.5
00CC: BCF 06.0
00CD: BCF 03.5
00CE: RETURN
00CF: MOVLW 08
00D0: MOVWF 2F
00D1: MOVF 77,W
00D2: MOVWF 30
00D3: BSF 03.5
00D4: BSF 06.0
00AF: BCF 20.4
00B0: MOVF 20,W
00B1: BSF 03.5
00B2: MOVWF 07
00B3: NOP
00B4: BCF 03.5
00B5: BSF 20.3
00B6: MOVF 20,W
00B7: BSF 03.5
00B8: MOVWF 07
00B9: BCF 03.5
00BA: BTFSS 07.3
00BB: GOTO 0BA
00BC: DECFSZ 78,F
00BD: GOTO 09D
00BE: NOP
00BF: BCF 07.3
00C0: BCF 20.3
00C1: MOVF 20,W
00C2: BSF 03.5
00C3: MOVWF 07
00C4: NOP
00C5: BCF 03.5
00C6: BSF 20.4
00C7: MOVF 20,W
00C8: BSF 03.5
00C9: MOVWF 07
00CA: NOP
00CB: NOP
00CC: BCF 03.5
00CD: BSF 20.3
00CE: MOVF 20,W
00CF: BSF 03.5
00D0: MOVWF 07
00D1: BCF 03.5
00D2: BTFSS 07.3
00D3: GOTO 0D2
00D4: CLRF 78
00D5: NOP
00D6: BSF 06.1
00D7: BCF 03.5
00D8: BTFSS 06.1
00D9: GOTO 0D8
00DA: BTFSC 06.0
00DB: BSF 03.0
00DC: BTFSS 06.0
00DD: BCF 03.0
00DE: RLF 78,F
00DF: NOP
00E0: BSF 03.5
00E1: BCF 06.1
00E2: BCF 03.5
00E3: BCF 06.1
00E4: DECFSZ 2F,F
00E5: GOTO 0D3
00E6: BSF 03.5
00E7: BSF 06.0
00E8: NOP
00E9: BCF 03.5
00EA: BCF 06.0
00EB: MOVF 30,W
00EC: BTFSC 03.2
00ED: GOTO 0F1
00EE: BSF 03.5
00EF: BCF 06.0
00F0: BCF 03.5
00F1: NOP
00F2: BSF 03.5
00F3: BSF 06.1
00F4: BCF 03.5
00F5: BTFSS 06.1
00F6: GOTO 0F5
00F7: NOP
00F8: BCF 06.1
00F9: BSF 03.5
00FA: BCF 06.1
00D6: BTFSC 07.4
00D7: BSF 78.0
00D8: BCF 07.3
00D9: BCF 20.3
00DA: MOVF 20,W
00DB: BSF 03.5
00DC: MOVWF 07
00DD: BCF 03.5
00DE: BCF 07.4
00DF: BCF 20.4
00E0: MOVF 20,W
00E1: BSF 03.5
00E2: MOVWF 07
00E3: BCF 03.5
00E4: RETURN
00E5: MOVLW 08
00E6: MOVWF 2F
00E7: MOVF 77,W
00E8: MOVWF 30
00E9: BSF 20.4
00EA: MOVF 20,W
00EB: BSF 03.5
00EC: MOVWF 07
00ED: NOP
00EE: BCF 03.5
00EF: BSF 20.3
00F0: MOVF 20,W
00F1: BSF 03.5
00F2: MOVWF 07
00F3: BCF 03.5
00F4: BTFSS 07.3
00F5: GOTO 0F4
00F6: BTFSC 07.4
00F7: BSF 03.0
00F8: BTFSS 07.4
00F9: BCF 03.0
00FA: RLF 78,F
00FB: NOP
00FC: BCF 03.5
00FD: BCF 06.0
00FC: BCF 20.3
00FD: MOVF 20,W
00FE: BSF 03.5
00FF: BCF 06.0
00FF: MOVWF 07
0100: BCF 03.5
0101: RETURN
0101: BCF 07.3
0102: DECFSZ 2F,F
0103: GOTO 0E9
0104: BSF 20.4
0105: MOVF 20,W
0106: BSF 03.5
0107: MOVWF 07
0108: NOP
0109: BCF 03.5
010A: BCF 07.4
010B: MOVF 30,W
010C: BTFSC 03.2
010D: GOTO 113
010E: BCF 20.4
010F: MOVF 20,W
0110: BSF 03.5
0111: MOVWF 07
0112: BCF 03.5
0113: NOP
0114: BSF 20.3
0115: MOVF 20,W
0116: BSF 03.5
0117: MOVWF 07
0118: BCF 03.5
0119: BTFSS 07.3
011A: GOTO 119
011B: NOP
011C: BCF 07.3
011D: BCF 20.3
011E: MOVF 20,W
011F: BSF 03.5
0120: MOVWF 07
0121: NOP
0122: BCF 03.5
0123: BCF 07.4
0124: BCF 20.4
0125: MOVF 20,W
0126: BSF 03.5
0127: MOVWF 07
0128: BCF 03.5
0129: RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD
*
0031: BSF 03.5
207,122 → 243,123
0052: RETURN
....................
....................
....................
.................... void main()
.................... {
*
0263: CLRF 04
0264: BCF 03.7
0265: MOVLW 1F
0266: ANDWF 03,F
0267: MOVLW 71
0268: BSF 03.5
0269: MOVWF 0F
026A: MOVF 0F,W
026B: BCF 06.3
026C: BCF 03.5
026D: BSF 06.3
026E: BSF 03.5
026F: BSF 03.6
0270: MOVF 09,W
0271: ANDLW C0
0272: MOVWF 09
0273: BCF 03.6
0274: BCF 1F.4
0275: BCF 1F.5
0276: MOVLW 00
0277: BSF 03.6
0278: MOVWF 08
0279: BCF 03.5
027A: CLRF 07
027B: CLRF 08
027C: CLRF 09
028B: CLRF 04
028C: BCF 03.7
028D: MOVLW 1F
028E: ANDWF 03,F
028F: MOVLW 71
0290: BSF 03.5
0291: MOVWF 0F
0292: MOVF 0F,W
0293: BCF 06.3
0294: BCF 03.5
0295: BSF 06.3
0296: BSF 03.5
0297: BSF 03.6
0298: MOVF 09,W
0299: ANDLW C0
029A: MOVWF 09
029B: BCF 03.6
029C: BCF 1F.4
029D: BCF 1F.5
029E: MOVLW 00
029F: BSF 03.6
02A0: MOVWF 08
02A1: BCF 03.5
02A2: CLRF 07
02A3: CLRF 08
02A4: CLRF 09
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
*
0280: BSF 03.5
0281: BSF 03.6
0282: MOVF 09,W
0283: ANDLW C0
0284: MOVWF 09
0285: BCF 03.6
0286: BCF 1F.4
0287: BCF 1F.5
0288: MOVLW 00
0289: BSF 03.6
028A: MOVWF 08
02A8: BSF 03.5
02A9: BSF 03.6
02AA: MOVF 09,W
02AB: ANDLW C0
02AC: MOVWF 09
02AD: BCF 03.6
02AE: BCF 1F.4
02AF: BCF 1F.5
02B0: MOVLW 00
02B1: BSF 03.6
02B2: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
028B: BCF 03.5
028C: BCF 03.6
028D: BCF 1F.6
028E: BCF 1F.7
028F: BSF 03.5
0290: BCF 1F.7
0291: BCF 03.5
0292: BSF 1F.0
02B3: BCF 03.5
02B4: BCF 03.6
02B5: BCF 1F.6
02B6: BCF 1F.7
02B7: BSF 03.5
02B8: BCF 1F.7
02B9: BCF 03.5
02BA: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
0293: BCF 14.5
0294: BCF 20.5
0295: MOVF 20,W
0296: BSF 03.5
0297: MOVWF 07
0298: BCF 03.5
0299: BSF 20.4
029A: MOVF 20,W
029B: BSF 03.5
029C: MOVWF 07
029D: BCF 03.5
029E: BCF 20.3
029F: MOVF 20,W
02A0: BSF 03.5
02A1: MOVWF 07
02A2: MOVLW 01
02A3: BCF 03.5
02A4: MOVWF 14
02A5: MOVLW 00
02A6: BSF 03.5
02A7: MOVWF 14
02BB: BCF 14.5
02BC: BCF 20.5
02BD: MOVF 20,W
02BE: BSF 03.5
02BF: MOVWF 07
02C0: BCF 03.5
02C1: BSF 20.4
02C2: MOVF 20,W
02C3: BSF 03.5
02C4: MOVWF 07
02C5: BCF 03.5
02C6: BCF 20.3
02C7: MOVF 20,W
02C8: BSF 03.5
02C9: MOVWF 07
02CA: MOVLW 01
02CB: BCF 03.5
02CC: MOVWF 14
02CD: MOVLW 00
02CE: BSF 03.5
02CF: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
02A8: MOVF 01,W
02A9: ANDLW C7
02AA: IORLW 08
02AB: MOVWF 01
02D0: MOVF 01,W
02D1: ANDLW C7
02D2: IORLW 08
02D3: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
02AC: BCF 03.5
02AD: CLRF 10
02D4: BCF 03.5
02D5: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
02AE: MOVLW 00
02AF: MOVWF 78
02B0: MOVWF 12
02B1: MOVLW 00
02B2: BSF 03.5
02B3: MOVWF 12
02D6: MOVLW 00
02D7: MOVWF 78
02D8: MOVWF 12
02D9: MOVLW 00
02DA: BSF 03.5
02DB: MOVWF 12
.................... setup_ccp1(CCP_OFF);
02B4: BCF 03.5
02B5: BSF 20.2
02B6: MOVF 20,W
02B7: BSF 03.5
02B8: MOVWF 07
02B9: BCF 03.5
02BA: CLRF 17
02BB: BSF 03.5
02BC: CLRF 1B
02BD: CLRF 1C
02BE: MOVLW 01
02BF: MOVWF 1D
02DC: BCF 03.5
02DD: BSF 20.2
02DE: MOVF 20,W
02DF: BSF 03.5
02E0: MOVWF 07
02E1: BCF 03.5
02E2: CLRF 17
02E3: BSF 03.5
02E4: CLRF 1B
02E5: CLRF 1C
02E6: MOVLW 01
02E7: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
02C0: BCF 03.5
02C1: BSF 03.6
02C2: CLRF 07
02C3: CLRF 08
02C4: CLRF 09
02E8: BCF 03.5
02E9: BSF 03.6
02EA: CLRF 07
02EB: CLRF 08
02EC: CLRF 09
....................
.................... printf("Simple Thermomether \r\n",);
02C5: MOVLW 04
02C6: MOVWF 0D
02C7: MOVLW 00
02C8: MOVWF 0F
02C9: BCF 03.6
02CA: GOTO 053
02ED: MOVLW 04
02EE: MOVWF 0D
02EF: MOVLW 00
02F0: MOVWF 0F
02F1: BCF 03.6
02F2: GOTO 053
....................
.................... int16 data1, data2, data3;
....................
332,361 → 369,447
.................... {
....................
.................... data1=0;
02CB: CLRF 22
02CC: CLRF 21
02F3: CLRF 22
02F4: CLRF 21
.................... data2=0 ;
02CD: CLRF 24
02CE: CLRF 23
02F5: CLRF 24
02F6: CLRF 23
....................
....................
.................... //akcelerometr
.................... int1 ack;
.................... i2c_start(); // If the write command is acknowledged,
02CF: BSF 03.5
02D0: BSF 06.0
02D1: NOP
02D2: BSF 06.1
02D3: NOP
02D4: BCF 03.5
02D5: BCF 06.0
02D6: BSF 03.5
02D7: BCF 06.0
02D8: NOP
02D9: BCF 03.5
02DA: BCF 06.1
02DB: BSF 03.5
02DC: BCF 06.1
02F7: BSF 20.4
02F8: MOVF 20,W
02F9: BSF 03.5
02FA: MOVWF 07
02FB: NOP
02FC: BCF 03.5
02FD: BSF 20.3
02FE: MOVF 20,W
02FF: BSF 03.5
0300: MOVWF 07
0301: NOP
0302: BCF 03.5
0303: BCF 07.4
0304: BCF 20.4
0305: MOVF 20,W
0306: BSF 03.5
0307: MOVWF 07
0308: NOP
0309: BCF 03.5
030A: BCF 07.3
030B: BCF 20.3
030C: MOVF 20,W
030D: BSF 03.5
030E: MOVWF 07
.................... ack = i2c_write(0x81);//hen the device is ready.
02DD: MOVLW 81
02DE: BCF 03.5
02DF: MOVWF 2E
02E0: CALL 09B
02E1: MOVF 78,W
02E2: BCF 2D.0
02E3: BTFSC 78.0
02E4: BSF 2D.0
030F: MOVLW 81
0310: BCF 03.5
0311: MOVWF 2E
0312: CALL 09B
0313: MOVF 78,W
0314: BCF 2D.0
0315: BTFSC 78.0
0316: BSF 2D.0
.................... i2c_stop();
02E5: BSF 03.5
02E6: BCF 06.0
02E7: NOP
02E8: BSF 06.1
02E9: BCF 03.5
02EA: BTFSS 06.1
02EB: GOTO 2EA
02EC: NOP
02ED: GOTO 2EE
02EE: NOP
02EF: BSF 03.5
02F0: BSF 06.0
02F1: NOP
0317: BCF 20.4
0318: MOVF 20,W
0319: BSF 03.5
031A: MOVWF 07
031B: NOP
031C: BCF 03.5
031D: BSF 20.3
031E: MOVF 20,W
031F: BSF 03.5
0320: MOVWF 07
0321: BCF 03.5
0322: BTFSS 07.3
0323: GOTO 322
0324: NOP
0325: GOTO 326
0326: NOP
0327: BSF 20.4
0328: MOVF 20,W
0329: BSF 03.5
032A: MOVWF 07
032B: NOP
.................... ack=!ack;
02F2: MOVLW 01
02F3: BCF 03.5
02F4: XORWF 2D,F
032C: MOVLW 01
032D: BCF 03.5
032E: XORWF 2D,F
....................
....................
....................
.................... i2c_stop(); //T
02F5: BSF 03.5
02F6: BCF 06.0
02F7: NOP
02F8: BSF 06.1
02F9: BCF 03.5
02FA: BTFSS 06.1
02FB: GOTO 2FA
02FC: NOP
02FD: GOTO 2FE
02FE: NOP
02FF: BSF 03.5
0300: BSF 06.0
0301: NOP
032F: BCF 20.4
0330: MOVF 20,W
0331: BSF 03.5
0332: MOVWF 07
0333: NOP
0334: BCF 03.5
0335: BSF 20.3
0336: MOVF 20,W
0337: BSF 03.5
0338: MOVWF 07
0339: BCF 03.5
033A: BTFSS 07.3
033B: GOTO 33A
033C: NOP
033D: GOTO 33E
033E: NOP
033F: BSF 20.4
0340: MOVF 20,W
0341: BSF 03.5
0342: MOVWF 07
0343: NOP
....................
.................... i2c_start();
0302: BSF 06.0
0303: NOP
0304: BSF 06.1
0305: NOP
0306: BCF 03.5
0307: BCF 06.0
0308: BSF 03.5
0309: BCF 06.0
030A: NOP
030B: BCF 03.5
030C: BCF 06.1
030D: BSF 03.5
030E: BCF 06.1
0344: BCF 03.5
0345: BSF 20.4
0346: MOVF 20,W
0347: BSF 03.5
0348: MOVWF 07
0349: NOP
034A: BCF 03.5
034B: BSF 20.3
034C: MOVF 20,W
034D: BSF 03.5
034E: MOVWF 07
034F: NOP
0350: BCF 03.5
0351: BCF 07.4
0352: BCF 20.4
0353: MOVF 20,W
0354: BSF 03.5
0355: MOVWF 07
0356: NOP
0357: BCF 03.5
0358: BCF 07.3
0359: BCF 20.3
035A: MOVF 20,W
035B: BSF 03.5
035C: MOVWF 07
.................... I2C_Write(0x80);
030F: MOVLW 80
0310: BCF 03.5
0311: MOVWF 2E
0312: CALL 09B
035D: MOVLW 80
035E: BCF 03.5
035F: MOVWF 2E
0360: CALL 09B
.................... I2C_write(0xF3);
0313: MOVLW F3
0314: MOVWF 2E
0315: CALL 09B
0361: MOVLW F3
0362: MOVWF 2E
0363: CALL 09B
.................... // i2c_stop();
.................... i2c_start();
0316: BSF 03.5
0317: BSF 06.0
0318: NOP
0319: BSF 06.1
031A: NOP
031B: BCF 03.5
031C: BTFSS 06.1
031D: GOTO 31C
031E: BCF 06.0
031F: BSF 03.5
0320: BCF 06.0
0321: NOP
0322: BCF 03.5
0323: BCF 06.1
0324: BSF 03.5
0325: BCF 06.1
0364: BSF 20.4
0365: MOVF 20,W
0366: BSF 03.5
0367: MOVWF 07
0368: NOP
0369: BCF 03.5
036A: BSF 20.3
036B: MOVF 20,W
036C: BSF 03.5
036D: MOVWF 07
036E: NOP
036F: BCF 03.5
0370: BTFSS 07.3
0371: GOTO 370
0372: BCF 07.4
0373: BCF 20.4
0374: MOVF 20,W
0375: BSF 03.5
0376: MOVWF 07
0377: NOP
0378: BCF 03.5
0379: BCF 07.3
037A: BCF 20.3
037B: MOVF 20,W
037C: BSF 03.5
037D: MOVWF 07
.................... I2C_Write(0x81);
0326: MOVLW 81
0327: BCF 03.5
0328: MOVWF 2E
0329: CALL 09B
037E: MOVLW 81
037F: BCF 03.5
0380: MOVWF 2E
0381: CALL 09B
.................... XH=i2c_read(0);
032A: CLRF 77
032B: CALL 0CF
032C: MOVF 78,W
032D: MOVWF 28
0382: CLRF 77
0383: CALL 0E5
0384: MOVF 78,W
0385: MOVWF 28
.................... XL=i2c_read(0);
032E: CLRF 77
032F: CALL 0CF
0330: MOVF 78,W
0331: MOVWF 27
0386: CLRF 77
0387: CALL 0E5
0388: MOVF 78,W
0389: MOVWF 27
.................... i2c_stop();
0332: BSF 03.5
0333: BCF 06.0
0334: NOP
0335: BSF 06.1
0336: BCF 03.5
0337: BTFSS 06.1
0338: GOTO 337
0339: NOP
033A: GOTO 33B
033B: NOP
033C: BSF 03.5
033D: BSF 06.0
033E: NOP
038A: BCF 20.4
038B: MOVF 20,W
038C: BSF 03.5
038D: MOVWF 07
038E: NOP
038F: BCF 03.5
0390: BSF 20.3
0391: MOVF 20,W
0392: BSF 03.5
0393: MOVWF 07
0394: BCF 03.5
0395: BTFSS 07.3
0396: GOTO 395
0397: NOP
0398: GOTO 399
0399: NOP
039A: BSF 20.4
039B: MOVF 20,W
039C: BSF 03.5
039D: MOVWF 07
039E: NOP
....................
....................
.................... i2c_start(); //RH
033F: BSF 06.0
0340: NOP
0341: BSF 06.1
0342: NOP
0343: BCF 03.5
0344: BCF 06.0
0345: BSF 03.5
0346: BCF 06.0
0347: NOP
0348: BCF 03.5
0349: BCF 06.1
034A: BSF 03.5
034B: BCF 06.1
039F: BCF 03.5
03A0: BSF 20.4
03A1: MOVF 20,W
03A2: BSF 03.5
03A3: MOVWF 07
03A4: NOP
03A5: BCF 03.5
03A6: BSF 20.3
03A7: MOVF 20,W
03A8: BSF 03.5
03A9: MOVWF 07
03AA: NOP
03AB: BCF 03.5
03AC: BCF 07.4
03AD: BCF 20.4
03AE: MOVF 20,W
03AF: BSF 03.5
03B0: MOVWF 07
03B1: NOP
03B2: BCF 03.5
03B3: BCF 07.3
03B4: BCF 20.3
03B5: MOVF 20,W
03B6: BSF 03.5
03B7: MOVWF 07
.................... I2C_Write(0x80);
034C: MOVLW 80
034D: BCF 03.5
034E: MOVWF 2E
034F: CALL 09B
03B8: MOVLW 80
03B9: BCF 03.5
03BA: MOVWF 2E
03BB: CALL 09B
.................... I2C_write(0xF5);
0350: MOVLW F5
0351: MOVWF 2E
0352: CALL 09B
03BC: MOVLW F5
03BD: MOVWF 2E
03BE: CALL 09B
.................... // i2c_stop();
.................... i2c_start();
0353: BSF 03.5
0354: BSF 06.0
0355: NOP
0356: BSF 06.1
0357: NOP
0358: BCF 03.5
0359: BTFSS 06.1
035A: GOTO 359
035B: BCF 06.0
035C: BSF 03.5
035D: BCF 06.0
035E: NOP
035F: BCF 03.5
0360: BCF 06.1
0361: BSF 03.5
0362: BCF 06.1
03BF: BSF 20.4
03C0: MOVF 20,W
03C1: BSF 03.5
03C2: MOVWF 07
03C3: NOP
03C4: BCF 03.5
03C5: BSF 20.3
03C6: MOVF 20,W
03C7: BSF 03.5
03C8: MOVWF 07
03C9: NOP
03CA: BCF 03.5
03CB: BTFSS 07.3
03CC: GOTO 3CB
03CD: BCF 07.4
03CE: BCF 20.4
03CF: MOVF 20,W
03D0: BSF 03.5
03D1: MOVWF 07
03D2: NOP
03D3: BCF 03.5
03D4: BCF 07.3
03D5: BCF 20.3
03D6: MOVF 20,W
03D7: BSF 03.5
03D8: MOVWF 07
.................... I2C_Write(0x81);
0363: MOVLW 81
0364: BCF 03.5
0365: MOVWF 2E
0366: CALL 09B
03D9: MOVLW 81
03DA: BCF 03.5
03DB: MOVWF 2E
03DC: CALL 09B
.................... YH=i2c_read(0);
0367: CLRF 77
0368: CALL 0CF
0369: MOVF 78,W
036A: MOVWF 2A
03DD: CLRF 77
03DE: CALL 0E5
03DF: MOVF 78,W
03E0: MOVWF 2A
.................... YL=i2c_read(0);
036B: CLRF 77
036C: CALL 0CF
036D: MOVF 78,W
036E: MOVWF 29
03E1: CLRF 77
03E2: CALL 0E5
03E3: MOVF 78,W
03E4: MOVWF 29
.................... i2c_stop();
036F: BSF 03.5
0370: BCF 06.0
0371: NOP
0372: BSF 06.1
0373: BCF 03.5
0374: BTFSS 06.1
0375: GOTO 374
0376: NOP
0377: GOTO 378
0378: NOP
0379: BSF 03.5
037A: BSF 06.0
037B: NOP
03E5: BCF 20.4
03E6: MOVF 20,W
03E7: BSF 03.5
03E8: MOVWF 07
03E9: NOP
03EA: BCF 03.5
03EB: BSF 20.3
03EC: MOVF 20,W
03ED: BSF 03.5
03EE: MOVWF 07
03EF: BCF 03.5
03F0: BTFSS 07.3
03F1: GOTO 3F0
03F2: NOP
03F3: GOTO 3F4
03F4: NOP
03F5: BSF 20.4
03F6: MOVF 20,W
03F7: BSF 03.5
03F8: MOVWF 07
03F9: NOP
....................
....................
....................
.................... data1 = (((unsigned int16) XH << 8) + XL>>2 );
037C: BCF 03.5
037D: CLRF 2F
037E: MOVF 28,W
037F: MOVWF 2E
0380: MOVWF 2F
0381: CLRF 2E
0382: MOVF 27,W
0383: ADDWF 2E,F
0384: BTFSC 03.0
0385: INCF 2F,F
0386: RRF 2F,W
0387: MOVWF 22
0388: RRF 2E,W
0389: MOVWF 21
038A: RRF 22,F
038B: RRF 21,F
038C: MOVLW 3F
038D: ANDWF 22,F
03FA: BCF 03.5
03FB: CLRF 2F
03FC: MOVF 28,W
03FD: MOVWF 2E
03FE: MOVWF 2F
03FF: CLRF 2E
0400: MOVF 27,W
0401: ADDWF 2E,F
0402: BTFSC 03.0
0403: INCF 2F,F
0404: RRF 2F,W
0405: MOVWF 22
0406: RRF 2E,W
0407: MOVWF 21
0408: RRF 22,F
0409: RRF 21,F
040A: MOVLW 3F
040B: ANDWF 22,F
.................... data2 = (((unsigned int16) YH << 8) + YL>>2);
038E: CLRF 2F
038F: MOVF 2A,W
0390: MOVWF 2E
0391: MOVWF 2F
0392: CLRF 2E
0393: MOVF 29,W
0394: ADDWF 2E,F
0395: BTFSC 03.0
0396: INCF 2F,F
0397: RRF 2F,W
0398: MOVWF 24
0399: RRF 2E,W
039A: MOVWF 23
039B: RRF 24,F
039C: RRF 23,F
039D: MOVLW 3F
039E: ANDWF 24,F
040C: CLRF 2F
040D: MOVF 2A,W
040E: MOVWF 2E
040F: MOVWF 2F
0410: CLRF 2E
0411: MOVF 29,W
0412: ADDWF 2E,F
0413: BTFSC 03.0
0414: INCF 2F,F
0415: RRF 2F,W
0416: MOVWF 24
0417: RRF 2E,W
0418: MOVWF 23
0419: RRF 24,F
041A: RRF 23,F
041B: MOVLW 3F
041C: ANDWF 24,F
....................
....................
.................... printf("Stav: %d (procenta)\r\n", ack);
039F: MOVLW 00
03A0: BTFSC 2D.0
03A1: MOVLW 01
03A2: MOVWF 2E
03A3: MOVLW 10
03A4: BSF 03.6
03A5: MOVWF 0D
03A6: MOVLW 00
03A7: MOVWF 0F
03A8: BCF 03.0
03A9: MOVLW 06
03AA: BCF 03.6
03AB: MOVWF 2F
03AC: CALL 102
03AD: MOVF 2E,W
03AE: MOVWF 2F
03AF: MOVLW 1F
03B0: MOVWF 30
03B1: GOTO 166
03B2: MOVLW 14
03B3: BSF 03.6
03B4: MOVWF 0D
03B5: MOVLW 00
03B6: MOVWF 0F
03B7: BCF 03.0
03B8: MOVLW 0D
03B9: BCF 03.6
03BA: MOVWF 2F
03BB: CALL 102
041D: MOVLW 00
041E: BTFSC 2D.0
041F: MOVLW 01
0420: MOVWF 2E
0421: MOVLW 10
0422: BSF 03.6
0423: MOVWF 0D
0424: MOVLW 00
0425: MOVWF 0F
0426: BCF 03.0
0427: MOVLW 06
0428: BCF 03.6
0429: MOVWF 2F
042A: CALL 12A
042B: MOVF 2E,W
042C: MOVWF 2F
042D: MOVLW 1F
042E: MOVWF 30
042F: GOTO 18E
0430: MOVLW 14
0431: BSF 03.6
0432: MOVWF 0D
0433: MOVLW 00
0434: MOVWF 0F
0435: BCF 03.0
0436: MOVLW 0D
0437: BCF 03.6
0438: MOVWF 2F
0439: CALL 12A
....................
.................... printf("Stav: %Ld(procenta)\r\n", data1);
03BC: MOVLW 1B
03BD: BSF 03.6
03BE: MOVWF 0D
03BF: MOVLW 00
03C0: MOVWF 0F
03C1: BCF 03.0
03C2: MOVLW 06
03C3: BCF 03.6
03C4: MOVWF 2F
03C5: CALL 102
03C6: MOVLW 10
03C7: MOVWF 04
03C8: MOVF 22,W
03C9: MOVWF 2F
03CA: MOVF 21,W
03CB: MOVWF 2E
03CC: CALL 1CD
03CD: MOVLW 1F
03CE: BSF 03.6
03CF: MOVWF 0D
03D0: MOVLW 00
03D1: MOVWF 0F
03D2: BSF 03.0
03D3: MOVLW 0C
03D4: BCF 03.6
03D5: MOVWF 2F
03D6: CALL 102
043A: MOVLW 1B
043B: BSF 03.6
043C: MOVWF 0D
043D: MOVLW 00
043E: MOVWF 0F
043F: BCF 03.0
0440: MOVLW 06
0441: BCF 03.6
0442: MOVWF 2F
0443: CALL 12A
0444: MOVLW 10
0445: MOVWF 04
0446: MOVF 22,W
0447: MOVWF 2F
0448: MOVF 21,W
0449: MOVWF 2E
044A: CALL 1F5
044B: MOVLW 1F
044C: BSF 03.6
044D: MOVWF 0D
044E: MOVLW 00
044F: MOVWF 0F
0450: BSF 03.0
0451: MOVLW 0C
0452: BCF 03.6
0453: MOVWF 2F
0454: CALL 12A
.................... printf("Stav: %Ld(procenta)\r\n", data2);
03D7: MOVLW 26
03D8: BSF 03.6
03D9: MOVWF 0D
03DA: MOVLW 00
03DB: MOVWF 0F
03DC: BCF 03.0
03DD: MOVLW 06
03DE: BCF 03.6
03DF: MOVWF 2F
03E0: CALL 102
03E1: MOVLW 10
03E2: MOVWF 04
03E3: MOVF 24,W
03E4: MOVWF 2F
03E5: MOVF 23,W
03E6: MOVWF 2E
03E7: CALL 1CD
03E8: MOVLW 2A
03E9: BSF 03.6
03EA: MOVWF 0D
03EB: MOVLW 00
03EC: MOVWF 0F
03ED: BSF 03.0
03EE: MOVLW 0C
03EF: BCF 03.6
03F0: MOVWF 2F
03F1: CALL 102
0455: MOVLW 26
0456: BSF 03.6
0457: MOVWF 0D
0458: MOVLW 00
0459: MOVWF 0F
045A: BCF 03.0
045B: MOVLW 06
045C: BCF 03.6
045D: MOVWF 2F
045E: CALL 12A
045F: MOVLW 10
0460: MOVWF 04
0461: MOVF 24,W
0462: MOVWF 2F
0463: MOVF 23,W
0464: MOVWF 2E
0465: CALL 1F5
0466: MOVLW 2A
0467: BSF 03.6
0468: MOVWF 0D
0469: MOVLW 00
046A: MOVWF 0F
046B: BSF 03.0
046C: MOVLW 0C
046D: BCF 03.6
046E: MOVWF 2F
046F: CALL 12A
....................
.................... delay_ms (2000);
03F2: MOVLW 08
03F3: MOVWF 2E
03F4: MOVLW FA
03F5: MOVWF 2F
03F6: GOTO 24D
03F7: DECFSZ 2E,F
03F8: GOTO 3F4
0470: MOVLW 08
0471: MOVWF 2E
0472: MOVLW FA
0473: MOVWF 2F
0474: GOTO 275
0475: DECFSZ 2E,F
0476: GOTO 472
....................
.................... }
03F9: GOTO 2CB
0477: GOTO 2F3
.................... }
....................
03FA: SLEEP
0478: SLEEP
 
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.pjt
1,10 → 1,10
[PROJECT]
Target=C:\Users\Honza\Documents\pic\I2C_vlhkost\main.hex
Target=main.hex
Development_Mode=
Processor_Text=PIC16F887
ToolSuite=CCS
Processor=0x887F
[C:\Users\Honza\Documents\pic\I2C_vlhkost\main]
[main]
Type=4
Path=
FileList=
12,13 → 12,17
OptionString=
AdditionalOptionString=
[mru-list]
1=C:\Users\Honza\Documents\pic\I2C_vlhkost\main.c
1=.\main.c
[Windows]
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=main.h
3=C:\Program Files (x86)\PICC\devices\16F887.h
4=
[Target Data]
OptionString=-p +FM
FileList=Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.c
[Units]
Link=0
Count=1
1=C:\Users\Honza\Documents\pic\I2C_vlhkost\main
[Opened Files]
1=main.c
2=
1=main (main)
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.sta
1,9 → 1,9
 
ROM used: 1019 (12%)
1019 (12%) including unused fragments
ROM used: 1145 (14%)
1145 (14%) including unused fragments
 
2 Average locations per line
24 Average locations per statement
27 Average locations per statement
 
RAM used: 8 (2%) at main() level
29 (8%) worst case
12,27 → 12,27
 
Lines Stmts % Files
----- ----- --- -----
82 42 100 main.c
20 0 0 main.h
423 0 0 ..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h
76 42 100 main.c
23 0 0 main.h
423 0 0 C:\Program Files (x86)\PICC\devices\16F887.h
----- -----
525 42 Total
522 42 Total
 
Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
0 22 2 1 @delay_ms1
0 51 5 3 @I2C_READ_1
0 52 5 1 @I2C_WRITE_1
0 69 6 3 @I2C_READ_1
0 74 6 1 @I2C_WRITE_1
0 34 3 1 @PUTCHAR_1_
0 408 40 2 1503 5.5 main
0 494 43 2 1503 5.5 main
0 12 1 0 @const78
0 72 7 3 @PSTRINGC7_68
0 72 6 3 @PSTRINGC7_69
0 11 1 0 @const90
0 79 8 4 @PSTRINGCN7_68
0 79 7 4 @PSTRINGCN7_69
0 21 2 3 @DIV88
0 103 10 6 @PRINTF_D_68
0 103 9 6 @PRINTF_D_69
0 11 1 0 @const99
0 128 13 9 @PRINTF_LD_68
0 128 11 9 @PRINTF_LD_69
0 11 1 0 @const102
 
Program metrics:
50,7 → 50,7
Segment Used Free
----------- ---- ----
00000-00003 4 0
00004-007FF 1015 1029
00004-007FF 1141 903
00800-00FFF 0 2048
01000-017FF 0 2048
01800-01FFF 0 2048
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.sym
17,36 → 17,36
02B main.ZL
02C main.ZH
02D.0 ack
02E-02F @PRINTF_LD_68.P1
02E @I2C_WRITE_1.P1
02E @I2C_READ_1.P2
02E @I2C_WRITE_1.P3
02E-02F @PRINTF_LD_69.P3
02E main.@SCRATCH1
02E @PSTRINGC7_68.@SCRATCH1
02F @PRINTF_D_68.P1
02E @PSTRINGC7_69.@SCRATCH1
02F @PSTRINGCN7_69.P1
02F @delay_ms1.P2
02F @PSTRINGCN7_68.P3
02F @PRINTF_D_69.P3
02F @I2C_READ_1.@SCRATCH1
02F main.@SCRATCH2
02F @PSTRINGC7_68.@SCRATCH2
030 @PRINTF_D_68.P1
02F @PSTRINGC7_69.@SCRATCH2
030 @PRINTF_D_69.P1
030 @I2C_READ_1.@SCRATCH2
030 @PSTRINGC7_68.@SCRATCH3
030 @PSTRINGCN7_68.@SCRATCH1
030 @PRINTF_LD_68.@SCRATCH1
031 @PSTRINGCN7_68.@SCRATCH2
031 @PRINTF_D_68.@SCRATCH1
031 @PRINTF_LD_68.@SCRATCH2
032 @PSTRINGCN7_68.@SCRATCH3
032 @PRINTF_D_68.@SCRATCH2
032 @PRINTF_LD_68.@SCRATCH3
033 @PRINTF_D_68.@SCRATCH3
033 @PRINTF_LD_68.@SCRATCH4
034 @PRINTF_D_68.@SCRATCH4
034 @PRINTF_LD_68.@SCRATCH5
030 @PSTRINGC7_69.@SCRATCH3
030 @PSTRINGCN7_69.@SCRATCH1
030 @PRINTF_LD_69.@SCRATCH1
031 @PSTRINGCN7_69.@SCRATCH2
031 @PRINTF_D_69.@SCRATCH1
031 @PRINTF_LD_69.@SCRATCH2
032 @PSTRINGCN7_69.@SCRATCH3
032 @PRINTF_D_69.@SCRATCH2
032 @PRINTF_LD_69.@SCRATCH3
033 @PRINTF_D_69.@SCRATCH3
033 @PRINTF_LD_69.@SCRATCH4
034 @PRINTF_D_69.@SCRATCH4
034 @PRINTF_LD_69.@SCRATCH5
035 @DIV88.P1
035 @PRINTF_LD_68.@SCRATCH6
035 @PRINTF_LD_69.@SCRATCH6
036 @DIV88.P1
036 @PRINTF_LD_68.@SCRATCH7
036 @PRINTF_LD_69.@SCRATCH7
037 @PUTCHAR_1_.P1
037 @DIV88.@SCRATCH1
077 @SCRATCH
60,21 → 60,21
10D-10E @READ_PROGRAM_MEMORY8.P2
 
ROM Allocation:
024D @delay_ms1
00CF @I2C_READ_1
0275 @delay_ms1
00E5 @I2C_READ_1
009B @I2C_WRITE_1
0031 @PUTCHAR_1_
0263 main
028B main
0004 @const78
0053 @PSTRINGC7_68
0053 @PSTRINGC7_69
0010 @const90
0102 @PSTRINGCN7_68
0151 @DIV88
0166 @PRINTF_D_68
012A @PSTRINGCN7_69
0179 @DIV88
018E @PRINTF_D_69
001B @const99
01CD @PRINTF_LD_68
01F5 @PRINTF_LD_69
0026 @const102
0263 @cinit
028B @cinit
 
 
User Memory space:
82,15 → 82,15
User Memory space:
 
Project Directory:
C:\Users\Honza\Documents\pic\I2C_vlhkost\
Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\
 
Project Files:
main.c
main.h
..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h
C:\Program Files (x86)\PICC\devices\16F887.h
 
Units:
C:\Users\Honza\Documents\pic\I2C_vlhkost\main (main)
Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main (main)
 
Compiler Settings:
Processor: PIC16F887
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.tre
1,24 → 1,24
ÀÄmain
ÀÄmain 0/408 Ram=2
ÀÄmain 0/494 Ram=2
ÃÄ??0??
ÃÄ@PSTRINGC7_68 0/72 Ram=3
ÃÄ@PSTRINGC7_69 0/72 Ram=3
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_READ_1 0/51 Ram=3
ÃÄ@I2C_READ_1 0/51 Ram=3
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_WRITE_1 0/52 Ram=1
ÃÄ@I2C_READ_1 0/51 Ram=3
ÃÄ@I2C_READ_1 0/51 Ram=3
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_D_68 0/103 Ram=6
ÃÄ@PRINTF_D_69 0/103 Ram=6
³ ÃÄ@DIV88 0/21 Ram=3
³ ÃÄ@DIV88 0/21 Ram=3
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
25,23 → 25,23
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_LD_68 0/128 Ram=9
ÃÄ@PRINTF_LD_69 0/128 Ram=9
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_LD_68 0/128 Ram=9
ÃÄ@PRINTF_LD_69 0/128 Ram=9
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_68 0/79 Ram=4
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÀÄ@delay_ms1 0/22 Ram=1