forked from antonpasm/Stm8Ida
-
Notifications
You must be signed in to change notification settings - Fork 2
/
st8.cfg
2167 lines (1973 loc) · 95.3 KB
/
st8.cfg
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
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; The format of the input file:
; each device definition begins with a line like this:
;
; .devicename
;
; after it go the port definitions in this format:
;
; portname address
;
; the bit definitions (optional) are represented like this:
;
; portname.bitname bitnumber
;
; lines beginning with a space are ignored.
; comment lines should be started with ';' character.
;
; the default device is specified at the start of the file
;
; .default device_name
;
; all lines non conforming to the format are passed to the callback function
;
; ST7 FAMILY SPECIFIC LINES
;------------------------
;
; the processor definition may include the memory configuration.
; the line format is:
; area CLASS AREA-NAME START:END
;
; where CLASS is anything, but please use one of CODE, DATA, BSS
; START and END are addresses, the end address is not included
; Interrupt vectors are declared in the following way:
; entry NAME ADDRESS COMMENT
.default
.STM8S103F3
; MEMORY MAP
area DATA RAM 0x000000:0x000400
area DATA EEPROM 0x004000:0x004280
area DATA OPTION_BYTES 0x004800:0x00480B
area DATA UNIQUE_ID 0x004865:0x004871
area DATA HW_REGS 0x005000:0x005800
area DATA C_S_D_I_REGS 0x007F00:0x008000
area CODE INT_VECTS 0x008000:0x008080
area CODE CODE1 0x008080:0x00A000
; Interrupt and reset vector assignments
entry RESET 0x8000 Reset
entry TRAP 0x8004 TRAP (software) Interrupt Vector
entry TLI 0x8008 External Top Level Interrupt
entry AWU 0x800C AWU
entry CLK_CONTR 0x8010 Clock controller
entry EXTI0 0x8014 Port A external interrupt
entry EXTI1 0x8018 Port B external interrupt
entry EXTI2 0x801C Port C external interrupt
entry EXTI3 0x8020 Port D external interrupt
entry EXTI4 0x8024 Port E external interrupt
entry Reserved8028 0x8028
entry Reserved802C 0x802C
entry SPI 0x8030 SPI End of transfer
entry TIM1 0x8034 Update/overflow/trigger/break
entry TIM1_C 0x8038 Capture/Compare
entry TIM2 0x803C Update/overflow
entry TIM2_C 0x8040 Capture/Compare
entry Reserved8044 0x8044
entry Reserved8048 0x8048
entry USART_Tx 0x804C Tx Complete
entry USART_Rx 0x8050 Receive data full reg
entry I2C 0x8054 I2C Interrupt
entry Reserved8058 0x8058
entry Reserved805C 0x805C
entry ADC1 0x8060 ADC End of conversion
entry TIM4 0x8064 Update/overflow
entry EEPROM 0x8068 End of programming/write in not allowed area
; INPUT/OUTPUT PORTS
;/* Port A */
;/*****************************************************************/
PA_ODR 0x5000 Port A data output latch register
PA_IDR 0x5001 Port A input pin value register
PA_DDR 0x5002 Port A data direction register
PA_CR1 0x5003 Port A control register 1
PA_CR2 0x5004 Port A control register 2
;/* Port B */
;/*****************************************************************/
PB_ODR 0x5005 Port B data output latch register
PB_IDR 0x5006 Port B input pin value register
PB_DDR 0x5007 Port B data direction register
PB_CR1 0x5008 Port B control register 1
PB_CR2 0x5009 Port B control register 2
;/* Port C */
;/*****************************************************************/
PC_ODR 0x500a Port C data output latch register
PC_IDR 0x500b Port C input pin value register
PC_DDR 0x500c Port C data direction register
PC_CR1 0x500d Port C control register 1
PC_CR2 0x500e Port C control register 2
;/* Port D */
;/*****************************************************************/
PD_ODR 0x500f Port D data output latch register
PD_IDR 0x5010 Port D input pin value register
PD_DDR 0x5011 Port D data direction register
PD_CR1 0x5012 Port D control register 1
PD_CR2 0x5013 Port D control register 2
;/* Port E */
;/*****************************************************************/
PE_ODR 0x5014 Port E data output latch register
PE_IDR 0x5015 Port E input pin value register
PE_DDR 0x5016 Port E data direction register
PE_CR1 0x5017 Port E control register 1
PE_CR2 0x5018 Port E control register 2
;/* Port F */
;/*****************************************************************/
PF_ODR 0x5019 Port F data output latch register
PF_IDR 0x501a Port F input pin value register
PF_DDR 0x501b Port F data direction register
PF_CR1 0x501c Port F control register 1
PF_CR2 0x501d Port F control register 2
;/* Flash */
;/*****************************************************************/
FLASH_CR1 0x505A Flash control register 1
FLASH_CR2 0x505B Flash control register 2
FLASH_NCR2 0x505C Flash complementary control register 2
FLASH_FPR 0x505D Flash protection register
FLASH_NFPR 0x505E Flash complementary protection register
FLASH_IAPSR 0x505F Flash in-application programming status register
FLASH_PUKR 0x5062 Flash Program memory unprotection register
FLASH_DUKR 0x5064 Data EEPROM unprotection register
;/* External Interrupt Control Register (ITC) */
;/*****************************************************************/
EXTI_CR1 0x50A0 External interrupt control register 1
EXTI_CR2 0x50A1 External interrupt control register 2
;/* Reset (RST) */
;/*****************************************************************/
RST_SR 0x50B3 Reset status register
;/* Clock Control (CLK) */
;/*****************************************************************/
CLK_ICKR 0x50C0 Internal clock control register
CLK_ECKR 0x50C1 External clock control register
CLK_CMSR 0x50C3 Clock master status register
CLK_SWR 0x50C4 Clock master switch register
CLK_SWCR 0x50C5 Clock switch control register
CLK_CKDIVR 0x50C6 Clock divider register
CLK_PCKENR1 0x50C7 Peripheral clock gating register 1
CLK_CSSR 0x50C8 Clock security system register
CLK_CCOR 0x50C9 Configurable clock control register
CLK_PCKENR2 0x50CA Peripheral clock gating register 2
CLK_HSITRIMR 0x50CC HSI clock calibration trimming register
CLK_SWIMCCR 0x50CD SWIM clock control register
;/* Window Watchdog (WWDG) */
;/*****************************************************************/
WWDG_CR 0x50D1 WWDG Control Register
WWDG_WR 0x50D2 WWDR Window Register
;/* Independent Watchdog (IWDG) */
;/*****************************************************************/
IWDG_KR 0x50E0 IWDG Key Register
IWDG_PR 0x50E1 IWDG Prescaler Register
IWDG_RLR 0x50E2 IWDG Reload Register
;/* AWU */
;/*****************************************************************/
AWU_CSR1 0x50F0 AWU control/status register 1
AWU_APR 0x50F1 AWU asynchronous prescaler buffer register
AWU_TBR 0x50F2 AWU timebase selection register
;/* Beeper (BEEP) */
;/*****************************************************************/
BEEP_CSR 0x50F3 BEEP Control/Status Register
;/* Serial Peripheral Interface (SPI) */
;/*****************************************************************/
SPI_CR1 0x5200 SPI Control Register 1
SPI_CR2 0x5201 SPI Control Register 2
SPI_ICR 0x5202 SPI Interrupt Control Register
SPI_SR 0x5203 SPI Status Register
SPI_DR 0x5204 SPI Data Register
SPI_CRCPR 0x5205 SPI CRC Polynomial Register
SPI_RXCRCR 0x5206 SPI Rx CRC Register
SPI_TXCRCR 0x5207 SPI Tx CRC Register
;/* I2C Bus Interface (I2C) */
;/*****************************************************************/
I2C_CR1 0x5210 I2C control register 1
I2C_CR2 0x5211 I2C control register 2
I2C_FREQR 0x5212 I2C frequency register
I2C_OARL 0x5213 I2C Own address register low
I2C_OARH 0x5214 I2C Own address register high
I2C_DR 0x5216 I2C data register
I2C_SR1 0x5217 I2C status register 1
I2C_SR2 0x5218 I2C status register 2
I2C_SR3 0x5219 I2C status register 3
I2C_ITR 0x521A I2C interrupt control register
I2C_CCRL 0x521B I2C Clock control register low
I2C_CCRH 0x521C I2C Clock control register high
I2C_TRISER 0x521D I2C TRISE register
I2C_PECR 0x521E I2C packet error checking register
;/* Universal synch/asynch receiver transmitter 1 (USART) */
;/*****************************************************************/
UART1_SR 0x5230 USART Status Register
UART1_DR 0x5231 USART Data Register
UART1_BRR1 0x5232 USART Baud Rate Register 1
UART1_BRR2 0x5233 USART Baud Rate Register 2
UART1_CR1 0x5234 USART Control Register 1
UART1_CR2 0x5235 USART Control Register 2
UART1_CR3 0x5236 USART Control Register 3
UART1_CR4 0x5237 USART Control Register 4
UART1_CR5 0x5238 USART Control Register 5
UART1_GTR 0x5239 USART Guard time Register
UART1_PSCR 0x523A USART Prescaler Register
;/* 16-Bit Timer 1 (TIM1) */
;/*****************************************************************/
TIM1_CR1 0x5250 TIM1 Control register 1
TIM1_CR2 0x5251 TIM1 Control register 2
TIM1_SMCR 0x5252 TIM1 Slave Mode Control register
TIM1_ETR 0x5253 TIM1 external trigger register
TIM1_IER 0x5254 TIM1 Interrupt enable register
TIM1_SR1 0x5255 TIM1 Status register 1
TIM1_SR2 0x5256 TIM1 Status register 2
TIM1_EGR 0x5257 TIM1 Event Generation register
TIM1_CCMR1 0x5258 TIM1 Capture/Compare mode register 1
TIM1_CCMR2 0x5259 TIM1 Capture/Compare mode register 2
TIM1_CCMR3 0x525A TIM1 Capture/Compare mode register 3
TIM1_CCMR4 0x525B TIM1 Capture/Compare mode register 4
TIM1_CCER1 0x525C TIM1 Capture/Compare enable register 1
TIM1_CCER2 0x525D TIM1 Capture/Compare enable register 2
TIM1_CNTRH 0x525E TIM1 Counter High
TIM1_CNTRL 0x525F TIM1 Counter Low
TIM1_PSCRH 0x5260 TIM1 Prescaler Register High
TIM1_PSCRL 0x5261 TIM1 Prescaler Register Low
TIM1_ARRH 0x5262 TIM1 Auto-Reload Register High
TIM1_ARRL 0x5263 TIM1 Auto-Reload Register Low
TIM1_RCR 0x5264 TIM1 Repetition counter register
TIM1_CCR1H 0x5265 TIM1 Capture/Compare Register 1 High
TIM1_CCR1L 0x5266 TIM1 Capture/Compare Register 1 Low
TIM1_CCR2H 0x5267 TIM1 Capture/Compare Register 2 High
TIM1_CCR2L 0x5268 TIM1 Capture/Compare Register 2 Low
TIM1_CCR3H 0x5269 TIM1 Capture/Compare Register 3 High
TIM1_CCR3L 0x526A TIM1 Capture/Compare Register 3 Low
TIM1_CCR4H 0x526B TIM1 Capture/Compare Register 4 High
TIM1_CCR4L 0x526C TIM1 Capture/Compare Register 4 Low
TIM1_BKR 0x526D TIM1 Break register
TIM1_DTR 0x526E TIM1 Dead-time register
TIM1_OISR 0x526F TIM1 Output idle state register
;/* 16-Bit Timer 2 (TIM2) */
;/*****************************************************************/
TIM2_CR1 0x5300 TIM2 Control register 1
TIM2_IER 0x5303 TIM2 Interrupt enable register
TIM2_SR1 0x5304 TIM2 Status register 1
TIM2_SR2 0x5305 TIM2 Status register 2
TIM2_EGR 0x5306 TIM2 Event Generation register
TIM2_CCMR1 0x5307 TIM2 Capture/Compare mode register 1
TIM2_CCMR2 0x5308 TIM2 Capture/Compare mode register 2
TIM2_CCMR3 0x5309 TIM2 Capture/Compare mode register 2
TIM2_CCER1 0x530A TIM2 Capture/Compare enable register 1
TIM2_CCER2 0x530B TIM2 Capture/Compare enable register 2
TIM2_CNTRH 0x530C TIM2 Counter High
TIM2_CNTRL 0x530D TIM2 Counter Low
TIM2_PSCR 0x530E TIM2 Prescaler register
TIM2_ARRH 0x530F TIM2 Auto-Reload Register High
TIM2_ARRL 0x5310 TIM2 Auto-Reload Register Low
TIM2_CCR1H 0x5311 TIM2 Capture/Compare Register 1 High
TIM2_CCR1L 0x5312 TIM2 Capture/Compare Register 1 Low
TIM2_CCR2H 0x5313 TIM2 Capture/Compare Register 2 High
TIM2_CCR2L 0x5314 TIM2 Capture/Compare Register 2 Low
TIM2_CCR3H 0x5315 TIM2 Capture/Compare Register 3 High
TIM2_CCR3L 0x5316 TIM2 Capture/Compare Register 3 Low
;/* 8-Bit Timer 4 (TIM4) */
;/*****************************************************************/
TIM4_CR1 0x5340 TIM4 Control Register 1
TIM4_IER 0x5343 TIM4 Interrupt Enable Register
TIM4_SR 0x5344 TIM4 Status Register
TIM4_EGR 0x5345 TIM4 Event Generation Register
TIM4_CNTR 0x5346 TIM4 Counter
TIM4_PSCR 0x5347 TIM4 Prescaler Register
TIM4_ARR 0x5348 TIM4 Auto-Reload Register
;/* Analog to digital converter (ADC) */
;/*****************************************************************/
ADC_CSR 0x5400 ADC1 control/status register
ADC_CR1 0x5401 ADC1 Configuration register 1
ADC_CR2 0x5402 ADC1 Configuration register 2
ADC_CR3 0x5403 ADC1 Configuration register 3
ADC_DRH 0x5404 ADC Data Register High
ADC_DRL 0x5405 ADC Data Register Low
ADC_TDRH 0x5406 ADC Schmitt trigger disable register High
ADC_TDRL 0x5407 ADC Schmitt trigger disable register Low
ADC_HTRH 0x5408 ADC high threshold register high
ADC_HTRL 0x5409 ADC high threshold register low
ADC_LTRH 0x540A ADC low threshold register high
ADC_LTRL 0x540B ADC low threshold register low
ADC_AWSRH 0x540C ADC analog watchdog status register high
ADC_AWSRL 0x540D ADC analog watchdog status register low
ADC_AWCRH 0x540E ADC analog watchdog control register high
ADC_AWCRL 0x540F ADC analog watchdog control register low
;/* Accessible debug mode only registers CPU(1) */
;/*****************************************************************/
A 0x7F00 Accumulator
PCE 0x7F01 Program counter extended
PCH 0x7F02 Program counter high
PCL 0x7F03 Program counter low
XH 0x7F04 X index register high
XL 0x7F05 X index register low
YH 0x7F06 Y index register high
YL 0x7F07 Y index register low
SPH 0x7F08 Stack pointer high
SPL 0x7F09 Stack pointer low
CCR 0x7F0A Condition code register
;/* Global configuration register (CFG) */
;/*****************************************************************/
CFG_GCR 0x7F60 CFG Global configuration register
;/* Interrupt Software Priority Registers (ITC) */
;/*****************************************************************/
ITC_SPR1 0x7F70 Interrupt Software priority register 1
ITC_SPR2 0x7F71 Interrupt Software priority register 2
ITC_SPR3 0x7F72 Interrupt Software priority register 3
ITC_SPR4 0x7F73 Interrupt Software priority register 4
ITC_SPR5 0x7F74 Interrupt Software priority register 5
ITC_SPR6 0x7F75 Interrupt Software priority register 6
ITC_SPR7 0x7F76 Interrupt Software priority register 7
ITC_SPR8 0x7F77 Interrupt Software priority register 8
;/* SWIM */
;/*****************************************************************/
SWIM_CSR 0x7F80 SWIM control status register
;/* DM */
;/*****************************************************************/
DM_BK1RE 0x7F90 DM breakpoint 1 register extended byte
DM_BK1RH 0x7F91 DM breakpoint 1 register high byte
DM_BK1RL 0x7F92 DM breakpoint 1 register low byte
DM_BK2RE 0x7F93 DM breakpoint 2 register extended byte
DM_BK2RH 0x7F94 DM breakpoint 2 register high byte
DM_BK2RL 0x7F95 DM breakpoint 2 register low byte
DM_CR1 0x7F96 DM debug module control register 1
DM_CR2 0x7F97 DM debug module control register 2
DM_CSR1 0x7F98 DM debug module control/status register 1
DM_CSR2 0x7F99 DM debug module control/status register 2
DM_ENFCTR 0x7F9A DM enable function register
.STM8AF52AA
; MEMORY MAP
area DATA RAM 0x000000:0x001800
area DATA reserved 0x001800:0x004000
area DATA EEPROM 0x004000:0x004800
area DATA OPTION_BYTES 0x004800:0x004900
area DATA reserved 0x004900:0x005000
area DATA HW_REGS 0x005000:0x005800
area DATA reserved 0x005800:0x006000
area DATA BOOTROM 0x006000:0x006800
area DATA reserved 0x006800:0x007F00
area DATA C_S_D_I_REGS 0x007F00:0x008000
area CODE INT_VECTS 0x008000:0x008080
area CODE CODE1 0x008080:0x028000
; Interrupt and reset vector assignments
entry RESET 0x8000 Reset
entry TRAP 0x8004 TRAP (software) Interrupt Vector
entry TLI 0x8008 External Top Level Interrupt
entry AWU 0x800C AWU
entry CLK_CONTR 0x8010 Clock controller
entry MISC_A 0x8014 External interrupt E0 port A
entry MISC_B 0x8018 External interrupt E1 port B
entry MISC_C 0x801C External interrupt E2 port C
entry MISC_D 0x8020 External interrupt E3 port D
entry MISC_E 0x8024 External interrupt E4 port E
entry CAN_Rx 0x8028 CAN Interrupt Rx
entry CAN_Tx 0x802C CAN Interrupt Tx/Er/SC
entry SPI 0x8030 SPI End of transfer
entry TIMER1 0x8034 Update/overflow/trigger/break
entry TIMER1_C 0x8038 Capture/Compare
entry TIMER2 0x803C Update/overflow
entry TIMER2_C 0x8040 Capture/Compare
entry TIMER3 0x8044 Update/overflow
entry TIMER3_C 0x8048 Capture/Compare
entry USART_Tx 0x804C Tx Complete
entry USART_Rx 0x8050 Receive data full reg
entry I2C 0x8054 I2C Interrupt
entry LINUART_Tx 0x8058 Tx complete/error
entry LINUART_Rx 0x805C Receive data full reg
entry ADC 0x8060 ADC End of conversion
entry TIMER4 0x8064 Update/overflow
entry EEPROM 0x8068 End of programming/write in not allowed area
; INPUT/OUTPUT PORTS
;/* Port A */
;/*****************************************************************/
PA_ODR 0x5000 Port A data output latch register
PA_IDR 0x5001 Port A input pin value register
PA_DDR 0x5002 Port A data direction register
PA_CR1 0x5003 Port A control register 1
PA_CR2 0x5004 Port A control register 2
;/* Port B */
;/*****************************************************************/
PB_ODR 0x5005 Port B data output latch register
PB_IDR 0x5006 Port B input pin value register
PB_DDR 0x5007 Port B data direction register
PB_CR1 0x5008 Port B control register 1
PB_CR2 0x5009 Port B control register 2
;/* Port C */
;/*****************************************************************/
PC_ODR 0x500a Port C data output latch register
PC_IDR 0x500b Port C input pin value register
PC_DDR 0x500c Port C data direction register
PC_CR1 0x500d Port C control register 1
PC_CR2 0x500e Port C control register 2
;/* Port D */
;/*****************************************************************/
PD_ODR 0x500f Port D data output latch register
PD_IDR 0x5010 Port D input pin value register
PD_DDR 0x5011 Port D data direction register
PD_CR1 0x5012 Port D control register 1
PD_CR2 0x5013 Port D control register 2
;/* Port E */
;/*****************************************************************/
PE_ODR 0x5014 Port E data output latch register
PE_IDR 0x5015 Port E input pin value register
PE_DDR 0x5016 Port E data direction register
PE_CR1 0x5017 Port E control register 1
PE_CR2 0x5018 Port E control register 2
;/* Port F */
;/*****************************************************************/
PF_ODR 0x5019 Port F data output latch register
PF_IDR 0x501a Port F input pin value register
PF_DDR 0x501b Port F data direction register
PF_CR1 0x501c Port F control register 1
PF_CR2 0x501d Port F control register 2
;/* Port G */
;/*****************************************************************/
PG_ODR 0x501e Port G data output latch register
PG_IDR 0x501f Port G input pin value register
PG_DDR 0x5020 Port G data direction register
PG_CR1 0x5021 Port G control register 1
PG_CR2 0x5022 Port G control register 2
;/* Port H */
;/*****************************************************************/
PH_ODR 0x5023 Port H data output latch register
PH_IDR 0x5024 Port H input pin value register
PH_DDR 0x5025 Port H data direction register
PH_CR1 0x5026 Port H control register 1
PH_CR2 0x5027 Port H control register 2
;/* Port I */
;/*****************************************************************/
PI_ODR 0x5028 Port I data output latch register
PI_IDR 0x5029 Port I input pin value register
PI_DDR 0x502A Port I data direction register
PI_CR1 0x502B Port I control register 1
PI_CR2 0x502C Port I control register 2
;/* Flash */
;/*****************************************************************/
FLASH_CR1 0x505A Flash control register 1
FLASH_CR2 0x505B Flash control register 2
FLASH_NCR2 0x505C Flash complementary control register 2
FLASH_FPR 0x505D Flash protection register
FLASH_NFPR 0x505E Flash complementary protection register
FLASH_IAPSR 0x505F Flash in-application programming status register
FLASH_PUKR 0x5062 Flash Program memory unprotection register
FLASH_DUKR 0x5064 Data EEPROM unprotection register
;/* External Interrupt Control Register (ITC) */
;/*****************************************************************/
EXTI_CR1 0x50A0 External interrupt control register 1
EXTI_CR2 0x50A1 External interrupt control register 2
;/* Reset (RST) */
;/*****************************************************************/
RST_SR 0x50B3 Reset status register
;/* Clock Control (CLK) */
;/*****************************************************************/
CLK_ICKR 0x50C0 Internal clock control register
CLK_ECKR 0x50C1 External clock control register
CLK_CMSR 0x50C3 Clock master status register
CLK_SWR 0x50C4 Clock master switch register
CLK_SWCR 0x50C5 Clock switch control register
CLK_CKDIVR 0x50C6 Clock divider register
CLK_PCKENR1 0x50C7 Peripheral clock gating register 1
CLK_CSSR 0x50C8 Clock security system register
CLK_CCOR 0x50C9 Configurable clock control register
CLK_PCKENR2 0x50CA Peripheral clock gating register 2
CLK_HSITRIMR 0x50CC HSI clock calibration trimming register
CLK_SWIMCCR 0x50CD SWIM clock control register
;/* Window Watchdog (WWDG) */
;/*****************************************************************/
WWDG_CR 0x50D1 WWDG Control Register
WWDG_WR 0x50D2 WWDR Window Register
;/* Independent Watchdog (IWDG) */
;/*****************************************************************/
IWDG_KR 0x50E0 IWDG Key Register
IWDG_PR 0x50E1 IWDG Prescaler Register
IWDG_RLR 0x50E2 IWDG Reload Register
;/* AWU */
;/*****************************************************************/
AWU_CSR1 0x50F0 AWU control/status register 1
AWU_APR 0x50F1 AWU asynchronous prescaler buffer register
AWU_TBR 0x50F2 AWU timebase selection register
;/* Beeper (BEEP) */
;/*****************************************************************/
BEEP_CSR 0x50F3 BEEP Control/Status Register
;/* Serial Peripheral Interface (SPI) */
;/*****************************************************************/
SPI_CR1 0x5200 SPI Control Register 1
SPI_CR2 0x5201 SPI Control Register 2
SPI_ICR 0x5202 SPI Interrupt Control Register
SPI_SR 0x5203 SPI Status Register
SPI_DR 0x5204 SPI Data Register
SPI_CRCPR 0x5205 SPI CRC Polynomial Register
SPI_RXCRCR 0x5206 SPI Rx CRC Register
SPI_TXCRCR 0x5207 SPI Tx CRC Register
;/* I2C Bus Interface (I2C) */
;/*****************************************************************/
I2C_CR1 0x5210 I2C control register 1
I2C_CR2 0x5211 I2C control register 2
I2C_FREQR 0x5212 I2C frequency register
I2C_OARL 0x5213 I2C Own address register low
I2C_OARH 0x5214 I2C Own address register high
I2C_DR 0x5216 I2C data register
I2C_SR1 0x5217 I2C status register 1
I2C_SR2 0x5218 I2C status register 2
I2C_SR3 0x5219 I2C status register 3
I2C_ITR 0x521A I2C interrupt control register
I2C_CCRL 0x521B I2C Clock control register low
I2C_CCRH 0x521C I2C Clock control register high
I2C_TRISER 0x521D I2C TRISE register
;/* Universal synch/asynch receiver transmitter 1 (USART) */
;/*****************************************************************/
UART1_SR 0x5230 USART Status Register
UART1_DR 0x5231 USART Data Register
UART1_BRR1 0x5232 USART Baud Rate Register 1
UART1_BRR2 0x5233 USART Baud Rate Register 2
UART1_CR1 0x5234 USART Control Register 1
UART1_CR2 0x5235 USART Control Register 2
UART1_CR3 0x5236 USART Control Register 3
UART1_CR4 0x5237 USART Control Register 4
UART1_CR5 0x5238 USART Control Register 5
UART1_GTR 0x5239 USART Guard time Register
UART1_PSCR 0x523A USART Prescaler Register
;/* LIN Universal asynch receiver transmitter 3 (LINUART) */
;/*****************************************************************/
UART3_SR 0x5240 LINUART Status Register
UART3_DR 0x5241 LINUART Data Register
UART3_BRR1 0x5242 LINUART Baud Rate Register 1
UART3_BRR2 0x5243 LINUART Baud Rate Register 2
UART3_CR1 0x5244 LINUART Control Register 1
UART3_CR2 0x5245 LINUART Control Register 2
UART3_CR3 0x5246 LINUART Control Register 3
UART3_CR4 0x5247 LINUART Control Register 4
UART3_CR6 0x5249 LINUART Control Register 6
;/* 16-Bit Timer 1 (TIM1) */
;/*****************************************************************/
TIM1_CR1 0x5250 TIM1 Control register 1
TIM1_CR2 0x5251 TIM1 Control register 2
TIM1_SMCR 0x5252 TIM1 Slave Mode Control register
TIM1_ETR 0x5253 TIM1 external trigger register
TIM1_IER 0x5254 TIM1 Interrupt enable register
TIM1_SR1 0x5255 TIM1 Status register 1
TIM1_SR2 0x5256 TIM1 Status register 2
TIM1_EGR 0x5257 TIM1 Event Generation register
TIM1_CCMR1 0x5258 TIM1 Capture/Compare mode register 1
TIM1_CCMR2 0x5259 TIM1 Capture/Compare mode register 2
TIM1_CCMR3 0x525A TIM1 Capture/Compare mode register 3
TIM1_CCMR4 0x525B TIM1 Capture/Compare mode register 4
TIM1_CCER1 0x525C TIM1 Capture/Compare enable register 1
TIM1_CCER2 0x525D TIM1 Capture/Compare enable register 2
TIM1_CNTRH 0x525E TIM1 Counter High
TIM1_CNTRL 0x525F TIM1 Counter Low
TIM1_PSCRH 0x5260 TIM1 Prescaler Register High
TIM1_PSCRL 0x5261 TIM1 Prescaler Register Low
TIM1_ARRH 0x5262 TIM1 Auto-Reload Register High
TIM1_ARRL 0x5263 TIM1 Auto-Reload Register Low
TIM1_RCR 0x5264 TIM1 Repetition counter register
TIM1_CCR1H 0x5265 TIM1 Capture/Compare Register 1 High
TIM1_CCR1L 0x5266 TIM1 Capture/Compare Register 1 Low
TIM1_CCR2H 0x5267 TIM1 Capture/Compare Register 2 High
TIM1_CCR2L 0x5268 TIM1 Capture/Compare Register 2 Low
TIM1_CCR3H 0x5269 TIM1 Capture/Compare Register 3 High
TIM1_CCR3L 0x526A TIM1 Capture/Compare Register 3 Low
TIM1_CCR4H 0x526B TIM1 Capture/Compare Register 4 High
TIM1_CCR4L 0x526C TIM1 Capture/Compare Register 4 Low
TIM1_BKR 0x526D TIM1 Break register
TIM1_DTR 0x526E TIM1 Dead-time register
TIM1_OISR 0x526F TIM1 Output idle state register
;/* 16-Bit Timer 2 (TIM2) */
;/*****************************************************************/
TIM2_CR1 0x5300 TIM2 Control register 1
TIM2_IER 0x5301 TIM2 Interrupt enable register
TIM2_SR1 0x5302 TIM2 Status register 1
TIM2_SR2 0x5303 TIM2 Status register 2
TIM2_EGR 0x5304 TIM2 Event Generation register
TIM2_CCMR1 0x5305 TIM2 Capture/Compare mode register 1
TIM2_CCMR2 0x5306 TIM2 Capture/Compare mode register 2
TIM2_CCMR3 0x5307 TIM2 Capture/Compare mode register 2
TIM2_CCER1 0x5308 TIM2 Capture/Compare enable register 1
TIM2_CCER2 0x5309 TIM2 Capture/Compare enable register 2
TIM2_CNTRH 0x530A TIM2 Counter High
TIM2_CNTRL 0x530B TIM2 Counter Low
TIM2_PSCR 0x530C TIM2 Prescaler register
TIM2_ARRH 0x530D TIM2 Auto-Reload Register High
TIM2_ARRL 0x530E TIM2 Auto-Reload Register Low
TIM2_CCR1H 0x530F TIM2 Capture/Compare Register 1 High
TIM2_CCR1L 0x5310 TIM2 Capture/Compare Register 1 Low
TIM2_CCR2H 0x5311 TIM2 Capture/Compare Register 2 High
TIM2_CCR2L 0x5312 TIM2 Capture/Compare Register 2 Low
TIM2_CCR3H 0x5313 TIM2 Capture/Compare Register 3 High
TIM2_CCR3L 0x5314 TIM2 Capture/Compare Register 3 Low
;/* 16-Bit Timer 3 (TIM3) */
;/*****************************************************************/
TIM3_CR1 0x5320 TIM3 Control register 1
TIM3_IER 0x5321 TIM3 Interrupt enable register
TIM3_SR1 0x5322 TIM3 Status register 1
TIM3_SR2 0x5323 TIM3 Status register 2
TIM3_EGR 0x5324 TIM3 Event Generation register
TIM3_CCMR1 0x5325 TIM3 Capture/Compare mode register 1
TIM3_CCMR2 0x5326 TIM3 Capture/Compare mode register 2
TIM3_CCER1 0x5327 TIM3 Capture/Compare enable register 1
TIM3_CNTRH 0x5328 TIM3 Counter High
TIM3_CNTRL 0x5329 TIM3 Counter Low
TIM3_PSCR 0x532A TIM3 Prescaler register
TIM3_ARRH 0x532B TIM3 Auto-Reload Register High
TIM3_ARRL 0x532C TIM3 Auto-Reload Register Low
TIM3_CCR1H 0x532D TIM3 Capture/Compare Register 1 High
TIM3_CCR1L 0x532E TIM3 Capture/Compare Register 1 Low
TIM3_CCR2H 0x532F TIM3 Capture/Compare Register 2 High
TIM3_CCR2L 0x5330 TIM3 Capture/Compare Register 2 Low
;/* 8-Bit Timer 4 (TIM4) */
;/*****************************************************************/
TIM4_CR1 0x5340 TIM4 Control Register 1
TIM4_IER 0x5341 TIM4 Interrupt Enable Register
TIM4_SR 0x5342 TIM4 Status Register
TIM4_EGR 0x5343 TIM4 Event Generation Register
TIM4_CNTR 0x5344 TIM4 Counter
TIM4_PSCR 0x5345 TIM4 Prescaler Register
TIM4_ARR 0x5346 TIM4 Auto-Reload Register
;/* Analog to digital converter (ADC) */
;/*****************************************************************/
ADC_CSR 0x5400 ADC1 control/status register
ADC_CR1 0x5401 ADC1 Configuration register 1
ADC_CR2 0x5402 ADC1 Configuration register 2
ADC_CR3 0x5403 ADC1 Configuration register 3
ADC_DRH 0x5404 ADC Data Register High
ADC_DRL 0x5405 ADC Data Register Low
ADC_TDRH 0x5406 ADC Schmitt trigger disable register High
ADC_TDRL 0x5407 ADC Schmitt trigger disable register Low
;/* CAN (beCAN) */
;/*****************************************************************/
CAN_MCR 0x5420 CAN master control register
CAN_MSR 0x5421 CAN master status register
CAN_TSR 0x5422 CAN transmit status register
CAN_TPR 0x5423 CAN transmit priority register
CAN_RFR 0x5424 CAN receive FIFO register
CAN_IER 0x5425 CAN interrupt enable register
CAN_DGR 0x5426 CAN diagnosis register
CAN_FPSR 0x5427 CAN page selection register
CAN_P0 0x5428 CAN paged register 0
CAN_P1 0x5429 CAN paged register 1
CAN_P2 0x542A CAN paged register 2
CAN_P3 0x542B CAN paged register 3
CAN_P4 0x542C CAN paged register 4
CAN_P5 0x542D CAN paged register 5
CAN_P6 0x542E CAN paged register 6
CAN_P7 0x542F CAN paged register 7
CAN_P8 0x5430 CAN paged register 8
CAN_P9 0x5431 CAN paged register 9
CAN_PA 0x5432 CAN paged register A
CAN_PB 0x5433 CAN paged register B
CAN_PC 0x5434 CAN paged register C
CAN_PD 0x5435 CAN paged register D
CAN_PE 0x5436 CAN paged register E
CAN_PF 0x5437 CAN paged register F
;/* Accessible debug mode only registers CPU(1) */
;/*****************************************************************/
A 0x7F00 Accumulator
PCE 0x7F01 Program counter extended
PCH 0x7F02 Program counter high
PCL 0x7F03 Program counter low
XH 0x7F04 X index register high
XL 0x7F05 X index register low
YH 0x7F06 Y index register high
YL 0x7F07 Y index register low
SPH 0x7F08 Stack pointer high
SPL 0x7F09 Stack pointer low
CC 0x7F0A Condition code register
;/* Global configuration register (CFG) */
;/*****************************************************************/
CFG_GCR 0x7F60 CFG Global configuration register
;/* Interrupt Software Priority Registers (ITC) */
;/*****************************************************************/
ITC_SPR1 0x7F70 Interrupt Software priority register 1
ITC_SPR2 0x7F71 Interrupt Software priority register 2
ITC_SPR3 0x7F72 Interrupt Software priority register 3
ITC_SPR4 0x7F73 Interrupt Software priority register 4
ITC_SPR5 0x7F74 Interrupt Software priority register 5
ITC_SPR6 0x7F75 Interrupt Software priority register 6
ITC_SPR7 0x7F76 Interrupt Software priority register 7
ITC_SPR8 0x7F77 Interrupt Software priority register 8
;/* SWIM */
;/*****************************************************************/
SWIM_CSR 0x7F80 SWIM control status register
;/* DM */
;/*****************************************************************/
DM_BK1RE 0x7F90 DM breakpoint 1 register extended byte
DM_BK1RH 0x7F91 DM breakpoint 1 register high byte
DM_BK1RL 0x7F92 DM breakpoint 1 register low byte
DM_BK2RE 0x7F93 DM breakpoint 2 register extended byte
DM_BK2RH 0x7F94 DM breakpoint 2 register high byte
DM_BK2RL 0x7F95 DM breakpoint 2 register low byte
DM_CR1 0x7F96 DM debug module control register 1
DM_CR2 0x7F97 DM debug module control register 2
DM_CSR1 0x7F98 DM debug module control/status register 1
DM_CSR2 0x7F99 DM debug module control/status register 2
DM_ENFCTR 0x7F9A DM enable function register
;/* TMU */
;/*****************************************************************/
TMU_K1 0x5800 Temporary memory unprotection key register 1
TMU_K2 0x5801 Temporary memory unprotection key register 2
TMU_K3 0x5802 Temporary memory unprotection key register 3
TMU_K4 0x5803 Temporary memory unprotection key register 4
TMU_K5 0x5804 Temporary memory unprotection key register 5
TMU_K6 0x5805 Temporary memory unprotection key register 6
TMU_K7 0x5806 Temporary memory unprotection key register 7
TMU_K8 0x5807 Temporary memory unprotection key register 8
TMU_CSR 0x5808 Temporary memory unprotection control and status register
.STM8L151x8
; http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00284933.pdf
; 4Kbytes RAM - 0x0000:0x0FFF
; 32Kbytes Flash? - 0x8000:0xFFFF
; XXX - TODO - end address not included
; MEMORY MAP
area DATA RAM 0x00000:0x01000
area DATA EEPROM 0x01000:0x01800
area BSS RESERVED 0x01800:0x04800
area DATA OPTION_BYTES 0x04800:0x04900
area BSS RESERVED 0x04900:0x04910
area DATA VREFINT 0x04910:0x04911
area DATA TSFACTORY 0x04911:0x04912
area DATA RESERVED 0x04912:0x04926
area DATA UNIQUEID 0x04926:0x04932
area DATA RESERVED 0x04932:0x05000
area DATA GPIOS 0x05000:0x05800
area BSS RESERVED 0x05800:0x06000
area DATA BOOTROM 0x06000:0x06800
area BSS RESERVED 0x06800:0x07F00
area DATA REGS1 0x07F00:0x08000
;area CODE VECS1 0x08000:0x08080
area CODE CODE1 0x08000:0x18000
;area CODE VECS2 0x09000:0x09080
;area CODE CODE2 0x09080:0x20000
; Interrupt and reset vector assignments
entry __RESET 0x9000 Reset
entry TRAP_ 0x9004 TRAP (software) Interrupt Vector
entry TLI_ 0x9008 External Top Level Interrupt
entry FLASH_ 0x900C EOP/WR_PG_DIS
entry DMA1_0_1 0x9010 DMA1 channels 0/1
entry DMA1_2_3 0x9014 DMA1 channels 2/3
entry RTC_LSE_CSS 0x9018 RTC alarm interrupt/LSE CSS interrupt
entry EXTI_E_F_PVD 0x901C PortE/F interrupt/PVD interrupt
entry EXTI_B_G 0x9020 External interrupt port B/G
entry EXTI_D_H 0x9024 External interrupt port D/H
entry EXTI0 0x9028 External interrupt 0
entry EXTI1 0x902C External interrupt 1
entry EXTI2 0x9030 External interrupt 2
entry EXTI3 0x9034 External interrupt 3
entry EXTI4 0x9038 External interrupt 4
entry EXTI5 0x903C External interrupt 5
entry EXTI6 0x9040 External interrupt 6
entry EXTI7 0x9044 External interrupt 7
entry LCD 0x9048 LCD interrupt
entry CLK_TIM1_DAC 0x904C System clock switch/CSS interrupt/TIM1 break/DAC
entry COMP1_COMP2_ADC1 0x9050 Comparator 1 and 2 interrupt/ADC1
entry TIM2_USART2 0x9054 TIM2 update/overflow/trigger/break/USART2 transmission complete/transmit data register empty interrupt
entry TIM2_USART2_ 0x9058 Capture/Compare/USART2 interrupt
entry TIM3_USART3 0x905C TIM3 Update /Overflow/Trigger/Break/USART3 transmission complete/transmit data register empty interrupt
entry TIM3_USART3_ 0x9060 TIM3 Capture/Compare/USART3 Receive register data full/overrun/idle line detected/parity error/interrupt
entry TIM1 0x9064 Update /overflow/trigger/COM
entry TIM1_ 0x9068 Capture/Compare
entry TIM4 0x906C Update/overflow/trigger
entry SPI1 0x9070 End of Transfer
entry USART1_TIM5 0x9074 USART1 transmission complete/transmit data register empty/TIM5 update/overflow/trigger/break
entry USART1_TIM5_ 0x9078 USART1 Receive register data full/overrun/idle line detected/parity error/TIM5 capture/compare
entry I2C1_SPI2 0x907C I2C1 interrupt(5)/SPI2
;interrupt __RESET 0xFFFE Reset
;interrupt TRAP_ 0xFFFC TRAP (software) Interrupt Vector
;interrupt EI0_ 0xFFFA External Interrupt Vector EI0
;interrupt EI1_ 0xFFF8 External Interrupt Vector EI1
;interrupt SPI_ 0xFFF4 SPI Interrupt Vector
;interrupt TIMER_A 0xFFF2 TIMER A Interrupt Vector
;interrupt TIMER_B 0xFFEE TIMER B Interrupt Vector (ST72212 only)
; INPUT/OUTPUT PORTS
;/* Port A */
;/*****************************************************************/
PA_ODR 0x5000 Port A data output latch register
PA_IDR 0x5001 Port A input pin value register
PA_DDR 0x5002 Port A data direction register
PA_CR1 0x5003 Port A control register 1
PA_CR2 0x5004 Port A control register 2
;/* Port B */
;/*****************************************************************/
PB_ODR 0x5005 Port B data output latch register
PB_IDR 0x5006 Port B input pin value register
PB_DDR 0x5007 Port B data direction register
PB_CR1 0x5008 Port B control register 1
PB_CR2 0x5009 Port B control register 2
;/* Port C */
;/*****************************************************************/
PC_ODR 0x500a Port C data output latch register
PC_IDR 0x500b Port C input pin value register
PC_DDR 0x500c Port C data direction register
PC_CR1 0x500d Port C control register 1
PC_CR2 0x500e Port C control register 2
;/* Port D */
;/*****************************************************************/
PD_ODR 0x500f Port D data output latch register
PD_IDR 0x5010 Port D input pin value register
PD_DDR 0x5011 Port D data direction register
PD_CR1 0x5012 Port D control register 1
PD_CR2 0x5013 Port D control register 2
;/* Port E */
;/*****************************************************************/
PE_ODR 0x5014 Port E data output latch register
PE_IDR 0x5015 Port E input pin value register
PE_DDR 0x5016 Port E data direction register
PE_CR1 0x5017 Port E control register 1
PE_CR2 0x5018 Port E control register 2
;/* Port F */
;/*****************************************************************/
PF_ODR 0x5019 Port F data output latch register
PF_IDR 0x501a Port F input pin value register
PF_DDR 0x501b Port F data direction register
PF_CR1 0x501c Port F control register 1
PF_CR2 0x501d Port F control register 2
;/* Port G */
;/*****************************************************************/
PG_ODR 0x501e Port G data output latch register
PG_IDR 0x501f Port G input pin value register
PG_DDR 0x5020 Port G data direction register
PG_CR1 0x5021 Port G control register 1
PG_CR2 0x5022 Port G control register 2
;/* Flash */
;/*****************************************************************/
FLASH_CR1 0x5050 Flash control register 1
FLASH_CR2 0x5051 Flash control register 2
FLASH_PUKR 0x5052 Flash Program memory unprotection register
FLASH_DUKR 0x5053 Data EEPROM unprotection register
FLASH_IAPSR 0x5054 Flash in-application programming status register
;/* Direct memory access controller 1 (DMA1) */
;/*****************************************************************/
DMA1_GCSR 0x5070 DMA1 global configuration & status register
DMA1_GIR1 0x5071 DMA1 global interrupt register 1
DMA1_C0CR 0x5075 DMA1 channel 0 configuration register
DMA1_C0SPR 0x5076 DMA1 channel 0 status & priority register
DMA1_C0NDTR 0x5077 DMA1 number of data to transfer register (channel 0)
DMA1_C0PAR 0x5078 DMA1 peripheral address register (channel 0)
;DMA1_C0PARH 0x5078 DMA peripheral address high register (channel 0)
;DMA1_C0PARL 0x5079 DMA peripheral address low register (channel 0)
DMA1_C0M0AR 0x507b DMA1 memory 0 address register (channel 0)
;DMA1_C0M0ARH 0x507b DMA memory address high register (channel 0)
;DMA1_C0M0ARL 0x507c DMA memory address low register (channel 0)
DMA1_C1CR 0x507f DMA1 channel 1 configuration register
DMA1_C1SPR 0x5080 DMA1 channel 1 status & priority register
DMA1_C1NDTR 0x5081 DMA1 number of data to transfer register (channel 1)
DMA1_C1PAR 0x5082 DMA1 peripheral address register (channel 1)
;DMA1_C1PARH 0x5082 DMA peripheral address high register (channel 1)
;DMA1_C1PARL 0x5083 DMA peripheral address low register (channel 1)
DMA1_C1M0AR 0x5085 DMA1 memory 0 address register (channel 1)
;DMA1_C1M0ARH 0x5085 DMA memory address high register (channel 1)
;DMA1_C1M0ARL 0x5086 DMA memory address low register (channel 1)
DMA1_C2CR 0x5089 DMA1 channel 2 configuration register
DMA1_C2SPR 0x508a DMA1 channel 2 status & priority register
DMA1_C2NDTR 0x508b DMA1 number of data to transfer register (channel 2)
DMA1_C2PAR 0x508c DMA1 peripheral address register (channel 2)
;DMA1_C2PARH 0x508c DMA peripheral address high register (channel 2)
;DMA1_C2PARL 0x508d DMA peripheral address low register (channel 2)
DMA1_C2M0AR 0x508f DMA1 memory 0 address register (channel 2)
;DMA1_C2M0ARH 0x508f DMA memory address high register (channel 2)
;DMA1_C2M0ARL 0x5090 DMA memory address low register (channel 2)
DMA1_C3CR 0x5093 DMA1 channel 3 configuration register
DMA1_C3SPR 0x5094 DMA1 channel 3 status & priority register
DMA1_C3NDTR 0x5095 DMA1 number of data to transfer register (channel 3)
DMA1_C3PAR_C3M1AR 0x5096 DMA1 peripheral address register (channel 3)
;DMA1_C3PARH_C3M1ARH 0x5096 DMA1 peripheral address high register (channel 3)
;DMA1_C3PARL_C3M1ARL 0x5097 DMA1 peripheral address low register (channel 3)
DMA_C3M0EAR 0x5098 DMA channel 3 memory 0 extended address register
DMA1_C3M0AR 0x5099 DMA1 memory 0 address register (channel 3)
;DMA1_C3M0ARH 0x5099 DMA memory address high register (channel 3)
;DMA1_C3M0ARL 0x509a DMA memory address low register (channel 3)
;/* System configuration (SYSCFG) */
;/*****************************************************************/
SYSCFG_RMPCR3 0x509d Remapping register 3
SYSCFG_RMPCR1 0x509e Remapping register 1
SYSCFG_RMPCR2 0x509f Remapping register 2
;/* External Interrupt Control Register (ITC) */
;/*****************************************************************/
EXTI_CR1 0x50a0 External interrupt control register 1
EXTI_CR2 0x50a1 External interrupt control register 2
EXTI_CR3 0x50a2 External interrupt control register 3
EXTI_SR1 0x50a3 External interrupt status register 1
EXTI_SR2 0x50a4 External interrupt status register 2
EXTI_CONF1 0x50a5 External interrupt port select register 1
;/* Wait For Event (WFE) */
;/*****************************************************************/
WFE_CR1 0x50a6 WFE control register 1
WFE_CR2 0x50a7 WFE control register 2
WFE_CR3 0x50a8 WFE control register 3
WFE_CR4 0x50a9 WFE control register 4
;/* External Interrupt Control Register (ITC) */
;/*****************************************************************/
EXTI_CR4 0x50aa External interrupt control register 4
EXTI_CONF2 0x50ab External interrupt port select register 2