Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
astuder committed Nov 19, 2012
0 parents commit e3c5b94
Show file tree
Hide file tree
Showing 10 changed files with 1,062 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
163 changes: 163 additions & 0 deletions .gitignore
@@ -0,0 +1,163 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML



############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

# Mac crap
.DS_Store
Binary file added LCD Breakout Render.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LCD Breakout Schema.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LCD Breakout.brd
Binary file not shown.
Binary file added LCD Breakout.sch
Binary file not shown.
22 changes: 22 additions & 0 deletions README.md
@@ -0,0 +1,22 @@
Example of using SHARP LS013B4DN02 with MSP430 LaunchPad
========================================================

SHARP LS013B4DN02 is a very low power 1.35 inch, 96x96 pixel LCD display. It uses
less than 15 uW when displaying a static image.

http://www.sharpmemorylcd.com/1-35-inch-memory-lcd.html

Mouser indicates this model as end-of-life. However LS013B4DN04 has very similar
specifications and should also work with this code and breakout board.

As the display comes with 0.5mm pitch FPC cable I designed a basic breakout board
with a matching connector and the recommended decoupling capacitors.

Wiring on MSP430 LaunchPad to LCD breakout:
* P1.0: LED (VCOM status display)
* P1.4: DISP (display on/off)
* P1.5: SCLK (SPI clock)
* P1.6: SI (SPI data)
* P1.7: SCS (SPI chip select)
* GND: GND
* VCC: VDD and VDDA (even though specified 5V, the display works fine at 3V)
24 changes: 24 additions & 0 deletions doublewide.asm
@@ -0,0 +1,24 @@
;-----------------------------------
; doublewide.asm
;
; doubleWideAsm - duplicate pixels from byte to word

.global doubleWideAsm

; R12 input character byte
; R13 input linebuff address to receive word
; R14 temp for output word
; R15 temp for bit count

doubleWideAsm:
MOV.B #8, R15 ; set bit counter to 8
nextPixel:
RRA.B R12 ; shift pixel into carry
RRC.W R14 ; shift pixel into word
RRA.W R14 ; duplicate pixel
DEC.B R15 ; decrease bit counter
JNZ nextPixel ; not done yet
MOV.B R14, 1(R13) ; store 1st byte in linebuff not using MOV.W as linebuff position might be odd
SWPB R14 ; get access to 2nd byte
MOV.B R14, 0(R13) ; store 2nd byte in linebuff
RET ; done

0 comments on commit e3c5b94

Please sign in to comment.