/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_30000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_32000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_34000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_36000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_38000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_40000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/BIN/Tykadlo_56000.hex
3,7 → 3,7
:10002000B0E001C01D92A436B107E1F76FD07CC0EB
:10003000E7CF1F920F920FB60F9211242F933F9389
:100040004F935F938F939F93809163008F5F809313
:100050006300833108F44FC01092630086B350915F
:100050006300843108F44FC01092630086B350915E
:10006000620090E08071907024E0959587952A95C4
:10007000E1F7252F30E02170307040916100821748
:10008000930711F44F5F01C0415040936100552325
/Modules/Sensors/IRFEE01A/SW/Makefile
2,22 → 2,18
# Makefile for the project Tykadlo
###############################################################################
# (c)miho www.mlab.cz
# 1.00 - new makefile
# 1.01 - solved problem with default rules (invalid target "Makefile")
 
 
## User Settings
# Frequencies are in Hz, Callibration is usualy not needed
FREQUENCIES = 30000 32000 34000 36000 38000 40000 56000
CALIBRATION = 0
 
## Project
# Main source file name, target platform, destination directory
PROJECT = Tykadlo
MCU = attiny13
TARGETDIR = BIN
 
## Variants - all supported frequences
# Combine project name with all required frequencies
VARIANTS = $(foreach FREQ, $(FREQUENCIES), $(PROJECT)_$(FREQ))
 
## General Flags
39,37 → 35,30
HEX_FLASH_FLAGS = -R .fuse -R .lock -R .signature
 
## Build
 
# Tag targets that are not / do not require files
.PHONY: all allhex alllss clean Makefile
 
# Main target
.PHONY: all
all: allhex
 
# Subtarget - all variants hex files
.PHONY: allhex
allhex: $(foreach VAR, $(VARIANTS), $(VAR).hex)
 
# Subtarget - all variants lss files
.PHONY: alllss
alllss: $(foreach VAR, $(VARIANTS), $(VAR).lss)
 
# How to translate .o file - from .c with all possible frequencies
%.o: $(PROJECT).c
$(CC) $(INCLUDES) $(CFLAGS) -c $< -D CALIBRATION=$(CALIBRATION) -D IR_FREQUENCY=$(subst $(PROJECT)_,,$(@:.o=))UL -o $@
 
# How to link .elf - from .o
%.elf: %.o
$(CC) $(LDFLAGS) $< $(LIBDIRS) $(LIBS) -o $@
rm $<
 
# How to generate .hex file - from .elf
%.hex: %.elf
avr-objcopy -O ihex $(HEX_FLASH_FLAGS) $< $(TARGETDIR)/$@
 
# How to generate .lss file - from .elf
%.lss: %.elf
avr-objdump -h -S $< > $(TARGETDIR)/$@
 
## Clean target
.PHONY: clean
clean:
-rm -rf $(PROJECT)*.o $(PROJECT)*.elf dep/* $(TARGETDIR)/$(PROJECT)*.hex $(TARGETDIR)/$(PROJECT)*.lss
-rmdir dep
/Modules/Sensors/IRFEE01A/SW/Tykadlo.c
5,7 → 5,6
//
// 1.00 - zakladni funkcni verze
// 1.01 - doplnena moznost s externim nastavenim parametru
// 1.02 - oprava spravneho poctu generovanych impulsu
 
// Prirazeni portu
// ---------------
79,7 → 78,7
static signed char InSuma; // Zde se prumeruji shody
 
// Citac pulperiod symbolu
if(++SymbolLen>=(SYMBOL_LENGTH*2-1))
if(++SymbolLen>=(SYMBOL_LENGTH*2))
{
 
// Konec symbolu - zaciname citat pocet pulperiod od zacatku