Displaying student number on display works!
This commit is contained in:
parent
07881e8d13
commit
277d10acfd
|
@ -0,0 +1,22 @@
|
|||
|
||||
|
||||
.include "msp430g2553.inc"
|
||||
|
||||
org 0xC000
|
||||
start:
|
||||
;mov.w #0x5a80, &WDTCTL
|
||||
mov.w #WDTPW|WDTHOLD, &WDTCTL
|
||||
mov.b #0x41, &P1DIR
|
||||
mov.w #0x01, r8
|
||||
repeat:
|
||||
mov.b r8, &P1OUT
|
||||
xor.b #0x41, r8
|
||||
mov.w #40000, r9
|
||||
waiter:
|
||||
dec r9
|
||||
jnz waiter
|
||||
jmp repeat
|
||||
|
||||
org 0xfffe
|
||||
dw start ; set reset vector to 'init' label
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
:10C00000B240805A2001F240410022001843C24849
|
||||
:10C01000210078E041003940409C1983FE23F73F1E
|
||||
:02FFFE0000C041
|
||||
:00000001FF
|
|
@ -8,9 +8,13 @@ START:
|
|||
mov.b #11110111b, &P1DIR
|
||||
|
||||
; set digits
|
||||
mov.b #01100000b, &P1OUT ; xxx6
|
||||
mov.b #01100001b, &P1OUT ; xxx6
|
||||
mov.b #01000010b, &P1OUT ; xx46
|
||||
mov.b #01000011b, &P1OUT ; xx46
|
||||
mov.b #00010100b, &P1OUT ; x146
|
||||
mov.b #00010101b, &P1OUT ; x146
|
||||
mov.b #01000110b, &P1OUT ; 4146
|
||||
mov.b #01000111b, &P1OUT ; 4146
|
||||
|
||||
; disable
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
:10C0000031400004B240805A2001F240F700220083
|
||||
:10C01000F24061002100F24043002100F24015008F
|
||||
:0CC020002100F2404700210032D0100047
|
||||
:10C01000F24060002100F24061002100F240420045
|
||||
:10C020002100F24043002100F24014002100F240C0
|
||||
:10C0300015002100F24046002100F2404700210097
|
||||
:04C0400032D01000EA
|
||||
:02FFFE0000C041
|
||||
:00000001FF
|
||||
|
|
Loading…
Reference in New Issue