Motorola DSP56000 Assembler  Version 3.1  102-12-07  22:32:08  gen_uad.asm
  Page 1



1      
2         00FFFD         pctl      equ     $fffd
3         00FFFE         bcr       equ     $fffe                             ; B
CR Register
4         00FFFC         ogdbr     equ     $fffc                             ; O
nCE GDB Register
5         00FFEB         ecsr      equ     $ffeb                             ; E
MI Control/Status Register
6         00FFEA         edrr0     equ     $ffea                             ; E
MI Data Read Register
7         00FFE8         ebar0     equ     $ffe8                             ; E
MI Base Address Register 0
8         00FFE9         eor0      equ     $ffe9                             ; E
MI Offset Register
9         00000D         edrf      equ     13                                ; E
MI EDRR Full flag
10        000011         hrne      equ     17                                ; S
HI FIFO Not Empty flag
11        00FFF3         hrx       equ     $fff3                             ; S
HI HRX FIFO
12        00FFF1         hcsr      equ     $fff1                             ; S
HI Control/Status Register
13        000001         hi2c      equ     1                                 ; S
HI IIC Enable Control Bit
14        000000         ma        equ     0                                 ; O
MR Mode A
15        000001         mb        equ     1                                 ; O
MR Mode B
16        000004         mc        equ     4                                 ; O
MR Mode C
17        00FFF7         gpior     equ     $fff7                             ; G
PIO Control/Data Register
18        000009         gdd3      equ     9                                 ; d
irection bit for GPIO3
19        000001         gd3       equ     1                                 ; d
ata bit for GPIO3
20        00FFE1         rcs       equ     $ffe1                             ;SA
I receiver control / status register
21        00FFE4         tcs       equ     $ffe4                             ;SA
I transmitter conntrol /status register
22        00FFE0         brc       equ     $ffe0                             ;ba
ud rate control register
23        00FFE2         rx0       equ     $ffe2                             ;SA
I receive data register
24        00FFE3         rx1       equ     $ffe3                             ;SA
I receive data register
25        00FFE5         tx0       equ     $ffe5                             ;SA
I transmit data register
26        00FFE6         tx1       equ     $ffe6                             ;SA
I transmit data register
27        00FFE7         tx2       equ     $ffe7                             ;SA
I transmit data register
28        00FFFF         ipr       equ     $ffff                             ;in
terrupt priority register
29        00000E         rldf      equ     14
30        00000F         rrdf      equ     15
31     
32     
33        000008         N         equ     8
34     
35     
Motorola DSP56000 Assembler  Version 3.1  102-12-07  22:32:08  gen_uad.asm
  Page 2



36        P:0000                   org     p:$0                              ; b
ootstrap code starts at $0
37        P:0000 0AF080            jmp     start1
                 000002
38     
39     
40     
41     
42                       start1:
43                                                                           ;fi
ltr dolnoprzepustowy fir na 0.1 fs
44     
45        P:0002 56F400            move              #0.0286,a
                 03A92A
46        P:0004 5E0000            move                          a,y:0
47        P:0005 56F400            move              #0.0716,a
                 092A30
48        P:0007 5E0100            move                          a,y:1
49        P:0008 56F400            move              #0.1683,a
                 158ADB
50        P:000A 5E0200            move                          a,y:2
51        P:000B 56F400            move              #0.2458,a
                 1F7660
52        P:000D 5E0300            move                          a,y:3
53     
54     
55     
56        P:000E 08F4BD            movep             #$260023,x:pctl         ; u
aktywnij PLL i ustaw 50MHz
                 260023
57        P:0010 08F4A1            movep             #$000201,x:rcs          ;ua
ktywnij SAI
                 000201
58     
59        P:0012 08F4A4            movep             #$000201,x:tcs          ;ua
ktywnij SAI
                 000201
60                                                                           ;  
movep #$000101,x:brc     ;uaktywnij preskaler
61     
62     
63                       ;    movep #$000c00,x:ipr
64                                                                           ;  
  ori   #$0c,mr   ;wylacz przerwania
65     
66     
67     
68     
69        P:0014 60F400            move              #$100,r0                ;po
czatek bufora probek
                 000100
70        P:0016 64F400            move              #$140,r4                ;po
cz. buf. wsp.
                 000140
71        P:0018 380400            move              #4,N0
72        P:0019 3C0400            move              #4,N4
73        P:001A 05FFA0            move              #$0ff,m0                ;ar
ytm. mod N dla rej. adres
74        P:001B 0464A0            move              m0,m4                   ;do
tycz. obu buforow
75     
Motorola DSP56000 Assembler  Version 3.1  102-12-07  22:32:08  gen_uad.asm
  Page 3



76        P:001C 310F00            move              #15,r1                  ;po
czatek bufora probek
77        P:001D 350000            move              #0,r5                   ;po
cz. buf. wsp.
78        P:001E 0507A1            move              #N-1,m1                 ;ar
ytm. mod N dla rej. adres
79        P:001F 0465A1            move              m1,m5                   ;do
tycz. obu buforow
80     
81                       ;      do #128,przes
82                       ;      nop
83                       ;      move (r4)+
84                       ;      nop
85                       ;przes:
86     
87     
88     
89                       petla:
90        P:0020 000000            nop
91        P:0021 0AA1AE            jset    #rldf,x:rcs,odbierz_lewy
                 000028
92        P:0023 000000            nop
93        P:0024 0AA1AF            jset    #rrdf,x:rcs,odbierz_prawy
                 000031
94     
95        P:0026 000000            nop
96        P:0027 0C0020            jmp     petla
97     
98     
99                       odbierz_lewy:
100       P:0028 56F000            move              x:rx0,a
                 00FFE2
101       P:002A 000000            nop
102       P:002B 5EC800            move                          y:(r0)+N0,a
103       P:002C 000000            nop
104       P:002D 567000            move              a,x:tx0
                 00FFE5
105       P:002F 000000            nop
106       P:0030 0C0020            jmp     petla
107    
108    
109                      odbierz_prawy:
110       P:0031 56F000            move              x:rx0,a
                 00FFE2
111       P:0033 000000            nop
112       P:0034 5ECC00            move                          y:(r4)+N4,a
113       P:0035 000000            nop
114       P:0036 567000            move              a,x:tx0
                 00FFE5
115    
116       P:0038 000000            nop
117       P:0039 0C0020            jmp     petla
118    
119    
120    
121    
122    
123    
124    
125                      ;start2:
126    
Motorola DSP56000 Assembler  Version 3.1  102-12-07  22:32:08  gen_uad.asm
  Page 4



127                      ;    move x:rx0,a
128                                                                          ; a
bs a
129                      ;    asl a
130                                                                          ;  
move a,x:tx0
131    
132    
133                                                                          ;  
 jmp petla
134    
135                      ;start3:
136                      ;    nop
137                      ;    bset #gdd3,x:gpior
138                      ;    nop
139                                                                          ; d
o #1,petla2
140                                                                          ; d
o #1,petla1
141    
142                      ;    nop
143    
144    
145    
146    
147                      ;petla1:
148                      ;    nop
149                      ;petla2:
150                      ;
151    
152                      ;    bclr #gdd3,x:gpior
153                                                                          ; d
o #1,petla3
154                                                                          ; d
o #1,petla4
155    
156                      ;    nop
157    
158                      ;petla4:
159                      ;   nop
160                      ;petla3:
161                                                                          ; r
ti
162    
163                      ;    jmp start2
164                      ;     jmp petla

0    Errors
0    Warnings












