Motorola DSP56000 Assembler  Version 3.1  102-12-07  23:40:29  fir7.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  23:40:29  fir7.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        P:000E 56F400            move              #0.2458,a
                 1F7660
54        P:0010 5E0400            move                          a,y:4
55        P:0011 56F400            move              #0.1683,a
                 158ADB
56        P:0013 5E0500            move                          a,y:5
57        P:0014 56F400            move              #0.0716,a
                 092A30
58        P:0016 5E0600            move                          a,y:6
59        P:0017 56F400            move              #0.0286,a
                 03A92A
60        P:0019 5E0700            move                          a,y:7
61     
62     
63     
64        P:001A 08F4BD            movep             #$260023,x:pctl         ; u
aktywnij PLL i ustaw 50MHz
                 260023
65        P:001C 08F4A1            movep             #$000201,x:rcs          ;ua
ktywnij SAI
                 000201
66     
67        P:001E 08F4A4            movep             #$000201,x:tcs          ;ua
ktywnij SAI
                 000201
68                                                                           ;  
movep #$000101,x:brc     ;uaktywnij preskaler
69     
70     
71                       ;    movep #$000c00,x:ipr
72                                                                           ;  
  ori   #$0c,mr   ;wylacz przerwania
73     
74     
75     
76     
77        P:0020 300000            move              #0,r0                   ;po
Motorola DSP56000 Assembler  Version 3.1  102-12-07  23:40:29  fir7.asm
  Page 3



czatek bufora probek
78        P:0021 340000            move              #0,r4                   ;po
cz. buf. wsp.
79        P:0022 0507A0            move              #N-1,m0                 ;ar
ytm. mod N dla rej. adres
80        P:0023 0464A0            move              m0,m4                   ;do
tycz. obu buforow
81     
82        P:0024 310F00            move              #15,r1                  ;po
czatek bufora probek
83        P:0025 350000            move              #0,r5                   ;po
cz. buf. wsp.
84        P:0026 0507A1            move              #N-1,m1                 ;ar
ytm. mod N dla rej. adres
85        P:0027 0465A1            move              m1,m5                   ;do
tycz. obu buforow
86     
87     
88     
89     
90     
91                       petla:
92        P:0028 000000            nop
93        P:0029 0AA1AE            jset    #rldf,x:rcs,odbierz_lewy
                 000030
94        P:002B 000000            nop
95        P:002C 0AA1AF            jset    #rrdf,x:rcs,odbierz_prawy
                 000040
96     
97        P:002E 000000            nop
98        P:002F 0C0028            jmp     petla
99     
100    
101                      odbierz_lewy:
102       P:0030 56F000            move              x:rx0,a
                 00FFE2
103       P:0032 000000            nop
104       P:0033 000000            nop
106       P:0034 566000            move              a,x:(r0)                ;za
pisz probke do pamieci
107       P:0035 F09813            clr     a         x:(r0)+,x0  y:(r4)+,y0
108    
**** 109 [fir7.asm 109]: WARNING --- Instruction cannot appear in interrupt vect
or locations (Opcode field)
109       P:0036 060780            do      #N-1,splot
                 000038
110    
111       P:0038 F098D2            mac     x0,y0,a   x:(r0)+,x0  y:(r4)+,y0
112    
113                      splot:
114    
115    
116    
117       P:0039 2050D3            macr    x0,y0,a   (r0)-
118       P:003A 000000            nop
119       P:003B 000000            nop
120    
122       P:003C 567000            move              a,x:tx0
                 00FFE5
123       P:003E 000000            nop
124       P:003F 0C0028            jmp     petla
Motorola DSP56000 Assembler  Version 3.1  102-12-07  23:40:29  fir7.asm
  Page 4



125    
126    
127                      odbierz_prawy:
128       P:0040 56F000            move              x:rx0,a
                 00FFE2
129       P:0042 000000            nop
130    
131       P:0043 566100            move              a,x:(r1)                ;za
pisz probke do pamieci
132       P:0044 F0B913            clr     a         x:(r1)+,x0  y:(r5)+,y0
133    
134       P:0045 060780            do      #N-1,splot1
                 000047
135    
136       P:0047 F0B9D2            mac     x0,y0,a   x:(r1)+,x0  y:(r5)+,y0
137    
138                      splot1:
139    
140    
141    
142       P:0048 2051D3            macr    x0,y0,a   (r1)-
143       P:0049 000000            nop
144       P:004A 000000            nop
145    
146    
147       P:004B 000000            nop
148       P:004C 567000            move              a,x:tx0
                 00FFE5
149       P:004E 000000            nop
150                                                                          ; j
mp start2
151       P:004F 0C0028            jmp     petla
152    
153    
154    
155    
156    
157    
158    
159                      ;start2:
160    
161                      ;    move x:rx0,a
162                                                                          ; a
bs a
163                      ;    asl a
164                                                                          ;  
move a,x:tx0
165    
166    
167                                                                          ;  
 jmp petla
168    
169                      ;start3:
170                      ;    nop
171                      ;    bset #gdd3,x:gpior
172                      ;    nop
173                                                                          ; d
o #1,petla2
174                                                                          ; d
o #1,petla1
175    
Motorola DSP56000 Assembler  Version 3.1  102-12-07  23:40:29  fir7.asm
  Page 5



176                      ;    nop
177    
178    
179    
180    
181                      ;petla1:
182                      ;    nop
183                      ;petla2:
184                      ;
185    
186                      ;    bclr #gdd3,x:gpior
187                                                                          ; d
o #1,petla3
188                                                                          ; d
o #1,petla4
189    
190                      ;    nop
191    
192                      ;petla4:
193                      ;   nop
194                      ;petla3:
195                                                                          ; r
ti
196    
197                      ;    jmp start2
198                      ;     jmp petla

0    Errors
1    Warning 
































