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 [2008/06/01 23:23] – 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 ====== | ||
| - | ; SAA1064 Constants | + | <file mpasm saa1065const.asm> |
| - | SAA1064ADDRESS EQU B' | + | ; SAA1064 Constants |
| - | SAA1064CONTROL EQU B' | + | SAA1064ADDRESS EQU B' |
| - | SAA1064SEGDASH EQU B' | + | SAA1064CONTROL EQU B' |
| - | SAA1064SEGDP EQU B' | + | SAA1064SEGDASH EQU B' |
| - | SAA1064SEGJ EQU B' | + | SAA1064SEGDP EQU B' |
| + | SAA1064SEGJ EQU B' | ||
| + | </ | ||
| ====== PIC18 assembly code lookup table ====== | ====== PIC18 assembly code lookup table ====== | ||
| - | ;Lookup Table for 7-seg | + | <file mpasm saa1065lookup.asm> |
| - | ;TODO Add test to make sure number is 0x0F or below | + | ;Lookup Table for 7-seg |
| - | ;DP is Bit 7 | + | ;TODO Add test to make sure number is 0x0F or below |
| - | SEG_LOOKUP | + | ;DP is Bit 7 |
| - | MOVWF Temp, | + | SEG_LOOKUP |
| - | MOVLW 0x10 | + | MOVWF Temp, |
| - | SUBWF Temp, | + | MOVLW 0x10 |
| - | BTFSC STATUS, | + | SUBWF Temp, |
| - | RETLW B' | + | BTFSC STATUS, |
| - | BCF STATUS, | + | RETLW B' |
| - | RLCF Temp, | + | BCF STATUS, |
| - | ADDWF PCL, | + | RLCF Temp, |
| - | RETLW B' | + | ADDWF PCL, |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | RETLW B' | + | RETLW B' |
| - | ;End of Lookup | + | RETLW B' |
| + | ;End of Lookup | ||
| + | </ | ||