No changes between revisions
/Designs/Measuring_instruments/RMDS02C/SW/PIC16F887/main.c
9,12 → 9,13
// I2C register address 0 = LSB
// I2C register address 3 = MSB
 
#define ID "$Id: main.c 2916 2013-04-14 17:42:03Z kaklik $"
#define ID "$Id$"
#include "main.h"
#use i2c(SLAVE, Fast, sda=PIN_C4, scl=PIN_C3, force_hw, address=0xA2)
 
#include <string.h>
 
#define LED PIN_B3 // heartbeat indicator
#define SEL0 PIN_E0 // external counter division ratio
#define SEL1 PIN_E1 // external counter division ratio
#define MR PIN_E2 // external counter master reset
135,6 → 136,7
// output_high(SEL1);
countL|=input(CLKI)<<3; // read bit 3 of external counter
 
output_toggle(LED); // heartbeat
output_low(MR); // External counter Master Reset
output_high(MR);
set_timer1(0); // Internal counter reset
194,6 → 196,7
setup_GPS(); // Write configuration to the GPS
fire_setup = 0;
}
output_toggle(LED); // heartbeat
//printf("%X %X %X %X\r\n", buffer[0],buffer[1],buffer[2],buffer[3]);
//printf("%010Lu\r\n", count);
}
Property changes:
Added: svn:keywords
+Id
\ No newline at end of property
/Designs/Measuring_instruments/RMDS02C/SW/PIC16F887/main.hex
1,4 → 1,4
:1000000001308A00BD290000FF00030E8301A1001A
:1000000001308A00C2290000FF00030E8301A10015
:100010000A08A0008A010408A2007708A300780853
:10002000A4007908A5007A08A600831383120B1E8A
:100030001B288B1838288C308400001C21280C18B1
5,7 → 5,7
:100040003B288C308400801D27288C193E282208EC
:1000500084002308F7002408F8002508F900260882
:10006000FA0020088A00210E8300FF0E7F0E09008F
:100070008A110A12BA288A110A128D298A110A12C3
:100070008A110A12BA288A110A1292298A110A12BE
:100080004E2813087008930014168C118316141848
:100090004728F8018312141AF80A08008316941AE4
:1000A00059288312E9018316141D59288312E91770
33,56 → 33,57
:10020000F7057708EF0483160910831209142814E0
:100210002808831687000030831207180130F70082
:10022000F70DF70DF70DF830F7057708EF04831693
:1002300009118312091183160911831209158F01FF
:100240008E01B601B5018316A301A2017108A100B8
:100250007008A0002108A3002008A200A001A101AD
:10026000A20DA30DA20DA30DA20DA30DA20DA30D12
:10027000F030A205A801A70183126E088316A6001C
:1002800083126D088316A500250DF700260DF800D2
:10029000270DF900280DFA00F70DF80DF90DFA0DEC
:1002A000F70DF80DF90DFA0DF70DF80DF90DFA0D22
:1002B000F030F7057708A00778080318780FA10732
:1002C00079080318790FA2077A0803187A0FA30791
:1002D0008312F801F901FA016F08831620078312CF
:1002E000AB00831621088312AC0078080318780F3E
:1002F000AC07831622088312AD0079080318790F22
:10030000AD07831623088312AE007A0803187A0F0C
:10031000AE078B108A110A122728B50A0319B60AEC
:100320000C108A110A1227286B30840083130008EE
:100330000319A7290630F800F701F70B9D29F80BE0
:100340009C297B30F700F70BA329800B9A29080022
:100350003708EB000130EA006A086B02031CBC2975
:1003600037306A07840083130008EC006C080C1E09
:10037000B7299900EA0AAC290800840183131F30C9
:10038000830583160317871508300313990002307D
:100390009A00A6309800903083129800A81528087B
:1003A0008316870083122816280883168700A23038
:1003B0009300363083129400B401B601B501831660
:1003C00003170908C039890003131F129F12003058
:1003D0000317880083128701880189010313A7018D
:1003E000FF30A800A901AA012830B700B530B80035
:1003F0006230B9000630BA003130BB002030BC009A
:10040000BD01BE01BF01C001C1013230C200C30144
:10041000C401C5018030C6009630C7009830C800BE
:10042000C901E030CA00C830CB001030CC00CD018B
:100430006430CE00CF01D001D101D201D301D4016B
:10044000D501D601D701D801D9017330DA00DB011B
:10045000DC01DD01C630DE005130DF00E001E101EA
:10046000E201E301E401E501E601E701E80103300F
:10047000E900831603170908C039890003131F1206
:100480009F12003003178800831203131F10831676
:100490000108C73908388100093083120317850025
:1004A0000F30F700031381018130840083130008AB
:1004B000F0390738800064000008F739F719F0397F
:1004C00077048000073090000030F8009200003080
:1004D000831692008312031787018801890183160E
:1004E00003139701640004308312EA00FA30EB0032
:1004F0009421EA0B762A6400A821831601170C14B4
:1005000083120B1683168C15C03083128B04B00136
:10051000B101B201B3012F1064000430EA00FA30D7
:10052000EB009421EA0B8F2A2F1C982AA8212F1068
:040530008C2A6300AE
:10023000861108308312860683160911831209116C
:1002400083160911831209158F018E01B601B501BC
:100250008316A301A2017108A1007008A000210863
:10026000A3002008A200A001A101A20DA30DA20DD0
:10027000A30DA20DA30DA20DA30DF030A205A801A0
:10028000A70183126E088316A60083126D088316D9
:10029000A500250DF700260DF800270DF900280D03
:1002A000FA00F70DF80DF90DFA0DF70DF80DF90D2F
:1002B000FA0DF70DF80DF90DFA0DF030F705770886
:1002C000A00778080318780FA10779080318790F99
:1002D000A2077A0803187A0FA3078312F801F9011D
:1002E000FA016F08831620078312AB0083162108DA
:1002F0008312AC0078080318780FAC078316220825
:100300008312AD0079080318790FAD07831623080F
:100310008312AE007A0803187A0FAE078B108A1189
:100320000A122728B50A0319B60A0C108A110A12F4
:1003300027286B308400831300080319AC2906308A
:10034000F800F701F70BA229F80BA1297B30F70081
:10035000F70BA829800B9F2908003708EB00013014
:10036000EA006A086B02031CC12937306A0784005F
:1003700083130008EC006C080C1EBC299900EA0AE3
:10038000B1290800840183131F30830583160317E6
:10039000871508300313990002309A00A6309800A0
:1003A000903083129800A8152808831687008312BE
:1003B0002816280883168700A2309300363083124F
:1003C0009400B401B601B501831603170908C039BA
:1003D000890003131F129F12003003178800831235
:1003E0008701880189010313A701FF30A800A90133
:1003F000AA012830B700B530B8006230B900063025
:10040000BA003130BB002030BC00BD01BE01BF01CD
:10041000C001C1013230C200C301C401C501803036
:10042000C6009630C7009830C800C901E030CA0045
:10043000C830CB001030CC00CD016430CE00CF01ED
:10044000D001D101D201D301D401D501D601D70108
:10045000D801D9017330DA00DB01DC01DD01C630DF
:10046000DE005130DF00E001E101E201E301E401DF
:10047000E501E601E701E8010330E900831603170F
:100480000908C039890003131F129F120030031797
:100490008800831203131F1083160108C739083818
:1004A000810009308312031785000F30F700031312
:1004B00081018130840083130008F03907388000FF
:1004C00064000008F739F719F03977048000073025
:1004D00090000030F80092000030831692008312E2
:1004E00003178701880189018316031397016400AC
:1004F00004308312EA00FA30EB009921EA0B7B2AE0
:100500006400AD21831601170C1483120B16831699
:100510008C15C03083128B04B001B101B201B3015C
:100520002F1064000430EA00FA30EB009921EA0B46
:10053000942A2F1C9D2AAD212F1083168611083076
:0805400083128606912A630074
:04400E00EA2CFF3F5A
:00000001FF
;PIC16F887
;CRC=EE34 CREATED="17-Oct-14 14:31"
;CRC=24C8 CREATED="26-Oct-14 00:32"