Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:electronics:7segdisplay [2009/01/07 17:10] – photonicsguy | projects:electronics:7segdisplay [2014/11/13 14:37] (current) – photonicsguy | ||
---|---|---|---|
Line 2: | Line 2: | ||
{{: | {{: | ||
+ | < | ||
This was one of my first doublesided and surfacemount boards. I made this board using Eagle for layout and then I used [[http:// | This was one of my first doublesided and surfacemount boards. I made this board using Eagle for layout and then I used [[http:// | ||
Line 10: | Line 11: | ||
[[projects: | [[projects: | ||
- | C1 is 2.7nf (2700pf) | + | C1, 2.7nf (2700pf) |
- | R1=R2=220Ohms | + | R1,R2 = 220 Ohms |
{{: | {{: | ||
====== Constants ====== | ====== Constants ====== | ||
- | <code> | + | <file mpasm saa1065const.asm> |
; SAA1064 Constants | ; SAA1064 Constants | ||
SAA1064ADDRESS EQU B' | SAA1064ADDRESS EQU B' | ||
Line 24: | Line 25: | ||
SAA1064SEGDP EQU B' | SAA1064SEGDP EQU B' | ||
SAA1064SEGJ EQU B' | SAA1064SEGJ EQU B' | ||
- | </code> | + | </file> |
====== PIC18 assembly code lookup table ====== | ====== PIC18 assembly code lookup table ====== | ||
- | <code asm> | + | <file mpasm saa1065lookup.asm> |
;Lookup Table for 7-seg | ;Lookup Table for 7-seg | ||
;TODO Add test to make sure number is 0x0F or below | ;TODO Add test to make sure number is 0x0F or below | ||
Line 57: | Line 58: | ||
RETLW B' | RETLW B' | ||
;End of Lookup | ;End of Lookup | ||
- | </code> | + | </file> |