-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.inc
996 lines (980 loc) · 15.4 KB
/
device.inc
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
; Partname: ATmega328P
; generated automatically, no not edit
.if WANT_USART0 == 1
; ( -- addr ) System Constant
; R( -- )
; USART I/O Data Register
VE_UDR0:
.dw $ff04
.db "UDR0"
.dw VE_HEAD
.set VE_HEAD=VE_UDR0
XT_UDR0:
.dw PFA_DOVARIABLE
PFA_UDR0:
.dw 198
; ( -- addr ) System Constant
; R( -- )
; USART Control and Status Register A
VE_UCSR0A:
.dw $ff06
.db "UCSR0A"
.dw VE_HEAD
.set VE_HEAD=VE_UCSR0A
XT_UCSR0A:
.dw PFA_DOVARIABLE
PFA_UCSR0A:
.dw 192
; ( -- addr ) System Constant
; R( -- )
; USART Control and Status Register B
VE_UCSR0B:
.dw $ff06
.db "UCSR0B"
.dw VE_HEAD
.set VE_HEAD=VE_UCSR0B
XT_UCSR0B:
.dw PFA_DOVARIABLE
PFA_UCSR0B:
.dw 193
; ( -- addr ) System Constant
; R( -- )
; USART Control and Status Register C
VE_UCSR0C:
.dw $ff06
.db "UCSR0C"
.dw VE_HEAD
.set VE_HEAD=VE_UCSR0C
XT_UCSR0C:
.dw PFA_DOVARIABLE
PFA_UCSR0C:
.dw 194
; ( -- addr ) System Constant
; R( -- )
; USART Baud Rate Register Bytes
VE_UBRR0:
.dw $ff05
.db "UBRR0",0
.dw VE_HEAD
.set VE_HEAD=VE_UBRR0
XT_UBRR0:
.dw PFA_DOVARIABLE
PFA_UBRR0:
.dw 196
.endif
.if WANT_TWI == 1
; ( -- addr ) System Constant
; R( -- )
; TWI (Slave) Address Mask Register
VE_TWAMR:
.dw $ff05
.db "TWAMR",0
.dw VE_HEAD
.set VE_HEAD=VE_TWAMR
XT_TWAMR:
.dw PFA_DOVARIABLE
PFA_TWAMR:
.dw 189
; ( -- addr ) System Constant
; R( -- )
; TWI Bit Rate register
VE_TWBR:
.dw $ff04
.db "TWBR"
.dw VE_HEAD
.set VE_HEAD=VE_TWBR
XT_TWBR:
.dw PFA_DOVARIABLE
PFA_TWBR:
.dw 184
; ( -- addr ) System Constant
; R( -- )
; TWI Control Register
VE_TWCR:
.dw $ff04
.db "TWCR"
.dw VE_HEAD
.set VE_HEAD=VE_TWCR
XT_TWCR:
.dw PFA_DOVARIABLE
PFA_TWCR:
.dw 188
; ( -- addr ) System Constant
; R( -- )
; TWI Status Register
VE_TWSR:
.dw $ff04
.db "TWSR"
.dw VE_HEAD
.set VE_HEAD=VE_TWSR
XT_TWSR:
.dw PFA_DOVARIABLE
PFA_TWSR:
.dw 185
; ( -- addr ) System Constant
; R( -- )
; TWI Data register
VE_TWDR:
.dw $ff04
.db "TWDR"
.dw VE_HEAD
.set VE_HEAD=VE_TWDR
XT_TWDR:
.dw PFA_DOVARIABLE
PFA_TWDR:
.dw 187
; ( -- addr ) System Constant
; R( -- )
; TWI (Slave) Address register
VE_TWAR:
.dw $ff04
.db "TWAR"
.dw VE_HEAD
.set VE_HEAD=VE_TWAR
XT_TWAR:
.dw PFA_DOVARIABLE
PFA_TWAR:
.dw 186
.endif
.if WANT_TIMER_COUNTER_1 == 1
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Interrupt Mask Register
VE_TIMSK1:
.dw $ff06
.db "TIMSK1"
.dw VE_HEAD
.set VE_HEAD=VE_TIMSK1
XT_TIMSK1:
.dw PFA_DOVARIABLE
PFA_TIMSK1:
.dw 111
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Interrupt Flag register
VE_TIFR1:
.dw $ff05
.db "TIFR1",0
.dw VE_HEAD
.set VE_HEAD=VE_TIFR1
XT_TIFR1:
.dw PFA_DOVARIABLE
PFA_TIFR1:
.dw 54
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Control Register A
VE_TCCR1A:
.dw $ff06
.db "TCCR1A"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR1A
XT_TCCR1A:
.dw PFA_DOVARIABLE
PFA_TCCR1A:
.dw 128
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Control Register B
VE_TCCR1B:
.dw $ff06
.db "TCCR1B"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR1B
XT_TCCR1B:
.dw PFA_DOVARIABLE
PFA_TCCR1B:
.dw 129
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Control Register C
VE_TCCR1C:
.dw $ff06
.db "TCCR1C"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR1C
XT_TCCR1C:
.dw PFA_DOVARIABLE
PFA_TCCR1C:
.dw 130
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Bytes
VE_TCNT1:
.dw $ff05
.db "TCNT1",0
.dw VE_HEAD
.set VE_HEAD=VE_TCNT1
XT_TCNT1:
.dw PFA_DOVARIABLE
PFA_TCNT1:
.dw 132
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Output Compare Register Bytes
VE_OCR1A:
.dw $ff05
.db "OCR1A",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR1A
XT_OCR1A:
.dw PFA_DOVARIABLE
PFA_OCR1A:
.dw 136
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Output Compare Register Bytes
VE_OCR1B:
.dw $ff05
.db "OCR1B",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR1B
XT_OCR1B:
.dw PFA_DOVARIABLE
PFA_OCR1B:
.dw 138
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter1 Input Capture Register Bytes
VE_ICR1:
.dw $ff04
.db "ICR1"
.dw VE_HEAD
.set VE_HEAD=VE_ICR1
XT_ICR1:
.dw PFA_DOVARIABLE
PFA_ICR1:
.dw 134
; ( -- addr ) System Constant
; R( -- )
; General Timer/Counter Control Register
VE_GTCCR:
.dw $ff05
.db "GTCCR",0
.dw VE_HEAD
.set VE_HEAD=VE_GTCCR
XT_GTCCR:
.dw PFA_DOVARIABLE
PFA_GTCCR:
.dw 67
.endif
.if WANT_TIMER_COUNTER_2 == 1
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Interrupt Mask register
VE_TIMSK2:
.dw $ff06
.db "TIMSK2"
.dw VE_HEAD
.set VE_HEAD=VE_TIMSK2
XT_TIMSK2:
.dw PFA_DOVARIABLE
PFA_TIMSK2:
.dw 112
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Interrupt Flag Register
VE_TIFR2:
.dw $ff05
.db "TIFR2",0
.dw VE_HEAD
.set VE_HEAD=VE_TIFR2
XT_TIFR2:
.dw PFA_DOVARIABLE
PFA_TIFR2:
.dw 55
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter2 Control Register A
VE_TCCR2A:
.dw $ff06
.db "TCCR2A"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR2A
XT_TCCR2A:
.dw PFA_DOVARIABLE
PFA_TCCR2A:
.dw 176
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter2 Control Register B
VE_TCCR2B:
.dw $ff06
.db "TCCR2B"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR2B
XT_TCCR2B:
.dw PFA_DOVARIABLE
PFA_TCCR2B:
.dw 177
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter2
VE_TCNT2:
.dw $ff05
.db "TCNT2",0
.dw VE_HEAD
.set VE_HEAD=VE_TCNT2
XT_TCNT2:
.dw PFA_DOVARIABLE
PFA_TCNT2:
.dw 178
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter2 Output Compare Register B
VE_OCR2B:
.dw $ff05
.db "OCR2B",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR2B
XT_OCR2B:
.dw PFA_DOVARIABLE
PFA_OCR2B:
.dw 180
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter2 Output Compare Register A
VE_OCR2A:
.dw $ff05
.db "OCR2A",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR2A
XT_OCR2A:
.dw PFA_DOVARIABLE
PFA_OCR2A:
.dw 179
; ( -- addr ) System Constant
; R( -- )
; Asynchronous Status Register
VE_ASSR:
.dw $ff04
.db "ASSR"
.dw VE_HEAD
.set VE_HEAD=VE_ASSR
XT_ASSR:
.dw PFA_DOVARIABLE
PFA_ASSR:
.dw 182
.endif
.if WANT_AD_CONVERTER == 1
; ( -- addr ) System Constant
; R( -- )
; The ADC multiplexer Selection Register
VE_ADMUX:
.dw $ff05
.db "ADMUX",0
.dw VE_HEAD
.set VE_HEAD=VE_ADMUX
XT_ADMUX:
.dw PFA_DOVARIABLE
PFA_ADMUX:
.dw 124
; ( -- addr ) System Constant
; R( -- )
; ADC Data Register Bytes
VE_ADC:
.dw $ff03
.db "ADC",0
.dw VE_HEAD
.set VE_HEAD=VE_ADC
XT_ADC:
.dw PFA_DOVARIABLE
PFA_ADC:
.dw 120
; ( -- addr ) System Constant
; R( -- )
; The ADC Control and Status register A
VE_ADCSRA:
.dw $ff06
.db "ADCSRA"
.dw VE_HEAD
.set VE_HEAD=VE_ADCSRA
XT_ADCSRA:
.dw PFA_DOVARIABLE
PFA_ADCSRA:
.dw 122
; ( -- addr ) System Constant
; R( -- )
; The ADC Control and Status register B
VE_ADCSRB:
.dw $ff06
.db "ADCSRB"
.dw VE_HEAD
.set VE_HEAD=VE_ADCSRB
XT_ADCSRB:
.dw PFA_DOVARIABLE
PFA_ADCSRB:
.dw 123
; ( -- addr ) System Constant
; R( -- )
; Digital Input Disable Register
VE_DIDR0:
.dw $ff05
.db "DIDR0",0
.dw VE_HEAD
.set VE_HEAD=VE_DIDR0
XT_DIDR0:
.dw PFA_DOVARIABLE
PFA_DIDR0:
.dw 126
.endif
.if WANT_ANALOG_COMPARATOR == 1
; ( -- addr ) System Constant
; R( -- )
; Analog Comparator Control And Status Register
VE_ACSR:
.dw $ff04
.db "ACSR"
.dw VE_HEAD
.set VE_HEAD=VE_ACSR
XT_ACSR:
.dw PFA_DOVARIABLE
PFA_ACSR:
.dw 80
; ( -- addr ) System Constant
; R( -- )
; Digital Input Disable Register 1
VE_DIDR1:
.dw $ff05
.db "DIDR1",0
.dw VE_HEAD
.set VE_HEAD=VE_DIDR1
XT_DIDR1:
.dw PFA_DOVARIABLE
PFA_DIDR1:
.dw 127
.endif
.if WANT_PORTB == 1
; ( -- addr ) System Constant
; R( -- )
; Port B Data Register
VE_PORTB:
.dw $ff05
.db "PORTB",0
.dw VE_HEAD
.set VE_HEAD=VE_PORTB
XT_PORTB:
.dw PFA_DOVARIABLE
PFA_PORTB:
.dw 37
; ( -- addr ) System Constant
; R( -- )
; Port B Data Direction Register
VE_DDRB:
.dw $ff04
.db "DDRB"
.dw VE_HEAD
.set VE_HEAD=VE_DDRB
XT_DDRB:
.dw PFA_DOVARIABLE
PFA_DDRB:
.dw 36
; ( -- addr ) System Constant
; R( -- )
; Port B Input Pins
VE_PINB:
.dw $ff04
.db "PINB"
.dw VE_HEAD
.set VE_HEAD=VE_PINB
XT_PINB:
.dw PFA_DOVARIABLE
PFA_PINB:
.dw 35
.endif
.if WANT_PORTC == 1
; ( -- addr ) System Constant
; R( -- )
; Port C Data Register
VE_PORTC:
.dw $ff05
.db "PORTC",0
.dw VE_HEAD
.set VE_HEAD=VE_PORTC
XT_PORTC:
.dw PFA_DOVARIABLE
PFA_PORTC:
.dw 40
; ( -- addr ) System Constant
; R( -- )
; Port C Data Direction Register
VE_DDRC:
.dw $ff04
.db "DDRC"
.dw VE_HEAD
.set VE_HEAD=VE_DDRC
XT_DDRC:
.dw PFA_DOVARIABLE
PFA_DDRC:
.dw 39
; ( -- addr ) System Constant
; R( -- )
; Port C Input Pins
VE_PINC:
.dw $ff04
.db "PINC"
.dw VE_HEAD
.set VE_HEAD=VE_PINC
XT_PINC:
.dw PFA_DOVARIABLE
PFA_PINC:
.dw 38
.endif
.if WANT_PORTD == 1
; ( -- addr ) System Constant
; R( -- )
; Port D Data Register
VE_PORTD:
.dw $ff05
.db "PORTD",0
.dw VE_HEAD
.set VE_HEAD=VE_PORTD
XT_PORTD:
.dw PFA_DOVARIABLE
PFA_PORTD:
.dw 43
; ( -- addr ) System Constant
; R( -- )
; Port D Data Direction Register
VE_DDRD:
.dw $ff04
.db "DDRD"
.dw VE_HEAD
.set VE_HEAD=VE_DDRD
XT_DDRD:
.dw PFA_DOVARIABLE
PFA_DDRD:
.dw 42
; ( -- addr ) System Constant
; R( -- )
; Port D Input Pins
VE_PIND:
.dw $ff04
.db "PIND"
.dw VE_HEAD
.set VE_HEAD=VE_PIND
XT_PIND:
.dw PFA_DOVARIABLE
PFA_PIND:
.dw 41
.endif
.if WANT_TIMER_COUNTER_0 == 1
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter0 Output Compare Register
VE_OCR0B:
.dw $ff05
.db "OCR0B",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR0B
XT_OCR0B:
.dw PFA_DOVARIABLE
PFA_OCR0B:
.dw 72
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter0 Output Compare Register
VE_OCR0A:
.dw $ff05
.db "OCR0A",0
.dw VE_HEAD
.set VE_HEAD=VE_OCR0A
XT_OCR0A:
.dw PFA_DOVARIABLE
PFA_OCR0A:
.dw 71
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter0
VE_TCNT0:
.dw $ff05
.db "TCNT0",0
.dw VE_HEAD
.set VE_HEAD=VE_TCNT0
XT_TCNT0:
.dw PFA_DOVARIABLE
PFA_TCNT0:
.dw 70
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Control Register B
VE_TCCR0B:
.dw $ff06
.db "TCCR0B"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR0B
XT_TCCR0B:
.dw PFA_DOVARIABLE
PFA_TCCR0B:
.dw 69
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter Control Register A
VE_TCCR0A:
.dw $ff06
.db "TCCR0A"
.dw VE_HEAD
.set VE_HEAD=VE_TCCR0A
XT_TCCR0A:
.dw PFA_DOVARIABLE
PFA_TCCR0A:
.dw 68
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter0 Interrupt Mask Register
VE_TIMSK0:
.dw $ff06
.db "TIMSK0"
.dw VE_HEAD
.set VE_HEAD=VE_TIMSK0
XT_TIMSK0:
.dw PFA_DOVARIABLE
PFA_TIMSK0:
.dw 110
; ( -- addr ) System Constant
; R( -- )
; Timer/Counter0 Interrupt Flag register
VE_TIFR0:
.dw $ff05
.db "TIFR0",0
.dw VE_HEAD
.set VE_HEAD=VE_TIFR0
XT_TIFR0:
.dw PFA_DOVARIABLE
PFA_TIFR0:
.dw 53
.endif
.if WANT_EXTERNAL_INTERRUPT == 1
; ( -- addr ) System Constant
; R( -- )
; External Interrupt Control Register
VE_EICRA:
.dw $ff05
.db "EICRA",0
.dw VE_HEAD
.set VE_HEAD=VE_EICRA
XT_EICRA:
.dw PFA_DOVARIABLE
PFA_EICRA:
.dw 105
; ( -- addr ) System Constant
; R( -- )
; External Interrupt Mask Register
VE_EIMSK:
.dw $ff05
.db "EIMSK",0
.dw VE_HEAD
.set VE_HEAD=VE_EIMSK
XT_EIMSK:
.dw PFA_DOVARIABLE
PFA_EIMSK:
.dw 61
; ( -- addr ) System Constant
; R( -- )
; External Interrupt Flag Register
VE_EIFR:
.dw $ff04
.db "EIFR"
.dw VE_HEAD
.set VE_HEAD=VE_EIFR
XT_EIFR:
.dw PFA_DOVARIABLE
PFA_EIFR:
.dw 60
; ( -- addr ) System Constant
; R( -- )
; Pin Change Interrupt Control Register
VE_PCICR:
.dw $ff05
.db "PCICR",0
.dw VE_HEAD
.set VE_HEAD=VE_PCICR
XT_PCICR:
.dw PFA_DOVARIABLE
PFA_PCICR:
.dw 104
; ( -- addr ) System Constant
; R( -- )
; Pin Change Mask Register 2
VE_PCMSK2:
.dw $ff06
.db "PCMSK2"
.dw VE_HEAD
.set VE_HEAD=VE_PCMSK2
XT_PCMSK2:
.dw PFA_DOVARIABLE
PFA_PCMSK2:
.dw 109
; ( -- addr ) System Constant
; R( -- )
; Pin Change Mask Register 1
VE_PCMSK1:
.dw $ff06
.db "PCMSK1"
.dw VE_HEAD
.set VE_HEAD=VE_PCMSK1
XT_PCMSK1:
.dw PFA_DOVARIABLE
PFA_PCMSK1:
.dw 108
; ( -- addr ) System Constant
; R( -- )
; Pin Change Mask Register 0
VE_PCMSK0:
.dw $ff06
.db "PCMSK0"
.dw VE_HEAD
.set VE_HEAD=VE_PCMSK0
XT_PCMSK0:
.dw PFA_DOVARIABLE
PFA_PCMSK0:
.dw 107
; ( -- addr ) System Constant
; R( -- )
; Pin Change Interrupt Flag Register
VE_PCIFR:
.dw $ff05
.db "PCIFR",0
.dw VE_HEAD
.set VE_HEAD=VE_PCIFR
XT_PCIFR:
.dw PFA_DOVARIABLE
PFA_PCIFR:
.dw 59
.endif
.if WANT_SPI == 1
; ( -- addr ) System Constant
; R( -- )
; SPI Data Register
VE_SPDR:
.dw $ff04
.db "SPDR"
.dw VE_HEAD
.set VE_HEAD=VE_SPDR
XT_SPDR:
.dw PFA_DOVARIABLE
PFA_SPDR:
.dw 78
; ( -- addr ) System Constant
; R( -- )
; SPI Status Register
VE_SPSR:
.dw $ff04
.db "SPSR"
.dw VE_HEAD
.set VE_HEAD=VE_SPSR
XT_SPSR:
.dw PFA_DOVARIABLE
PFA_SPSR:
.dw 77
; ( -- addr ) System Constant
; R( -- )
; SPI Control Register
VE_SPCR:
.dw $ff04
.db "SPCR"
.dw VE_HEAD
.set VE_HEAD=VE_SPCR
XT_SPCR:
.dw PFA_DOVARIABLE
PFA_SPCR:
.dw 76
.endif
.if WANT_WATCHDOG == 1
; ( -- addr ) System Constant
; R( -- )
; Watchdog Timer Control Register
VE_WDTCSR:
.dw $ff06
.db "WDTCSR"
.dw VE_HEAD
.set VE_HEAD=VE_WDTCSR
XT_WDTCSR:
.dw PFA_DOVARIABLE
PFA_WDTCSR:
.dw 96
.endif
.if WANT_CPU == 1
; ( -- addr ) System Constant
; R( -- )
; Power Reduction Register
VE_PRR:
.dw $ff03
.db "PRR",0
.dw VE_HEAD
.set VE_HEAD=VE_PRR
XT_PRR:
.dw PFA_DOVARIABLE
PFA_PRR:
.dw 100
; ( -- addr ) System Constant
; R( -- )
; Oscillator Calibration Value
VE_OSCCAL:
.dw $ff06
.db "OSCCAL"
.dw VE_HEAD
.set VE_HEAD=VE_OSCCAL
XT_OSCCAL:
.dw PFA_DOVARIABLE
PFA_OSCCAL:
.dw 102
; ( -- addr ) System Constant
; R( -- )
; Clock Prescale Register
VE_CLKPR:
.dw $ff05
.db "CLKPR",0
.dw VE_HEAD
.set VE_HEAD=VE_CLKPR
XT_CLKPR:
.dw PFA_DOVARIABLE
PFA_CLKPR:
.dw 97
; ( -- addr ) System Constant
; R( -- )
; Status Register
VE_SREG:
.dw $ff04
.db "SREG"
.dw VE_HEAD
.set VE_HEAD=VE_SREG
XT_SREG:
.dw PFA_DOVARIABLE
PFA_SREG:
.dw 95
; ( -- addr ) System Constant
; R( -- )
; Stack Pointer
VE_SP:
.dw $ff02
.db "SP"
.dw VE_HEAD
.set VE_HEAD=VE_SP
XT_SP:
.dw PFA_DOVARIABLE
PFA_SP:
.dw 93
; ( -- addr ) System Constant
; R( -- )
; Store Program Memory Control and Status Register
VE_SPMCSR:
.dw $ff06
.db "SPMCSR"
.dw VE_HEAD
.set VE_HEAD=VE_SPMCSR
XT_SPMCSR:
.dw PFA_DOVARIABLE
PFA_SPMCSR:
.dw 87
; ( -- addr ) System Constant
; R( -- )
; MCU Control Register
VE_MCUCR:
.dw $ff05
.db "MCUCR",0
.dw VE_HEAD
.set VE_HEAD=VE_MCUCR
XT_MCUCR:
.dw PFA_DOVARIABLE
PFA_MCUCR:
.dw 85
; ( -- addr ) System Constant
; R( -- )
; MCU Status Register
VE_MCUSR:
.dw $ff05
.db "MCUSR",0
.dw VE_HEAD
.set VE_HEAD=VE_MCUSR
XT_MCUSR:
.dw PFA_DOVARIABLE
PFA_MCUSR:
.dw 84
; ( -- addr ) System Constant
; R( -- )
; Sleep Mode Control Register
VE_SMCR:
.dw $ff04
.db "SMCR"
.dw VE_HEAD
.set VE_HEAD=VE_SMCR
XT_SMCR:
.dw PFA_DOVARIABLE
PFA_SMCR:
.dw 83
; ( -- addr ) System Constant
; R( -- )
; General Purpose I/O Register 2
VE_GPIOR2:
.dw $ff06
.db "GPIOR2"
.dw VE_HEAD
.set VE_HEAD=VE_GPIOR2
XT_GPIOR2:
.dw PFA_DOVARIABLE
PFA_GPIOR2:
.dw 75
; ( -- addr ) System Constant
; R( -- )
; General Purpose I/O Register 1
VE_GPIOR1:
.dw $ff06
.db "GPIOR1"
.dw VE_HEAD
.set VE_HEAD=VE_GPIOR1
XT_GPIOR1:
.dw PFA_DOVARIABLE
PFA_GPIOR1:
.dw 74
; ( -- addr ) System Constant
; R( -- )
; General Purpose I/O Register 0
VE_GPIOR0:
.dw $ff06
.db "GPIOR0"
.dw VE_HEAD
.set VE_HEAD=VE_GPIOR0
XT_GPIOR0:
.dw PFA_DOVARIABLE
PFA_GPIOR0:
.dw 62
.endif
.if WANT_EEPROM == 1
; ( -- addr ) System Constant
; R( -- )
; EEPROM Address Register Bytes
VE_EEAR:
.dw $ff04
.db "EEAR"
.dw VE_HEAD
.set VE_HEAD=VE_EEAR
XT_EEAR:
.dw PFA_DOVARIABLE
PFA_EEAR:
.dw 65
; ( -- addr ) System Constant
; R( -- )
; EEPROM Data Register
VE_EEDR:
.dw $ff04
.db "EEDR"
.dw VE_HEAD
.set VE_HEAD=VE_EEDR
XT_EEDR:
.dw PFA_DOVARIABLE
PFA_EEDR:
.dw 64
; ( -- addr ) System Constant
; R( -- )
; EEPROM Control Register
VE_EECR:
.dw $ff04
.db "EECR"
.dw VE_HEAD
.set VE_HEAD=VE_EECR
XT_EECR:
.dw PFA_DOVARIABLE
PFA_EECR:
.dw 63
.endif