Permalink
Browse files

Initial import

  • Loading branch information...
harbaum committed Jan 12, 2016
0 parents commit c73d3277fc600ae551edecca8c8cce26c0d4708f
Showing with 9,675 additions and 0 deletions.
  1. +226 −0 README.md
  2. BIN circuit/lcd2usb.brd
  3. BIN circuit/lcd2usb.sch
  4. BIN circuit/pcb.pdf
  5. BIN circuit/pcb.png
  6. BIN circuit/schematic.pdf
  7. BIN circuit/schematic.png
  8. +341 −0 firmware/COPYING
  9. +84 −0 firmware/Makefile
  10. +35 −0 firmware/checksize
  11. BIN firmware/firmware.bin
  12. +174 −0 firmware/firmware.hex
  13. +312 −0 firmware/lcd.c
  14. +177 −0 firmware/lcd.h
  15. +241 −0 firmware/main.c
  16. +28 −0 firmware/readme.txt
  17. +115 −0 firmware/usbconfig.h
  18. +308 −0 firmware/usbdrv/Changelog.txt
  19. +166 −0 firmware/usbdrv/CommercialLicense.txt
  20. +361 −0 firmware/usbdrv/License.txt
  21. +172 −0 firmware/usbdrv/Readme.txt
  22. +149 −0 firmware/usbdrv/USB-ID-FAQ.txt
  23. +148 −0 firmware/usbdrv/USB-IDs-for-free.txt
  24. +188 −0 firmware/usbdrv/asmcommon.inc
  25. +50 −0 firmware/usbdrv/oddebug.c
  26. +123 −0 firmware/usbdrv/oddebug.h
  27. +376 −0 firmware/usbdrv/usbconfig-prototype.h
  28. +625 −0 firmware/usbdrv/usbdrv.c
  29. +735 −0 firmware/usbdrv/usbdrv.h
  30. +393 −0 firmware/usbdrv/usbdrvasm.S
  31. +21 −0 firmware/usbdrv/usbdrvasm.asm
  32. +393 −0 firmware/usbdrv/usbdrvasm12.inc
  33. +750 −0 firmware/usbdrv/usbdrvasm128.inc
  34. +423 −0 firmware/usbdrv/usbdrvasm15.inc
  35. +346 −0 firmware/usbdrv/usbdrvasm16.inc
  36. +453 −0 firmware/usbdrv/usbdrvasm165.inc
  37. +707 −0 firmware/usbdrv/usbdrvasm18-crc.inc
  38. +360 −0 firmware/usbdrv/usbdrvasm20.inc
  39. +144 −0 firmware/usbdrv/usbportability.h
  40. BIN images/4x20-front.jpg
  41. BIN images/4x20-rear.jpg
  42. BIN images/avrisp.gif
  43. BIN images/bridge-4x40.jpg
  44. BIN images/cable.gif
  45. BIN images/connectors.gif
  46. BIN images/disp_con1.gif
  47. BIN images/disp_con2.gif
  48. BIN images/disp_con3.gif
  49. BIN images/lcd2usb-front.jpg
  50. BIN images/pcb.gif
  51. BIN images/pcb.jpg
  52. BIN images/prototyp.jpg
  53. BIN images/schematic-small.gif
  54. BIN images/simple.jpg
  55. +14 −0 testapp/Makefile
  56. +15 −0 testapp/Makefile.cygwin
  57. +14 −0 testapp/Makefile.macos
  58. +15 −0 testapp/Makefile.mingw
  59. +19 −0 testapp/Makefile.xmingw
  60. +342 −0 testapp/lcd2usb.c
  61. BIN testapp/lcd2usb.exe
  62. +41 −0 testapp/readme.txt
  63. +91 −0 win/lcd2usb.inf
  64. BIN win/libusb0.dll
  65. BIN win/libusb0.sys
226 README.md

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +36.2 KB circuit/lcd2usb.brd
Binary file not shown.
BIN +289 KB circuit/lcd2usb.sch
Binary file not shown.
BIN +44.1 KB circuit/pcb.pdf
Binary file not shown.
BIN +53.9 KB circuit/pcb.png
Binary file not shown.
BIN +24.6 KB circuit/schematic.pdf
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,84 @@
# Name: Makefile
# Project: Remote Sensor
# Author: Christian Starkjohann, modified for LCD2USB by Till Harbaum
# Creation Date: 2005-03-20
# Tabsize: 4
# Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
# License: Proprietary, free under certain conditions. See Documentation.
# This Revision: $Id: Makefile.avrusb,v 1.1 2007/01/14 12:12:27 harbaum Exp $
# DEFINES += -DBWCT_COMPAT
# DEFINES += -DDEBUG_LEVEL=1
DEFINES += -DF_CPU=12000000
COMPILE = avr-gcc -Wall -O2 -Iusbdrv -I. -mmcu=atmega8 $(DEFINES)
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o lcd.o
# symbolic targets:
all: firmware.hex
.c.o:
$(COMPILE) -c $< -o $@
.S.o:
$(COMPILE) -x assembler-with-cpp -c $< -o $@
# "-x assembler-with-cpp" should not be necessary since this is the default
# file type for the .S (with capital S) extension. However, upper case
# characters are not always preserved on Windows. To ensure WinAVR
# compatibility define the file type manually.
.c.s:
$(COMPILE) -S $< -o $@
flash: all
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex
flash-nodep:
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex
# Fuse high byte:
# 0xc9 = 1 1 0 0 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
# ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0
# | | | | | +-------- BOOTSZ1
# | | | | + --------- EESAVE (don't preserve EEPROM over chip erase)
# | | | +-------------- CKOPT (full output swing)
# | | +---------------- SPIEN (allow serial programming)
# | +------------------ WDTON (WDT not always on)
# +-------------------- RSTDISBL (reset pin is enabled)
# Fuse low byte:
# 0x9f = 1 0 0 1 1 1 1 1
# ^ ^ \ / \--+--/
# | | | +------- CKSEL 3..0 (external >8M crystal)
# | | +--------------- SUT 1..0 (crystal osc, BOD enabled)
# | +------------------ BODEN (BrownOut Detector enabled)
# +-------------------- BODLEVEL (2.7V)
fuse:
$(UISP) --wr_fuse_h=0xc9 --wr_fuse_l=0x9f
clean:
rm -f firmware.lst firmware.obj firmware.cof firmware.list firmware.map firmware.eep.hex firmware.bin *.o usbdrv/*.o firmware.s usbdrv/oddebug.s usbdrv/usbdrv.s
# file targets:
firmware.bin: $(OBJECTS)
$(COMPILE) -o firmware.bin $(OBJECTS)
firmware.hex: firmware.bin
rm -f firmware.hex firmware.eep.hex
avr-objcopy -j .text -j .data -O ihex firmware.bin firmware.hex
./checksize firmware.bin 8192 960
# do the checksize script as our last action to allow successful compilation
# on Windows with WinAVR where the Unix commands will fail.
avrdude: firmware.hex
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex
avrdude-nodep:
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex
disasm: firmware.bin
avr-objdump -d firmware.bin
cpp:
$(COMPILE) -E main.c
@@ -0,0 +1,35 @@
#!/bin/sh
# Name: checksize
# Project: AVR Make system
# Author: Christian Starkjohann
# Creation Date: 2004-12-29
# Tabsize: 4
# Copyright: (c) 2005 OBJECTIVE DEVELOPMENT Software GmbH.
# Revision: $Id: checksize,v 1.1.1.1 2007/01/14 11:37:56 harbaum Exp $
error=0
codelimit=2048 # default value
datalimit=96 # default value; leave 32 bytes for stack
if [ $# -gt 1 ]; then
codelimit="$2"
fi
if [ $# -gt 2 ]; then
datalimit="$3"
fi
set -- `avr-size -d "$1" | awk '/[0-9]/ {print $1 + $2, $2 + $3, $2}'`
if [ $1 -gt $codelimit ]; then
echo "*** code size $1 exceeds limit of $codelimit"
error=1
else
echo "ROM: $1 bytes (data=$3)"
fi
if [ $2 -gt $datalimit ]; then
echo "*** data size $2 exceeds limit of $datalimit"
error=1
else
echo "RAM: $2 bytes"
fi
exit $error
BIN +9.67 KB firmware/firmware.bin
Binary file not shown.
@@ -0,0 +1,174 @@
:1000000049C0C1C162C061C060C05FC05EC05DC0A8
:100010005CC05BC05AC059C058C057C056C055C01C
:1000200054C053C052C0040309041A0354006900A9
:100030006C006C00200048006100720062006100EA
:1000400075006D0024034C0043004400320055004D
:1000500053004200200049006E00740065007200E9
:10006000660061006300650012011001FF000008D6
:10007000030430C60901010200010902190001014F
:10008000008025090400000100000000070581032D
:1000900008000A0011241FBECFE5D4E0DEBFCDBFAB
:1000A00010E0A0E6B0E0EAEAFAE002C005900D92A6
:1000B000A038B107D9F710E0A0E8B0E001C01D9268
:1000C000AC3BB107E1F7EBD2EFC49ACF85B78360C1
:1000D00085BF8BB780648BBF8BE4809392008AE5E9
:1000E0008093910008951F93CF93DF939091A20086
:1000F000935097FD09C020919F0080919E008D3202
:1001000009F44CC01092A2008091600084FF39C0B5
:10011000609161006F3FA9F1693008F06AC01092E8
:1001200061008091860098E8892780938600662385
:1001300009F47AC02091A0003091A1008091800044
:1001400086FF69C0962FF901A7E8B0E084918D93EE
:1001500031969150D9F76150C901860F911D6F5F9B
:1001600001969093A1008093A0007727162F87E82F
:1001700090E005D11C5F1C3008F45BC01CE01093BC
:10018000600094E102C0915021F083B38370D9F3F1
:10019000BAC01092A30010929D00B5C0983009F02B
:1001A000B1CFC2EBD0E0C21BD10983EC80938600B3
:1001B0008AE5809360001092800088818076E9F55E
:1001C0009A8110928F0089818823D9F5109290002E
:1001D0008FE890E022E09093A1008093A0008F81AF
:1001E000882321F48E81821708F4282F2093610040
:1001F00089CF6850609361008091860098E88927D4
:100200008093860068E02091A0003091A100809149
:10021000800086FD97CF962FF901A7E8B0E0819185
:100220008D939150E1F797CF60E087E890E0A7D0F9
:1002300014E08FEF80936100A2CFCE017FD2282FF0
:10024000CECF853071F0863091F0883031F1893031
:1002500061F18A3031F18B30F1F18FE890E020E0EC
:10026000BACF9093A3008FE890E020E0B4CF8B81C9
:10027000813049F18230F9F0833029F020E080E4C8
:1002800080938000ACCF992351F586E290E0909363
:10029000A1008093A00024E0F2CF85EA90E021E065
:1002A0009ACF8FE890E021E096CF9093A5008FE859
:1002B00090E020E090CF8AE790E09093A1008093B7
:1002C000A00029E1DCCF88E690E09093A100809324
:1002D000A00022E1D4CF8BE480939200BECF913076
:1002E00051F0923059F684E490E09093A10080930D
:1002F000A00024E2C4CF8AE290E09093A100809312
:10030000A0002AE1BCCFDF91CF911F9108951F93E8
:10031000DC01162F8091910084FF0FC08091920024
:1003200098E8892780939200912FE3E9F0E08D917E
:10033000819391501916DCF304C08AE580939100F3
:10034000F3CF612F83E990E01AD01C5F10939100E6
:100350001F910895A82FB92F80E090E041E050EA66
:10036000609530E009C02D9182279795879510F010
:1003700084279527305EC8F36F5FA8F30895EADFFE
:100380008D939D930895CF93CFB7CF93C395989BAB
:10039000E9F7989B09C0989B07C0989B05C0989B5C
:1003A00003C0989B01C0A3C0DF93C0919F00DD27CD
:1003B000CA55DF4F989B02C0DF91EBCF2F930F936D
:1003C0001F9303B32FEF00FB20F94F933F9313B319
:1003D0004FEF012700FB21F93BE031C04E7F012F99
:1003E00013B3216028C0102F4D7F2260000003B39B
:1003F00029C04B7F2460012F000013B32BC013B31F
:10040000477F28602AC04F7E03B320612CC04F7DF8
:1004100013B320622FC04F7B03B3206432C0422746
:1004200003B349934FEF0000102710FB20F913B3DB
:100430001370C9F1297F91F2012700FB21F903B361
:10044000237F89F2315058F1102710FB22F913B3A2
:10045000277E79F2012700FB23F92F7C81F203B379
:10046000102710FB24F92F7971F200C013B3012774
:1004700000FB25F92F7359F200C003B3102710FBBE
:1004800026F9223040F200C013B3012700FB27F900
:10049000243028F64F77206813B30000F9CF10E41A
:1004A0001ABF002719C03B503195C31BD04010E440
:1004B0001ABF0881033CF9F00B34E9F020919D004C
:1004C0001981110F1213EDCF4A81441F093641F1F2
:1004D0000D3211F0013E29F70093A4003F914F9196
:1004E0001F910F912F91DF91CAB7C6FD4FCFCF91CA
:1004F000CFBFCF9118952091A400222379F31091BA
:10050000A200112369F534306AF13093A2002093E0
:100510009E0010919F003BE0311B30939F0022C052
:100520000091A2000130E4F40AE54F7049F43091E3
:10053000600034FD19C000936000C6E8D0E018C028
:100540003091910034FD10C000939100C2E9D0E0D9
:100550000FC02795A8F45150A9F4220F0000F9CF3D
:100560004AE503C042ED01C0432FC4E1D0E032E0D0
:1005700014B31360A89A14BB05B320E413E05F938F
:10058000012756E005BB279520F4515021F4220F96
:10059000F9CF012756E000003B5A05BBD0F2279562
:1005A00028F4515029F4220F0000F9CF012756E01A
:1005B000279505BB20F4515021F4220FF9CF0127D4
:1005C00056E02991332305BB21F60C7F1091A3003F
:1005D000110FC651D04005BB11F010939D0010E4DF
:1005E0001ABF016014B31C7F402F4C7F5F9100C085
:1005F00000C005BB14BB45BB71CF20E030E0D90182
:100600003FD2802D823481F082E4D901082E40D27D
:100610008FEF21E030E0D901082E3AD242E050E0DD
:10062000DA01082E35D204C021E030E042E050E08B
:1006300087B3866087BB81EE8FBD89E08EBD89B7A9
:10064000837C89BFD9011CD2802D99279BBD8ABD8F
:10065000DA0116D2802D992799BD88BD0895982F6B
:1006600021E030E0D9010CD2802D981719F0D90182
:10067000092E0ED2892F99279BBD8ABD0895982FE8
:1006800022E030E0D901FCD1802D981719F0D90172
:10069000092EFED1892F992799BD88BD089588E13B
:1006A00090E02EE00FB6F894A89581BD0FBE21BD55
:1006B00088EF81BB12BA15BA8FEF84BB80E49CE946
:1006C0000197F1F78CEF84BB01DD97DFA598AD9A18
:1006D000B898C09A81E086D1882329F08091810062
:1006E00081608093810082E07DD1882321F1809117
:1006F000810082608093810080FD16C081FD0DC065
:10070000992780FF06C081FF04C069E770E083E09D
:1007100057D17894A895E7DCFDCF60E770E082E0E0
:100720004FD180918100ECCF62E670E081E048D14A
:1007300080918100E3CF80918100DECFFF920F9303
:100740001F93CF93DF93EC0182E890E09093A10098
:100750008093A000898193E0F92EF822F394869586
:1007600086958695982F9370869586958230F9F0B8
:10077000833040F0833009F443C0843091F180E04D
:1007800090E069C0882321F18130C9F70091810090
:100790000923A9F3FF2099F310E0FE01E10FF11DF9
:1007A0006281802FF2D01F5FF116B9F7E8CF009178
:1007B0008100092321F3FF2011F310E0FE01E10F76
:1007C000F11D6281802FEDD01F5FF116B9F7D7CFF1
:1007D0008A81809382008B818093830082E090E005
:1007E0003AC0913029F19130D0F0923041F68091A9
:1007F0008100809382001092830082E090E02BC001
:10080000992341F0913009F0BACF8A8138DF80E036
:1008100090E021C08A8123DF80E090E01CC081E06D
:100820008093820089E08093830082E090E013C08F
:1008300083B3B09B0EC090E08295869587708095BB
:100840008170982B909382001092830082E090E058
:1008500002C092E0F1CFDF91CF911F910F91FF90F5
:1008600008959927AC014170507080FDAB9A9C01AE
:100870002270307081FDAC9A00C04111AB98232BDF
:1008800009F0AC980895FF920F931F93F82E062F4E
:10089000442311F0939A01C09398AA9881B3806F72
:1008A00081BB12B31F70802F807F812B82BB8F2D65
:1008B000D8DF0295007F012B02BB8F2DD2DF106F96
:1008C00012BB1F910F91FF900895982F662359F145
:1008D000939AAA9A81B38F7081BB82B3806F82BBD7
:1008E000892F9927BC016170707080FDAB9AAC01B3
:1008F0004270507081FDAC9A00C080B36111AB981A
:100900004115510509F0AC9800C06111AB9A411531
:10091000510509F0AC9A00C020B36111AB98452B8A
:1009200021F0AC9802C09398D4CF807F22952F708D
:10093000822B99270895FF920F931F93CF93DF93F4
:1009400099278C0101701070EC01C270D07004C046
:10095000FF24209791F00CC001151105C9F360E048
:1009600081E0B3DFF82EFF1CFF24FF1C209729F045
:1009700060E082E0AADF87FDEFCFFF2069F7DF911B
:10098000CF911F910F91FF9008950F931F93182FF0
:10099000062FD1DF40E0602F812F75DF1F910F916F
:1009A00008950F931F93182F062FC5DF41E0602F86
:1009B000812F69DF1F910F91089561E0E6DF0895AF
:1009C0001F93CF93DF93182FEB016881662331F0DB
:1009D0002196812FE6DF68816623D1F7DF91CF91E1
:1009E0001F9108951F93CF93DF93182F81B3806FCA
:1009F00081BB8B9AA29AA39AA49A80E89BEB019759
:100A0000F1F782B38F70806382BB812F2ADF80E889
:100A10009AE30197F1F7812F24DFC0ECD0E0CE01FB
:100A20000197F1F7812F1DDFCE010197F1F7919822
:100A3000812F17DFCE010197F1F760E0812F45DFAD
:100A400087FD18C068E2812FA0DF2197F1F760E0F1
:100A5000812F3BDF87FD0EC068E0812F96DF812F5D
:100A6000ACDF66E0812F91DF6CE0812F8EDF81E0CB
:100A700090E002C080E090E0DF91CF911F91089557
:100A8000E199FECFBFBBAEBBE09A11960DB20895BF
:100A9000E199FECFBFBBAEBB0DBA11960FB6F8946D
:0A0AA000E29AE19A0FBE0895FFCF1D
:100AAA005AFF4C4344325553422056312E303900B6
:100ABA00326E64206374726C0020626F7468210065
:00000001FF
Oops, something went wrong.

0 comments on commit c73d327

Please sign in to comment.