Use SCM codevision AVR single chip pt2272 decoder for c language. Similar code on the network today is basically using 51 series single-chip SCM and done in Assembly language, portability is poor.
File list:
PT2272
.....\a.cwp
.....\a.cw~
.....\init.c
.....\init.c~
.....\init.i
.....\Main.asm
.....\Main.c
.....\Main.cof
.....\Main.c~
.....\Main.hex
.....\Main.i
.....\Main.inc
.....\Main.lst
.....\Main.map
.....\Main.obj
.....\Main.rom
.....\Main.vec
.....\Main_cof.aps
.....\Main__.c
.....\PTSim.prj
.....\PTSim.pr~
.....\PTSim.txt