-
Notifications
You must be signed in to change notification settings - Fork 0
/
frequency.lst
946 lines (946 loc) · 51.1 KB
/
frequency.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
0000 1 ;--------------------------------------------------------
0000 2 ; File Created by C51
0000 3 ; Version 1.0.0 #1069 (Apr 23 2015) (MSVC)
0000 4 ; This file was generated Wed Feb 28 12:28:23 2018
0000 5 ;--------------------------------------------------------
5 $name frequency
6 $optc51 --model-small
0000 8 R_DSEG segment data
0000 9 R_CSEG segment code
0000 10 R_BSEG segment bit
0000 11 R_XSEG segment xdata
0000 12 R_PSEG segment xdata
0000 13 R_ISEG segment idata
0000 14 R_OSEG segment data overlay
0000 15 BIT_BANK segment data overlay
0000 16 R_HOME segment code
0000 17 R_GSINIT segment code
0000 18 R_IXSEG segment xdata
0000 19 R_CONST segment code
0000 20 R_XINIT segment code
0000 21 R_DINIT segment code
0000 22
0000 23 ;--------------------------------------------------------
0000 24 ; Public variables in this module
0000 25 ;--------------------------------------------------------
0000 26 public _main
0000 27 public _TIMER0_Init
0000 28 public _waitms
0000 29 public _Timer3us
0000 30 public __c51_external_startup
0000 31 public _overflow_count
0000 32 ;--------------------------------------------------------
0000 33 ; Special Function Registers
0000 34 ;--------------------------------------------------------
0000 35 _ACC DATA 0xe0
0000 36 _ADC0ASAH DATA 0xb6
0000 37 _ADC0ASAL DATA 0xb5
0000 38 _ADC0ASCF DATA 0xa1
0000 39 _ADC0ASCT DATA 0xc7
0000 40 _ADC0CF0 DATA 0xbc
0000 41 _ADC0CF1 DATA 0xb9
0000 42 _ADC0CF2 DATA 0xdf
0000 43 _ADC0CN0 DATA 0xe8
0000 44 _ADC0CN1 DATA 0xb2
0000 45 _ADC0CN2 DATA 0xb3
0000 46 _ADC0GTH DATA 0xc4
0000 47 _ADC0GTL DATA 0xc3
0000 48 _ADC0H DATA 0xbe
0000 49 _ADC0L DATA 0xbd
0000 50 _ADC0LTH DATA 0xc6
0000 51 _ADC0LTL DATA 0xc5
0000 52 _ADC0MX DATA 0xbb
0000 53 _B DATA 0xf0
0000 54 _CKCON0 DATA 0x8e
0000 55 _CKCON1 DATA 0xa6
0000 56 _CLEN0 DATA 0xc6
0000 57 _CLIE0 DATA 0xc7
0000 58 _CLIF0 DATA 0xe8
0000 59 _CLKSEL DATA 0xa9
0000 60 _CLOUT0 DATA 0xd1
0000 61 _CLU0CF DATA 0xb1
0000 62 _CLU0FN DATA 0xaf
0000 63 _CLU0MX DATA 0x84
0000 64 _CLU1CF DATA 0xb3
0000 65 _CLU1FN DATA 0xb2
0000 66 _CLU1MX DATA 0x85
0000 67 _CLU2CF DATA 0xb6
0000 68 _CLU2FN DATA 0xb5
0000 69 _CLU2MX DATA 0x91
0000 70 _CLU3CF DATA 0xbf
0000 71 _CLU3FN DATA 0xbe
0000 72 _CLU3MX DATA 0xae
0000 73 _CMP0CN0 DATA 0x9b
0000 74 _CMP0CN1 DATA 0x99
0000 75 _CMP0MD DATA 0x9d
0000 76 _CMP0MX DATA 0x9f
0000 77 _CMP1CN0 DATA 0xbf
0000 78 _CMP1CN1 DATA 0xac
0000 79 _CMP1MD DATA 0xab
0000 80 _CMP1MX DATA 0xaa
0000 81 _CRC0CN0 DATA 0xce
0000 82 _CRC0CN1 DATA 0x86
0000 83 _CRC0CNT DATA 0xd3
0000 84 _CRC0DAT DATA 0xcb
0000 85 _CRC0FLIP DATA 0xcf
0000 86 _CRC0IN DATA 0xca
0000 87 _CRC0ST DATA 0xd2
0000 88 _DAC0CF0 DATA 0x91
0000 89 _DAC0CF1 DATA 0x92
0000 90 _DAC0H DATA 0x85
0000 91 _DAC0L DATA 0x84
0000 92 _DAC1CF0 DATA 0x93
0000 93 _DAC1CF1 DATA 0x94
0000 94 _DAC1H DATA 0x8a
0000 95 _DAC1L DATA 0x89
0000 96 _DAC2CF0 DATA 0x95
0000 97 _DAC2CF1 DATA 0x96
0000 98 _DAC2H DATA 0x8c
0000 99 _DAC2L DATA 0x8b
0000 100 _DAC3CF0 DATA 0x9a
0000 101 _DAC3CF1 DATA 0x9c
0000 102 _DAC3H DATA 0x8e
0000 103 _DAC3L DATA 0x8d
0000 104 _DACGCF0 DATA 0x88
0000 105 _DACGCF1 DATA 0x98
0000 106 _DACGCF2 DATA 0xa2
0000 107 _DERIVID DATA 0xad
0000 108 _DEVICEID DATA 0xb5
0000 109 _DPH DATA 0x83
0000 110 _DPL DATA 0x82
0000 111 _EIE1 DATA 0xe6
0000 112 _EIE2 DATA 0xf3
0000 113 _EIP1 DATA 0xbb
0000 114 _EIP1H DATA 0xee
0000 115 _EIP2 DATA 0xed
0000 116 _EIP2H DATA 0xf6
0000 117 _EMI0CN DATA 0xe7
0000 118 _FLKEY DATA 0xb7
0000 119 _HFO0CAL DATA 0xc7
0000 120 _HFO1CAL DATA 0xd6
0000 121 _HFOCN DATA 0xef
0000 122 _I2C0ADM DATA 0xff
0000 123 _I2C0CN0 DATA 0xba
0000 124 _I2C0DIN DATA 0xbc
0000 125 _I2C0DOUT DATA 0xbb
0000 126 _I2C0FCN0 DATA 0xad
0000 127 _I2C0FCN1 DATA 0xab
0000 128 _I2C0FCT DATA 0xf5
0000 129 _I2C0SLAD DATA 0xbd
0000 130 _I2C0STAT DATA 0xb9
0000 131 _IE DATA 0xa8
0000 132 _IP DATA 0xb8
0000 133 _IPH DATA 0xf2
0000 134 _IT01CF DATA 0xe4
0000 135 _LFO0CN DATA 0xb1
0000 136 _P0 DATA 0x80
0000 137 _P0MASK DATA 0xfe
0000 138 _P0MAT DATA 0xfd
0000 139 _P0MDIN DATA 0xf1
0000 140 _P0MDOUT DATA 0xa4
0000 141 _P0SKIP DATA 0xd4
0000 142 _P1 DATA 0x90
0000 143 _P1MASK DATA 0xee
0000 144 _P1MAT DATA 0xed
0000 145 _P1MDIN DATA 0xf2
0000 146 _P1MDOUT DATA 0xa5
0000 147 _P1SKIP DATA 0xd5
0000 148 _P2 DATA 0xa0
0000 149 _P2MASK DATA 0xfc
0000 150 _P2MAT DATA 0xfb
0000 151 _P2MDIN DATA 0xf3
0000 152 _P2MDOUT DATA 0xa6
0000 153 _P2SKIP DATA 0xcc
0000 154 _P3 DATA 0xb0
0000 155 _P3MDIN DATA 0xf4
0000 156 _P3MDOUT DATA 0x9c
0000 157 _PCA0CENT DATA 0x9e
0000 158 _PCA0CLR DATA 0x9c
0000 159 _PCA0CN0 DATA 0xd8
0000 160 _PCA0CPH0 DATA 0xfc
0000 161 _PCA0CPH1 DATA 0xea
0000 162 _PCA0CPH2 DATA 0xec
0000 163 _PCA0CPH3 DATA 0xf5
0000 164 _PCA0CPH4 DATA 0x85
0000 165 _PCA0CPH5 DATA 0xde
0000 166 _PCA0CPL0 DATA 0xfb
0000 167 _PCA0CPL1 DATA 0xe9
0000 168 _PCA0CPL2 DATA 0xeb
0000 169 _PCA0CPL3 DATA 0xf4
0000 170 _PCA0CPL4 DATA 0x84
0000 171 _PCA0CPL5 DATA 0xdd
0000 172 _PCA0CPM0 DATA 0xda
0000 173 _PCA0CPM1 DATA 0xdb
0000 174 _PCA0CPM2 DATA 0xdc
0000 175 _PCA0CPM3 DATA 0xae
0000 176 _PCA0CPM4 DATA 0xaf
0000 177 _PCA0CPM5 DATA 0xcc
0000 178 _PCA0H DATA 0xfa
0000 179 _PCA0L DATA 0xf9
0000 180 _PCA0MD DATA 0xd9
0000 181 _PCA0POL DATA 0x96
0000 182 _PCA0PWM DATA 0xf7
0000 183 _PCON0 DATA 0x87
0000 184 _PCON1 DATA 0xcd
0000 185 _PFE0CN DATA 0xc1
0000 186 _PRTDRV DATA 0xf6
0000 187 _PSCTL DATA 0x8f
0000 188 _PSTAT0 DATA 0xaa
0000 189 _PSW DATA 0xd0
0000 190 _REF0CN DATA 0xd1
0000 191 _REG0CN DATA 0xc9
0000 192 _REVID DATA 0xb6
0000 193 _RSTSRC DATA 0xef
0000 194 _SBCON1 DATA 0x94
0000 195 _SBRLH1 DATA 0x96
0000 196 _SBRLL1 DATA 0x95
0000 197 _SBUF DATA 0x99
0000 198 _SBUF0 DATA 0x99
0000 199 _SBUF1 DATA 0x92
0000 200 _SCON DATA 0x98
0000 201 _SCON0 DATA 0x98
0000 202 _SCON1 DATA 0xc8
0000 203 _SFRPAGE DATA 0xa7
0000 204 _SFRPGCN DATA 0xbc
0000 205 _SFRSTACK DATA 0xd7
0000 206 _SMB0ADM DATA 0xd6
0000 207 _SMB0ADR DATA 0xd7
0000 208 _SMB0CF DATA 0xc1
0000 209 _SMB0CN0 DATA 0xc0
0000 210 _SMB0DAT DATA 0xc2
0000 211 _SMB0FCN0 DATA 0xc3
0000 212 _SMB0FCN1 DATA 0xc4
0000 213 _SMB0FCT DATA 0xef
0000 214 _SMB0RXLN DATA 0xc5
0000 215 _SMB0TC DATA 0xac
0000 216 _SMOD1 DATA 0x93
0000 217 _SP DATA 0x81
0000 218 _SPI0CFG DATA 0xa1
0000 219 _SPI0CKR DATA 0xa2
0000 220 _SPI0CN0 DATA 0xf8
0000 221 _SPI0DAT DATA 0xa3
0000 222 _SPI0FCN0 DATA 0x9a
0000 223 _SPI0FCN1 DATA 0x9b
0000 224 _SPI0FCT DATA 0xf7
0000 225 _SPI0PCF DATA 0xdf
0000 226 _TCON DATA 0x88
0000 227 _TH0 DATA 0x8c
0000 228 _TH1 DATA 0x8d
0000 229 _TL0 DATA 0x8a
0000 230 _TL1 DATA 0x8b
0000 231 _TMOD DATA 0x89
0000 232 _TMR2CN0 DATA 0xc8
0000 233 _TMR2CN1 DATA 0xfd
0000 234 _TMR2H DATA 0xcf
0000 235 _TMR2L DATA 0xce
0000 236 _TMR2RLH DATA 0xcb
0000 237 _TMR2RLL DATA 0xca
0000 238 _TMR3CN0 DATA 0x91
0000 239 _TMR3CN1 DATA 0xfe
0000 240 _TMR3H DATA 0x95
0000 241 _TMR3L DATA 0x94
0000 242 _TMR3RLH DATA 0x93
0000 243 _TMR3RLL DATA 0x92
0000 244 _TMR4CN0 DATA 0x98
0000 245 _TMR4CN1 DATA 0xff
0000 246 _TMR4H DATA 0xa5
0000 247 _TMR4L DATA 0xa4
0000 248 _TMR4RLH DATA 0xa3
0000 249 _TMR4RLL DATA 0xa2
0000 250 _TMR5CN0 DATA 0xc0
0000 251 _TMR5CN1 DATA 0xf1
0000 252 _TMR5H DATA 0xd5
0000 253 _TMR5L DATA 0xd4
0000 254 _TMR5RLH DATA 0xd3
0000 255 _TMR5RLL DATA 0xd2
0000 256 _UART0PCF DATA 0xd9
0000 257 _UART1FCN0 DATA 0x9d
0000 258 _UART1FCN1 DATA 0xd8
0000 259 _UART1FCT DATA 0xfa
0000 260 _UART1LIN DATA 0x9e
0000 261 _UART1PCF DATA 0xda
0000 262 _VDM0CN DATA 0xff
0000 263 _WDTCN DATA 0x97
0000 264 _XBR0 DATA 0xe1
0000 265 _XBR1 DATA 0xe2
0000 266 _XBR2 DATA 0xe3
0000 267 _XOSC0CN DATA 0x86
0000 268 _DPTR DATA 0x8382
0000 269 _TMR2RL DATA 0xcbca
0000 270 _TMR3RL DATA 0x9392
0000 271 _TMR4RL DATA 0xa3a2
0000 272 _TMR5RL DATA 0xd3d2
0000 273 _TMR0 DATA 0x8c8a
0000 274 _TMR1 DATA 0x8d8b
0000 275 _TMR2 DATA 0xcfce
0000 276 _TMR3 DATA 0x9594
0000 277 _TMR4 DATA 0xa5a4
0000 278 _TMR5 DATA 0xd5d4
0000 279 _SBRL1 DATA 0x9695
0000 280 _PCA0 DATA 0xfaf9
0000 281 _PCA0CP0 DATA 0xfcfb
0000 282 _PCA0CP1 DATA 0xeae9
0000 283 _PCA0CP2 DATA 0xeceb
0000 284 _PCA0CP3 DATA 0xf5f4
0000 285 _PCA0CP4 DATA 0x8584
0000 286 _PCA0CP5 DATA 0xdedd
0000 287 _ADC0ASA DATA 0xb6b5
0000 288 _ADC0GT DATA 0xc4c3
0000 289 _ADC0 DATA 0xbebd
0000 290 _ADC0LT DATA 0xc6c5
0000 291 _DAC0 DATA 0x8584
0000 292 _DAC1 DATA 0x8a89
0000 293 _DAC2 DATA 0x8c8b
0000 294 _DAC3 DATA 0x8e8d
0000 295 ;--------------------------------------------------------
0000 296 ; special function bits
0000 297 ;--------------------------------------------------------
0000 298 _ACC_0 BIT 0xe0
0000 299 _ACC_1 BIT 0xe1
0000 300 _ACC_2 BIT 0xe2
0000 301 _ACC_3 BIT 0xe3
0000 302 _ACC_4 BIT 0xe4
0000 303 _ACC_5 BIT 0xe5
0000 304 _ACC_6 BIT 0xe6
0000 305 _ACC_7 BIT 0xe7
0000 306 _TEMPE BIT 0xe8
0000 307 _ADGN0 BIT 0xe9
0000 308 _ADGN1 BIT 0xea
0000 309 _ADWINT BIT 0xeb
0000 310 _ADBUSY BIT 0xec
0000 311 _ADINT BIT 0xed
0000 312 _IPOEN BIT 0xee
0000 313 _ADEN BIT 0xef
0000 314 _B_0 BIT 0xf0
0000 315 _B_1 BIT 0xf1
0000 316 _B_2 BIT 0xf2
0000 317 _B_3 BIT 0xf3
0000 318 _B_4 BIT 0xf4
0000 319 _B_5 BIT 0xf5
0000 320 _B_6 BIT 0xf6
0000 321 _B_7 BIT 0xf7
0000 322 _C0FIF BIT 0xe8
0000 323 _C0RIF BIT 0xe9
0000 324 _C1FIF BIT 0xea
0000 325 _C1RIF BIT 0xeb
0000 326 _C2FIF BIT 0xec
0000 327 _C2RIF BIT 0xed
0000 328 _C3FIF BIT 0xee
0000 329 _C3RIF BIT 0xef
0000 330 _D1SRC0 BIT 0x88
0000 331 _D1SRC1 BIT 0x89
0000 332 _D1AMEN BIT 0x8a
0000 333 _D01REFSL BIT 0x8b
0000 334 _D3SRC0 BIT 0x8c
0000 335 _D3SRC1 BIT 0x8d
0000 336 _D3AMEN BIT 0x8e
0000 337 _D23REFSL BIT 0x8f
0000 338 _D0UDIS BIT 0x98
0000 339 _D1UDIS BIT 0x99
0000 340 _D2UDIS BIT 0x9a
0000 341 _D3UDIS BIT 0x9b
0000 342 _EX0 BIT 0xa8
0000 343 _ET0 BIT 0xa9
0000 344 _EX1 BIT 0xaa
0000 345 _ET1 BIT 0xab
0000 346 _ES0 BIT 0xac
0000 347 _ET2 BIT 0xad
0000 348 _ESPI0 BIT 0xae
0000 349 _EA BIT 0xaf
0000 350 _PX0 BIT 0xb8
0000 351 _PT0 BIT 0xb9
0000 352 _PX1 BIT 0xba
0000 353 _PT1 BIT 0xbb
0000 354 _PS0 BIT 0xbc
0000 355 _PT2 BIT 0xbd
0000 356 _PSPI0 BIT 0xbe
0000 357 _P0_0 BIT 0x80
0000 358 _P0_1 BIT 0x81
0000 359 _P0_2 BIT 0x82
0000 360 _P0_3 BIT 0x83
0000 361 _P0_4 BIT 0x84
0000 362 _P0_5 BIT 0x85
0000 363 _P0_6 BIT 0x86
0000 364 _P0_7 BIT 0x87
0000 365 _P1_0 BIT 0x90
0000 366 _P1_1 BIT 0x91
0000 367 _P1_2 BIT 0x92
0000 368 _P1_3 BIT 0x93
0000 369 _P1_4 BIT 0x94
0000 370 _P1_5 BIT 0x95
0000 371 _P1_6 BIT 0x96
0000 372 _P1_7 BIT 0x97
0000 373 _P2_0 BIT 0xa0
0000 374 _P2_1 BIT 0xa1
0000 375 _P2_2 BIT 0xa2
0000 376 _P2_3 BIT 0xa3
0000 377 _P2_4 BIT 0xa4
0000 378 _P2_5 BIT 0xa5
0000 379 _P2_6 BIT 0xa6
0000 380 _P3_0 BIT 0xb0
0000 381 _P3_1 BIT 0xb1
0000 382 _P3_2 BIT 0xb2
0000 383 _P3_3 BIT 0xb3
0000 384 _P3_4 BIT 0xb4
0000 385 _P3_7 BIT 0xb7
0000 386 _CCF0 BIT 0xd8
0000 387 _CCF1 BIT 0xd9
0000 388 _CCF2 BIT 0xda
0000 389 _CCF3 BIT 0xdb
0000 390 _CCF4 BIT 0xdc
0000 391 _CCF5 BIT 0xdd
0000 392 _CR BIT 0xde
0000 393 _CF BIT 0xdf
0000 394 _PARITY BIT 0xd0
0000 395 _F1 BIT 0xd1
0000 396 _OV BIT 0xd2
0000 397 _RS0 BIT 0xd3
0000 398 _RS1 BIT 0xd4
0000 399 _F0 BIT 0xd5
0000 400 _AC BIT 0xd6
0000 401 _CY BIT 0xd7
0000 402 _RI BIT 0x98
0000 403 _TI BIT 0x99
0000 404 _RB8 BIT 0x9a
0000 405 _TB8 BIT 0x9b
0000 406 _REN BIT 0x9c
0000 407 _CE BIT 0x9d
0000 408 _SMODE BIT 0x9e
0000 409 _RI1 BIT 0xc8
0000 410 _TI1 BIT 0xc9
0000 411 _RBX1 BIT 0xca
0000 412 _TBX1 BIT 0xcb
0000 413 _REN1 BIT 0xcc
0000 414 _PERR1 BIT 0xcd
0000 415 _OVR1 BIT 0xce
0000 416 _SI BIT 0xc0
0000 417 _ACK BIT 0xc1
0000 418 _ARBLOST BIT 0xc2
0000 419 _ACKRQ BIT 0xc3
0000 420 _STO BIT 0xc4
0000 421 _STA BIT 0xc5
0000 422 _TXMODE BIT 0xc6
0000 423 _MASTER BIT 0xc7
0000 424 _SPIEN BIT 0xf8
0000 425 _TXNF BIT 0xf9
0000 426 _NSSMD0 BIT 0xfa
0000 427 _NSSMD1 BIT 0xfb
0000 428 _RXOVRN BIT 0xfc
0000 429 _MODF BIT 0xfd
0000 430 _WCOL BIT 0xfe
0000 431 _SPIF BIT 0xff
0000 432 _IT0 BIT 0x88
0000 433 _IE0 BIT 0x89
0000 434 _IT1 BIT 0x8a
0000 435 _IE1 BIT 0x8b
0000 436 _TR0 BIT 0x8c
0000 437 _TF0 BIT 0x8d
0000 438 _TR1 BIT 0x8e
0000 439 _TF1 BIT 0x8f
0000 440 _T2XCLK0 BIT 0xc8
0000 441 _T2XCLK1 BIT 0xc9
0000 442 _TR2 BIT 0xca
0000 443 _T2SPLIT BIT 0xcb
0000 444 _TF2CEN BIT 0xcc
0000 445 _TF2LEN BIT 0xcd
0000 446 _TF2L BIT 0xce
0000 447 _TF2H BIT 0xcf
0000 448 _T4XCLK0 BIT 0x98
0000 449 _T4XCLK1 BIT 0x99
0000 450 _TR4 BIT 0x9a
0000 451 _T4SPLIT BIT 0x9b
0000 452 _TF4CEN BIT 0x9c
0000 453 _TF4LEN BIT 0x9d
0000 454 _TF4L BIT 0x9e
0000 455 _TF4H BIT 0x9f
0000 456 _T5XCLK0 BIT 0xc0
0000 457 _T5XCLK1 BIT 0xc1
0000 458 _TR5 BIT 0xc2
0000 459 _T5SPLIT BIT 0xc3
0000 460 _TF5CEN BIT 0xc4
0000 461 _TF5LEN BIT 0xc5
0000 462 _TF5L BIT 0xc6
0000 463 _TF5H BIT 0xc7
0000 464 _RIE BIT 0xd8
0000 465 _RXTO0 BIT 0xd9
0000 466 _RXTO1 BIT 0xda
0000 467 _RFRQ BIT 0xdb
0000 468 _TIE BIT 0xdc
0000 469 _TXHOLD BIT 0xdd
0000 470 _TXNF1 BIT 0xde
0000 471 _TFRQ BIT 0xdf
0000 472 ;--------------------------------------------------------
0000 473 ; overlayable register banks
0000 474 ;--------------------------------------------------------
0000 475 rbank0 segment data overlay
0000 476 ;--------------------------------------------------------
0000 477 ; internal ram data
0000 478 ;--------------------------------------------------------
0000 479 rseg R_DSEG
0000 480 _overflow_count:
0000 481 ds 1
0001 482 ;--------------------------------------------------------
0001 483 ; overlayable items in internal ram
0001 484 ;--------------------------------------------------------
0000 485 rseg R_OSEG
0000 486 ;--------------------------------------------------------
0000 487 ; indirectly addressable internal ram data
0000 488 ;--------------------------------------------------------
0000 489 rseg R_ISEG
0000 490 ;--------------------------------------------------------
0000 491 ; absolute internal ram data
0000 492 ;--------------------------------------------------------
0000 493 DSEG
0000 494 ;--------------------------------------------------------
0000 495 ; bit data
0000 496 ;--------------------------------------------------------
0000 497 rseg R_BSEG
0000 498 ;--------------------------------------------------------
0000 499 ; paged external ram data
0000 500 ;--------------------------------------------------------
0000 501 rseg R_PSEG
0000 502 ;--------------------------------------------------------
0000 503 ; external ram data
0000 504 ;--------------------------------------------------------
0000 505 rseg R_XSEG
0000 506 ;--------------------------------------------------------
0000 507 ; absolute external ram data
0000 508 ;--------------------------------------------------------
0000 509 XSEG
0000 510 ;--------------------------------------------------------
0000 511 ; external initialized ram data
0000 512 ;--------------------------------------------------------
0000 513 rseg R_IXSEG
0000 514 rseg R_HOME
0000 515 rseg R_GSINIT
0000 516 rseg R_CSEG
0000 517 ;--------------------------------------------------------
0000 518 ; Reset entry point and interrupt vectors
0000 519 ;--------------------------------------------------------
0000 520 CSEG at 0x0000
0000 020100 521 ljmp _crt0
0003 522 ;--------------------------------------------------------
0003 523 ; global & static initialisations
0003 524 ;--------------------------------------------------------
0000 525 rseg R_HOME
0000 526 rseg R_GSINIT
0000 527 rseg R_GSINIT
0000 528 ;--------------------------------------------------------
0000 529 ; data variables initialization
0000 530 ;--------------------------------------------------------
0000 531 rseg R_DINIT
0000 532 ; The linker places a 'ret' at the end of segment R_DINIT.
0000 533 ;--------------------------------------------------------
0000 534 ; code
0000 535 ;--------------------------------------------------------
0000 536 rseg R_CSEG
0000 537 ;------------------------------------------------------------
0000 538 ;Allocation info for local variables in function '_c51_external_startup'
0000 539 ;------------------------------------------------------------
0000 540 ;------------------------------------------------------------
0000 541 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:16: char _c51_external_startup (void)
0000 542 ; -----------------------------------------
0000 543 ; function _c51_external_startup
0000 544 ; -----------------------------------------
0000 545 __c51_external_startup:
0000 546 using 0
0000 547 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:19: SFRPAGE = 0x00;
0000 75A700 548 mov _SFRPAGE,#0x00
0003 549 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:20: WDTCN = 0xDE; //First key
0003 7597DE 550 mov _WDTCN,#0xDE
0006 551 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:21: WDTCN = 0xAD; //Second key
0006 7597AD 552 mov _WDTCN,#0xAD
0009 553 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:23: VDM0CN |= 0x80;
0009 43FF80 554 orl _VDM0CN,#0x80
000C 555 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:24: RSTSRC = 0x02;
000C 75EF02 556 mov _RSTSRC,#0x02
000F 557 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:31: SFRPAGE = 0x10;
000F 75A710 558 mov _SFRPAGE,#0x10
0012 559 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:32: PFE0CN = 0x20; // SYSCLK < 75 MHz.
0012 75C120 560 mov _PFE0CN,#0x20
0015 561 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:33: SFRPAGE = 0x00;
0015 75A700 562 mov _SFRPAGE,#0x00
0018 563 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:54: CLKSEL = 0x00;
0018 75A900 564 mov _CLKSEL,#0x00
001B 565 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:55: CLKSEL = 0x00;
001B 75A900 566 mov _CLKSEL,#0x00
001E 567 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:56: while ((CLKSEL & 0x80) == 0);
001E 568 L002001?:
001E E5A9 569 mov a,_CLKSEL
0020 30E708 570 jnb acc.7,L002001?
0023 571 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:57: CLKSEL = 0x03;
0023 75A903 572 mov _CLKSEL,#0x03
0026 573 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:58: CLKSEL = 0x03;
0026 75A903 574 mov _CLKSEL,#0x03
0029 575 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:59: while ((CLKSEL & 0x80) == 0);
0029 576 L002004?:
0029 E5A9 577 mov a,_CLKSEL
002B 30E788 578 jnb acc.7,L002004?
002E 579 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:64: P0MDOUT |= 0x10; // Enable UART0 TX as push-pull output
002E 43A410 580 orl _P0MDOUT,#0x10
0031 581 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:65: XBR0 = 0x01; // Enable UART0 on P0.4(TX) and P0.5(RX)
0031 75E101 582 mov _XBR0,#0x01
0034 583 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:66: XBR1 = 0X10; // Enable T0 on P0.0
0034 75E210 584 mov _XBR1,#0x10
0037 585 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:67: XBR2 = 0x40; // Enable crossbar and weak pull-ups
0037 75E340 586 mov _XBR2,#0x40
003A 587 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:73: SCON0 = 0x10;
003A 759810 588 mov _SCON0,#0x10
003D 589 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:74: CKCON0 |= 0b_0000_0000 ; // Timer 1 uses the system clock divided by 12.
003D 858E8E 590 mov _CKCON0,_CKCON0
0040 591 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:75: TH1 = 0x100-((SYSCLK/BAUDRATE)/(2L*12L));
0040 758DE6 592 mov _TH1,#0xE6
0043 593 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:76: TL1 = TH1; // Init Timer1
0043 858D8B 594 mov _TL1,_TH1
0046 595 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:77: TMOD &= ~0xf0; // TMOD: timer 1 in 8-bit auto-reload
0046 53890F 596 anl _TMOD,#0x0F
0049 597 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:78: TMOD |= 0x20;
0049 438920 598 orl _TMOD,#0x20
004C 599 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:79: TR1 = 1; // START Timer1
004C D28E 600 setb _TR1
004E 601 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:80: TI = 1; // Indicate TX0 ready
004E D299 602 setb _TI
0050 603 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:82: return 0;
0050 758200 604 mov dpl,#0x00
0053 22 605 ret
0054 606 ;------------------------------------------------------------
0054 607 ;Allocation info for local variables in function 'Timer3us'
0054 608 ;------------------------------------------------------------
0054 609 ;us Allocated to registers r2
0054 610 ;i Allocated to registers r3
0054 611 ;------------------------------------------------------------
0054 612 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:86: void Timer3us(unsigned char us)
0054 613 ; -----------------------------------------
0054 614 ; function Timer3us
0054 615 ; -----------------------------------------
0054 616 _Timer3us:
0054 AA82 617 mov r2,dpl
0056 618 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:91: CKCON0|=0b_0100_0000;
0056 438E40 619 orl _CKCON0,#0x40
0059 620 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:93: TMR3RL = (-(SYSCLK)/1000000L); // Set Timer3 to overflow in 1us.
0059 7592B8 621 mov _TMR3RL,#0xB8
005C 7593FF 622 mov (_TMR3RL >> 8),#0xFF
005F 623 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:94: TMR3 = TMR3RL; // Initialize Timer3 for first overflow
005F 859294 624 mov _TMR3,_TMR3RL
0062 859395 625 mov (_TMR3 >> 8),(_TMR3RL >> 8)
0065 626 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:96: TMR3CN0 = 0x04; // Sart Timer3 and clear overflow flag
0065 759104 627 mov _TMR3CN0,#0x04
0068 628 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:97: for (i = 0; i < us; i++) // Count <us> overflows
0068 7B00 629 mov r3,#0x00
006A 630 L003006?:
006A C3 631 clr c
006B EB 632 mov a,r3
006C 9A 633 subb a,r2
006D 5001 634 jnc L003009?
006F 635 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:99: while (!(TMR3CN0 & 0x80)); // Wait for overflow
006F 636 L003001?:
006F E591 637 mov a,_TMR3CN0
0071 30E788 638 jnb acc.7,L003001?
0074 639 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:100: TMR3CN0 &= ~(0x80); // Clear overflow indicator
0074 53917F 640 anl _TMR3CN0,#0x7F
0077 641 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:101: if (TF0)
0077 642 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:103: TF0=0;
0077 108DC8 643 jbc _TF0,L003019?
007A 8001 644 sjmp L003008?
007C 645 L003019?:
007C 646 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:104: overflow_count++;
007C 0590 647 inc _overflow_count
007E 648 L003008?:
007E 649 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:97: for (i = 0; i < us; i++) // Count <us> overflows
007E 0B 650 inc r3
007F 8001 651 sjmp L003006?
0081 652 L003009?:
0081 653 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:107: TMR3CN0 = 0 ; // Stop Timer3 and clear overflow flag
0081 759100 654 mov _TMR3CN0,#0x00
0084 22 655 ret
0085 656 ;------------------------------------------------------------
0085 657 ;Allocation info for local variables in function 'waitms'
0085 658 ;------------------------------------------------------------
0085 659 ;ms Allocated to registers r2 r3
0085 660 ;j Allocated to registers r2 r3
0085 661 ;------------------------------------------------------------
0085 662 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:110: void waitms (unsigned int ms)
0085 663 ; -----------------------------------------
0085 664 ; function waitms
0085 665 ; -----------------------------------------
0085 666 _waitms:
0085 AA82 667 mov r2,dpl
0087 AB83 668 mov r3,dph
0089 669 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:113: for(j=ms; j!=0; j--)
0089 670 L004001?:
0089 BA00C8 671 cjne r2,#0x00,L004010?
008C BB00C8 672 cjne r3,#0x00,L004010?
008F 22 673 ret
0090 674 L004010?:
0090 675 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:115: Timer3us(249);
0090 7582F9 676 mov dpl,#0xF9
0093 C002 677 push ar2
0095 C003 678 push ar3
0097 120100 679 lcall _Timer3us
009A 680 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:116: Timer3us(249);
009A 7582F9 681 mov dpl,#0xF9
009D 120100 682 lcall _Timer3us
00A0 683 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:117: Timer3us(249);
00A0 7582F9 684 mov dpl,#0xF9
00A3 120100 685 lcall _Timer3us
00A6 686 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:118: Timer3us(250);
00A6 7582FA 687 mov dpl,#0xFA
00A9 120100 688 lcall _Timer3us
00AC D003 689 pop ar3
00AE D002 690 pop ar2
00B0 691 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:113: for(j=ms; j!=0; j--)
00B0 1A 692 dec r2
00B1 BAFF08 693 cjne r2,#0xff,L004011?
00B4 1B 694 dec r3
00B5 695 L004011?:
00B5 8001 696 sjmp L004001?
00B7 697 ;------------------------------------------------------------
00B7 698 ;Allocation info for local variables in function 'TIMER0_Init'
00B7 699 ;------------------------------------------------------------
00B7 700 ;------------------------------------------------------------
00B7 701 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:122: void TIMER0_Init(void)
00B7 702 ; -----------------------------------------
00B7 703 ; function TIMER0_Init
00B7 704 ; -----------------------------------------
00B7 705 _TIMER0_Init:
00B7 706 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:124: TMOD&=0b_1111_0000; // Set the bits of Timer/Counter 0 to zero
00B7 5389F0 707 anl _TMOD,#0xF0
00BA 708 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:125: TMOD|=0b_0000_0101; // Timer/Counter 0 used as a 16-bit counter
00BA 438905 709 orl _TMOD,#0x05
00BD 710 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:126: TR0=0; // Stop Timer/Counter 0
00BD C28C 711 clr _TR0
00BF 22 712 ret
00C0 713 ;------------------------------------------------------------
00C0 714 ;Allocation info for local variables in function 'main'
00C0 715 ;------------------------------------------------------------
00C0 716 ;F Allocated to registers r2 r3 r4 r5
00C0 717 ;------------------------------------------------------------
00C0 718 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:129: void main (void)
00C0 719 ; -----------------------------------------
00C0 720 ; function main
00C0 721 ; -----------------------------------------
00C0 722 _main:
00C0 723 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:133: TIMER0_Init();
00C0 120100 724 lcall _TIMER0_Init
00C3 725 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:135: waitms(500); // Give PuTTY a chance to start.
00C3 9001F4 726 mov dptr,#0x01F4
00C6 120100 727 lcall _waitms
00C9 728 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:136: printf("\x1b[2J"); // Clear screen using ANSI escape sequence.
00C9 7448 729 mov a,#__str_0
00CB C0E0 730 push acc
00CD 74B5 731 mov a,#(__str_0 >> 8)
00CF C0E0 732 push acc
00D1 7480 733 mov a,#0x80
00D3 C0E0 734 push acc
00D5 120100 735 lcall _printf
00D8 1581 736 dec sp
00DA 1581 737 dec sp
00DC 1581 738 dec sp
00DE 739 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:141: __FILE__, __DATE__, __TIME__);
00DE 740 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:140: "Compiled: %s, %s\n\n",
00DE 7408 741 mov a,#__str_4
00E0 C0E0 742 push acc
00E2 74B6 743 mov a,#(__str_4 >> 8)
00E4 C0E0 744 push acc
00E6 7480 745 mov a,#0x80
00E8 C0E0 746 push acc
00EA 7448 747 mov a,#__str_3
00EC C0E0 748 push acc
00EE 74B6 749 mov a,#(__str_3 >> 8)
00F0 C0E0 750 push acc
00F2 7480 751 mov a,#0x80
00F4 C0E0 752 push acc
00F6 7488 753 mov a,#__str_2
00F8 C0E0 754 push acc
00FA 74B6 755 mov a,#(__str_2 >> 8)
00FC C0E0 756 push acc
00FE 7480 757 mov a,#0x80
0100 C0E0 758 push acc
0102 74C8 759 mov a,#__str_1
0104 C0E0 760 push acc
0106 74B6 761 mov a,#(__str_1 >> 8)
0108 C0E0 762 push acc
010A 7480 763 mov a,#0x80
010C C0E0 764 push acc
010E 120100 765 lcall _printf
0111 E581 766 mov a,sp
0113 24F4 767 add a,#0xf4
0115 F581 768 mov sp,a
0117 769 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:143: while(1)
0117 770 L006002?:
0117 771 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:145: TL0=0;
0117 758A00 772 mov _TL0,#0x00
011A 773 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:146: TH0=0;
011A 758C00 774 mov _TH0,#0x00
011D 775 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:147: overflow_count=0;
011D 759000 776 mov _overflow_count,#0x00
0120 777 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:148: TF0=0;
0120 C28D 778 clr _TF0
0122 779 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:149: TR0=1; // Start Timer/Counter 0
0122 D28C 780 setb _TR0
0124 781 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:150: waitms(1000);
0124 9003E8 782 mov dptr,#0x03E8
0127 120100 783 lcall _waitms
012A 784 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:151: TR0=0; // Stop Timer/Counter 0
012A C28C 785 clr _TR0
012C 786 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:152: F=overflow_count*0x10000L+TH0*0x100L+TL0;
012C AA90 787 mov r2,_overflow_count
012E 7B00 788 mov r3,#0x00
0130 8B05 789 mov ar5,r3
0132 8A04 790 mov ar4,r2
0134 7B00 791 mov r3,#0x00
0136 7A00 792 mov r2,#0x00
0138 AE8C 793 mov r6,_TH0
013A 7F00 794 mov r7,#0x00
013C 7800 795 mov r0,#0x00
013E 8801 796 mov ar1,r0
0140 8F00 797 mov ar0,r7
0142 8E07 798 mov ar7,r6
0144 7E00 799 mov r6,#0x00
0146 EE 800 mov a,r6
0147 2A 801 add a,r2
0148 FA 802 mov r2,a
0149 EF 803 mov a,r7
014A 3B 804 addc a,r3
014B FB 805 mov r3,a
014C E8 806 mov a,r0
014D 3C 807 addc a,r4
014E FC 808 mov r4,a
014F E9 809 mov a,r1
0150 3D 810 addc a,r5
0151 FD 811 mov r5,a
0152 AE8A 812 mov r6,_TL0
0154 E4 813 clr a
0155 FF 814 mov r7,a
0156 33 815 rlc a
0157 95E0 816 subb a,acc
0159 F8 817 mov r0,a
015A F9 818 mov r1,a
015B EE 819 mov a,r6
015C 2A 820 add a,r2
015D FA 821 mov r2,a
015E EF 822 mov a,r7
015F 3B 823 addc a,r3
0160 FB 824 mov r3,a
0161 E8 825 mov a,r0
0162 3C 826 addc a,r4
0163 FC 827 mov r4,a
0164 E9 828 mov a,r1
0165 3D 829 addc a,r5
0166 FD 830 mov r5,a
0167 831 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:154: printf("\rf=%luHz", F);
0167 C002 832 push ar2
0169 C003 833 push ar3
016B C004 834 push ar4
016D C005 835 push ar5
016F 7448 836 mov a,#__str_5
0171 C0E0 837 push acc
0173 74B7 838 mov a,#(__str_5 >> 8)
0175 C0E0 839 push acc
0177 7480 840 mov a,#0x80
0179 C0E0 841 push acc
017B 120100 842 lcall _printf
017E E581 843 mov a,sp
0180 24F9 844 add a,#0xf9
0182 F581 845 mov sp,a
0184 846 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\frequency.c:155: printf("\x1b[0K"); // ANSI: Clear from cursor to end of line.
0184 7488 847 mov a,#__str_6
0186 C0E0 848 push acc
0188 74B7 849 mov a,#(__str_6 >> 8)
018A C0E0 850 push acc
018C 7480 851 mov a,#0x80
018E C0E0 852 push acc
0190 120100 853 lcall _printf
0193 1581 854 dec sp
0195 1581 855 dec sp
0197 1581 856 dec sp
0199 020100 857 ljmp L006002?
019C 858 rseg R_CSEG
019C 859
0000 860 rseg R_XINIT
0000 861
0000 862 rseg R_CONST
0000 863 __str_0:
0000 1B 864 db 0x1B
0001 5B324A 865 db '[2J'
0004 00 866 db 0x00
0005 867 __str_1:
0005 45464D38 868 db 'EFM8 Frequency measurement using Timer/Counter 0.'
20467265
7175656E
6379206D
65617375
72656D65
6E742075
73696E67
2054696D
65722F43
6F756E74
65722030
2E
0036 0A 869 db 0x0A
0037 46696C65 870 db 'File: %s'
3A202573
003F 0A 871 db 0x0A
0040 43 872 db 'C'
0041 6F6D7069 873 db 'ompiled: %s, %s'
6C65643A
2025732C
202573
0050 0A 874 db 0x0A
0051 0A 875 db 0x0A
0052 00 876 db 0x00
0053 877 __str_2:
0053 433A 878 db 'C:'
0055 5C 879 db 0x5C
0056 55736572 880 db 'Users'
73
005B 5C 881 db 0x5C
005C 63617273 882 db 'carso'
6F
0061 5C 883 db 0x5C
0062 446F6375 884 db 'Documents'
6D656E74
73
006B 5C 885 db 0x5C
006C 312E2053 886 db '1. School'
63686F6F
6C
0075 5C 887 db 0x5C
0076 302E2053 888 db '0. Spring 2018'
7072696E
67203230
3138
0084 5C 889 db 0x5C
0085 456C6563 890 db 'Elec 292'
20323932
008D 5C 891 db 0x5C
008E 6C 892 db 'l'
008F 616234 893 db 'ab4'
0092 5C 894 db 0x5C
0093 66726571 895 db 'frequency.c'
75656E63
792E63
009E 00 896 db 0x00
009F 897 __str_3:
009F 46656220 898 db 'Feb 28 2018'
32382032
303138
00AA 00 899 db 0x00
00AB 900 __str_4:
00AB 31323A32 901 db '12:28:23'
383A3233
00B3 00 902 db 0x00
00B4 903 __str_5:
00B4 0D 904 db 0x0D
00B5 663D256C 905 db 'f=%luHz'
75487A
00BC 00 906 db 0x00
00BD 907 __str_6:
00BD 1B 908 db 0x1B
00BE 5B304B 909 db '[0K'
00C1 00 910 db 0x00
00C2 911
0003 912 CSEG
0003 913
0003 914 end