-
Notifications
You must be signed in to change notification settings - Fork 1
/
w06_criticalRegion.svd
3294 lines (3294 loc) · 126 KB
/
w06_criticalRegion.svd
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
<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_0.xsd">
<name>CY8C5888LTQ_LP097</name>
<version>0.1</version>
<description>CY8C58LP</description>
<addressUnitBits>8</addressUnitBits>
<width>32</width>
<peripherals>
<peripheral>
<name>USBUART</name>
<description>USBFS</description>
<baseAddress>0x0</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x0</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>CR0</name>
<description>USB Control 0 Register</description>
<addressOffset>0x40006008</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DEVICE_ADDRESS</name>
<description>These bits specify the USB device address to which the SIE will respond. This address must be set by firmware and is specified by the USB Host with a SET ADDRESS command during USB enumeration. This value must be programmed by firmware when assigned during enumeration. It is not set automatically by the hardware.</description>
<lsb>0</lsb>
<msb>6</msb>
<access>read-only</access>
</field>
<field>
<name>USB_ENABLE</name>
<description>This bit enables the device to respond to USB traffic.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>Disabled</name>
<description>Block responds to USB traffic.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>Enabled</name>
<description>Block does not respond to USB traffic.</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
</fields>
</register>
<register>
<name>CR1</name>
<description>USB Control 1 Register</description>
<addressOffset>0x40006009</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>REG_ENABLE</name>
<description>This bit controls the operation of the internal USB regulator. For applications with supply voltages in the 5V range this bit is set high to enable the internal regulator. For device supply voltage in the 3.3V range this bit is cleared to connect the transceiver directly to the supply.</description>
<lsb>0</lsb>
<msb>0</msb>
<access>read-only</access>
<enumeratedValues>
<enumeratedValue>
<name>Disabled</name>
<description>Regulator for 5V is disabled.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>Enabled</name>
<description>Regulator for 5V is enabled.</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>ENABLE_LOCK</name>
<description>This bit is set to turn on the automatic frequency locking of the internal oscillator to USB traffic. Unless an external clock is being provided this bit should remain set for proper USB operation.</description>
<lsb>1</lsb>
<msb>1</msb>
<access>read-write</access>
</field>
<field>
<name>BUS_ACTIVITY</name>
<description>The Bus Activity bit is a stickybit that detects any non-idle USB event that has occurred on the USB bus. Once set to High by the SIE to indicate the bus activity this bit retains its logical High value until firmware clears it.</description>
<lsb>2</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>TRIM_OFFSET_MSB</name>
<description>This bit enables trim bit[7].</description>
<lsb>3</lsb>
<msb>3</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP_INT_EN</name>
<description>USB SIE Data Endpoints Interrupt Enable Register</description>
<addressOffset>0x4000600A</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>EP1_INTR_EN</name>
<description>Enables interrupt for EP1.</description>
<lsb>0</lsb>
<msb>0</msb>
<access>read-write</access>
</field>
<field>
<name>EP2_INTR_EN</name>
<description>Enables interrupt for EP2.</description>
<lsb>1</lsb>
<msb>1</msb>
<access>read-write</access>
</field>
<field>
<name>EP3_INTR_EN</name>
<description>Enables interrupt for EP3.</description>
<lsb>2</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>EP4_INTR_EN</name>
<description>Enables interrupt for EP4.</description>
<lsb>3</lsb>
<msb>3</msb>
<access>read-write</access>
</field>
<field>
<name>EP5_INTR_EN</name>
<description>Enables interrupt for EP5.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>EP6_INTR_EN</name>
<description>Enables interrupt for EP6.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>EP7_INTR_EN</name>
<description>Enables interrupt for EP7.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>EP8_INTR_EN</name>
<description>Enables interrupt for EP8.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP_INT_SR</name>
<description>SIE Data Endpoint Interrupt Status Register</description>
<addressOffset>0x4000600B</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>EP1_INTR</name>
<description>Interrupt status for EP1.</description>
<lsb>0</lsb>
<msb>0</msb>
<access>read-write</access>
</field>
<field>
<name>EP2_INTR</name>
<description>Interrupt status for EP2.</description>
<lsb>1</lsb>
<msb>1</msb>
<access>read-write</access>
</field>
<field>
<name>EP3_INTR</name>
<description>Interrupt status for EP3.</description>
<lsb>2</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>EP4_INTR</name>
<description>Interrupt status for EP4.</description>
<lsb>3</lsb>
<msb>3</msb>
<access>read-write</access>
</field>
<field>
<name>EP5_INTR</name>
<description>Interrupt status for EP5.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>EP6_INTR</name>
<description>Interrupt status for EP6.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>EP7_INTR</name>
<description>Interrupt status for EP7.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>EP8_INTR</name>
<description>Interrupt status for EP8.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP1_CNT0</name>
<description>SIE Endpoint 1 Count0 Register</description>
<addressOffset>0x4000600C</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT_MSB</name>
<description>These bits are the 3 MSb bits of an 11-bit counter. The LSb are the Data Count[7:0] bits of the CNT1 register. Refer to the CNT1 register for more information.</description>
<lsb>0</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_VALID</name>
<description>DATA_ERROR - 0, DATA_VALID - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_TOGGLE</name>
<description>This bit selects the DATA packet's toggle state. For IN transactions firmware must set this bit to the expected state. For OUT transactions the hardware sets this bit to the state of the received Data Toggle bit.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP1_CNT1</name>
<description>SIE Endpoint 1 Count1 Register</description>
<addressOffset>0x4000600D</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT</name>
<description>These bits are the 8 LSb of a 11-bit counter. The 3 MSb bits are in the CNT0 register. The 11-bit count indicates the number of data bytes in a transaction.</description>
<lsb>0</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP1_CR0</name>
<description>SIE Endpoint 1 Control Register</description>
<addressOffset>0x4000600E</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>MODE</name>
<description>The mode controls how the USB SIE responds to traffic and how the USB SIE changes the mode of that endpoint as a result of host packets to the endpoint.</description>
<lsb>0</lsb>
<msb>3</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DISABLE</name>
<description>Ignore all USB traffic to this endpoint.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_INOUT</name>
<description>SETUP: Accept, IN: NAK, OUT: NAK.</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_OUT_ONLY</name>
<description>SETUP: Accept, IN: STALL, OUT: ACK 0B tokens, NAK others.</description>
<value>2</value>
</enumeratedValue>
<enumeratedValue>
<name>STALL_INOUT</name>
<description>SETUP: Accept, IN: STALL, OUT: STALL.</description>
<value>3</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept Isochronous OUT token.</description>
<value>5</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_IN_ONLY</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Stall.</description>
<value>6</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_IN</name>
<description>SETUP: Ignore, IN: Accept Isochronous IN token, OUT: Ignore.</description>
<value>7</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: NAK.</description>
<value>8</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept data and ACK if STALL = 0, STALL otherwise. Change to MODE=8 after one succesfull OUT token.</description>
<value>9</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT_STATUS_IN</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Accept data.</description>
<value>11</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_IN</name>
<description>SETUP: Ignore, IN: NAK, OUT: Ignore.</description>
<value>12</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN</name>
<description>SETUP: Ignore, IN: Respond to IN with data if STALL=0, STALL otherwise, OUT: Ignore</description>
<value>13</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN_STATUS_OUT</name>
<description>SETUP: Accept, IN: Respond to IN with data, OUT: ACK 0B tokens, NAK others.</description>
<value>15</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>ACKED_TXN</name>
<description>ACKED_NO - 0, ACKED_YES - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>NAK_INT_EN</name>
<description>When set this bit causes an endpoint interrupt to be generated even when a transfer completes with a NAK.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>ERR_IN_TXN</name>
<description>The Error in transaction bit is set whenever an error is detected.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>STALL</name>
<description>When this bit is set the SIE stalls an OUT packet if the Mode bits are set to ACK-OUT. The SIE stalls an IN packet if the mode bits are set to ACK-IN. This bit must be clear for all other modes.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>USBIO_CR0</name>
<description>USBIO Control 0 Register</description>
<addressOffset>0x40006010</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>RD</name>
<description>Received Data. This read only bit gives the state of the USB differential receiver.</description>
<lsb>0</lsb>
<msb>0</msb>
<access>read-only</access>
<enumeratedValues>
<enumeratedValue>
<name>DIFF_LOW</name>
<description>D+ less than D- (K state), or D+=D-=0 (SE0).</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>DIFF_HIGH</name>
<description>D+ greater than D- (J state).</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>TD</name>
<description>Transmit Data. Transmit a USB J or K state on the USB bus. No effect if TEN=0 or TSE0=1.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DIFF_K</name>
<description>Force USB K state (D+ is low D- is high).</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>DIFF_J</name>
<description>Force USB J state (D+ is high D- is low).</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>TSE0</name>
<description>Transmit Single-Ended Zero. SE0: both D+ and D- low. No effect if TEN=0.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>TEN</name>
<description>USB Transmit Enable. This is used to manually transmit on the D+ and D- pins. Normally this bit should be cleared to allow the internal SIE to drive the pins. The most common reason for manually transmitting is to force a resume state on the bus.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>USBIO_CR1</name>
<description>USBIO Control 1 Register</description>
<addressOffset>0x40006012</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DMO</name>
<description>This read only bit gives the state of the D- pin.</description>
<lsb>0</lsb>
<msb>0</msb>
<access>read-only</access>
</field>
<field>
<name>DPO</name>
<description>This read only bit gives the state of the D+ pin.</description>
<lsb>1</lsb>
<msb>1</msb>
<access>read-only</access>
</field>
<field>
<name>USBPUEN</name>
<description>This bit enables the connection of the internal 1.5 k pull up resistor on the D+ pin.</description>
<lsb>2</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>IOMODE</name>
<description>This bit allows the D+ and D- pins to be configured for either USB mode or bit-banged modes. If this bit is set the DMI and DPI bits are used to drive the D- and D+ pins.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>Bit_banged</name>
<description>Bit-banged mode for Dm and Dp.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>USB</name>
<description>USB block controls Dm and Dp.</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
</fields>
</register>
<register>
<name>SIE_EP2_CNT0</name>
<description>SIE Endpoint 1 Count0 Register</description>
<addressOffset>0x4000601C</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT_MSB</name>
<description>These bits are the 3 MSb bits of an 11-bit counter. The LSb are the Data Count[7:0] bits of the CNT1 register. Refer to the CNT1 register for more information.</description>
<lsb>0</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_VALID</name>
<description>DATA_ERROR - 0, DATA_VALID - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_TOGGLE</name>
<description>This bit selects the DATA packet's toggle state. For IN transactions firmware must set this bit to the expected state. For OUT transactions the hardware sets this bit to the state of the received Data Toggle bit.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP2_CNT1</name>
<description>SIE Endpoint 1 Count1 Register</description>
<addressOffset>0x4000601D</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT</name>
<description>These bits are the 8 LSb of a 11-bit counter. The 3 MSb bits are in the CNT0 register. The 11-bit count indicates the number of data bytes in a transaction.</description>
<lsb>0</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP2_CR0</name>
<description>SIE Endpoint 1 Control Register</description>
<addressOffset>0x4000601E</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>MODE</name>
<description>The mode controls how the USB SIE responds to traffic and how the USB SIE changes the mode of that endpoint as a result of host packets to the endpoint.</description>
<lsb>0</lsb>
<msb>3</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DISABLE</name>
<description>Ignore all USB traffic to this endpoint.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_INOUT</name>
<description>SETUP: Accept, IN: NAK, OUT: NAK.</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_OUT_ONLY</name>
<description>SETUP: Accept, IN: STALL, OUT: ACK 0B tokens, NAK others.</description>
<value>2</value>
</enumeratedValue>
<enumeratedValue>
<name>STALL_INOUT</name>
<description>SETUP: Accept, IN: STALL, OUT: STALL.</description>
<value>3</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept Isochronous OUT token.</description>
<value>5</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_IN_ONLY</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Stall.</description>
<value>6</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_IN</name>
<description>SETUP: Ignore, IN: Accept Isochronous IN token, OUT: Ignore.</description>
<value>7</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: NAK.</description>
<value>8</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept data and ACK if STALL = 0, STALL otherwise. Change to MODE=8 after one succesfull OUT token.</description>
<value>9</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT_STATUS_IN</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Accept data.</description>
<value>11</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_IN</name>
<description>SETUP: Ignore, IN: NAK, OUT: Ignore.</description>
<value>12</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN</name>
<description>SETUP: Ignore, IN: Respond to IN with data if STALL=0, STALL otherwise, OUT: Ignore</description>
<value>13</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN_STATUS_OUT</name>
<description>SETUP: Accept, IN: Respond to IN with data, OUT: ACK 0B tokens, NAK others.</description>
<value>15</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>ACKED_TXN</name>
<description>ACKED_NO - 0, ACKED_YES - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>NAK_INT_EN</name>
<description>When set this bit causes an endpoint interrupt to be generated even when a transfer completes with a NAK.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>ERR_IN_TXN</name>
<description>The Error in transaction bit is set whenever an error is detected.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>STALL</name>
<description>When this bit is set the SIE stalls an OUT packet if the Mode bits are set to ACK-OUT. The SIE stalls an IN packet if the mode bits are set to ACK-IN. This bit must be clear for all other modes.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>EP0_CR</name>
<description>Endpoint0 control Register</description>
<addressOffset>0x40006028</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>MODE</name>
<description>The mode controls how the USB SIE responds to traffic and how the USB SIE changes the mode of that endpoint as a result of host packets to the endpoint.</description>
<lsb>0</lsb>
<msb>3</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DISABLE</name>
<description>Ignore all USB traffic to this endpoint.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_INOUT</name>
<description>SETUP: Accept, IN: NAK, OUT: NAK.</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_OUT_ONLY</name>
<description>SETUP: Accept, IN: STALL, OUT: ACK 0B tokens, NAK others.</description>
<value>2</value>
</enumeratedValue>
<enumeratedValue>
<name>STALL_INOUT</name>
<description>SETUP: Accept, IN: STALL, OUT: STALL.</description>
<value>3</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept Isochronous OUT token.</description>
<value>5</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_IN_ONLY</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Stall.</description>
<value>6</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_IN</name>
<description>SETUP: Ignore, IN: Accept Isochronous IN token, OUT: Ignore.</description>
<value>7</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: NAK.</description>
<value>8</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept data and ACK if STALL = 0, STALL otherwise. Change to MODE=8 after one succesfull OUT token.</description>
<value>9</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT_STATUS_IN</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Accept data.</description>
<value>11</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_IN</name>
<description>SETUP: Ignore, IN: NAK, OUT: Ignore.</description>
<value>12</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN</name>
<description>SETUP: Ignore, IN: Respond to IN with data if STALL=0, STALL otherwise, OUT: Ignore</description>
<value>13</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN_STATUS_OUT</name>
<description>SETUP: Accept, IN: Respond to IN with data, OUT: ACK 0B tokens, NAK others.</description>
<value>15</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>ACKED_TXN</name>
<description>ACKED_NO - 0, ACKED_YES - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>NAK_INT_EN</name>
<description>When set this bit causes an endpoint interrupt to be generated even when a transfer completes with a NAK.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>ERR_IN_TXN</name>
<description>The Error in transaction bit is set whenever an error is detected.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>STALL</name>
<description>When this bit is set the SIE stalls an OUT packet if the Mode bits are set to ACK-OUT. The SIE stalls an IN packet if the mode bits are set to ACK-IN. This bit must be clear for all other modes.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>EP0_CNT</name>
<description>Endpoint0 control Register</description>
<addressOffset>0x40006029</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>BYTE_COUNT</name>
<description>These bits indicate the number of data bytes in a transaction. For IN transactions firmware loads the count with the number of bytes to be transmitted to the host from the endpoint FIFO. Valid values are 0 to 8. For OUT or SETUP transactions the count is updated by hardware to the number of data bytes received plus two for the CRC bytes. Valid values are 2 to 10.</description>
<lsb>0</lsb>
<msb>3</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_VALID</name>
<description>This bit is used for OUT/SETUP transactions only and is read only. It is cleared to '0' if CRC bit stuffing errors or PID errors occur. This bit does not update for some endpoint mode settings.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DATA_ERROR</name>
<description>No ACK'd transactions since bit was last cleared.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>DATA_VALID</name>
<description>Indicates a transaction ended with an ACK.</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>DATA_TOGGLE</name>
<description>This bit selects the DATA packet's toggle state. For IN transactions firmware must set this bit to the expected state. For OUT transactions the hardware sets this bit to the state of the received Data Toggle bit.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP3_CNT0</name>
<description>SIE Endpoint 1 Count0 Register</description>
<addressOffset>0x4000602C</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT_MSB</name>
<description>These bits are the 3 MSb bits of an 11-bit counter. The LSb are the Data Count[7:0] bits of the CNT1 register. Refer to the CNT1 register for more information.</description>
<lsb>0</lsb>
<msb>2</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_VALID</name>
<description>DATA_ERROR - 0, DATA_VALID - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>DATA_TOGGLE</name>
<description>This bit selects the DATA packet's toggle state. For IN transactions firmware must set this bit to the expected state. For OUT transactions the hardware sets this bit to the state of the received Data Toggle bit.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP3_CNT1</name>
<description>SIE Endpoint 1 Count1 Register</description>
<addressOffset>0x4000602D</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>DATA_COUNT</name>
<description>These bits are the 8 LSb of a 11-bit counter. The 3 MSb bits are in the CNT0 register. The 11-bit count indicates the number of data bytes in a transaction.</description>
<lsb>0</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>
<register>
<name>SIE_EP3_CR0</name>
<description>SIE Endpoint 1 Control Register</description>
<addressOffset>0x4000602E</addressOffset>
<size>8</size>
<access>read-write</access>
<resetValue>0</resetValue>
<resetMask>0</resetMask>
<fields>
<field>
<name>MODE</name>
<description>The mode controls how the USB SIE responds to traffic and how the USB SIE changes the mode of that endpoint as a result of host packets to the endpoint.</description>
<lsb>0</lsb>
<msb>3</msb>
<access>read-write</access>
<enumeratedValues>
<enumeratedValue>
<name>DISABLE</name>
<description>Ignore all USB traffic to this endpoint.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_INOUT</name>
<description>SETUP: Accept, IN: NAK, OUT: NAK.</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_OUT_ONLY</name>
<description>SETUP: Accept, IN: STALL, OUT: ACK 0B tokens, NAK others.</description>
<value>2</value>
</enumeratedValue>
<enumeratedValue>
<name>STALL_INOUT</name>
<description>SETUP: Accept, IN: STALL, OUT: STALL.</description>
<value>3</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept Isochronous OUT token.</description>
<value>5</value>
</enumeratedValue>
<enumeratedValue>
<name>STATUS_IN_ONLY</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Stall.</description>
<value>6</value>
</enumeratedValue>
<enumeratedValue>
<name>ISO_IN</name>
<description>SETUP: Ignore, IN: Accept Isochronous IN token, OUT: Ignore.</description>
<value>7</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: NAK.</description>
<value>8</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT</name>
<description>SETUP: Ignore, IN: Ignore, OUT: Accept data and ACK if STALL = 0, STALL otherwise. Change to MODE=8 after one succesfull OUT token.</description>
<value>9</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_OUT_STATUS_IN</name>
<description>SETUP: Accept, IN: Respond with 0B data, OUT: Accept data.</description>
<value>11</value>
</enumeratedValue>
<enumeratedValue>
<name>NAK_IN</name>
<description>SETUP: Ignore, IN: NAK, OUT: Ignore.</description>
<value>12</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN</name>
<description>SETUP: Ignore, IN: Respond to IN with data if STALL=0, STALL otherwise, OUT: Ignore</description>
<value>13</value>
</enumeratedValue>
<enumeratedValue>
<name>ACK_IN_STATUS_OUT</name>
<description>SETUP: Accept, IN: Respond to IN with data, OUT: ACK 0B tokens, NAK others.</description>
<value>15</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>ACKED_TXN</name>
<description>ACKED_NO - 0, ACKED_YES - 1.</description>
<lsb>4</lsb>
<msb>4</msb>
<access>read-write</access>
</field>
<field>
<name>NAK_INT_EN</name>
<description>When set this bit causes an endpoint interrupt to be generated even when a transfer completes with a NAK.</description>
<lsb>5</lsb>
<msb>5</msb>
<access>read-write</access>
</field>
<field>
<name>ERR_IN_TXN</name>
<description>The Error in transaction bit is set whenever an error is detected.</description>
<lsb>6</lsb>
<msb>6</msb>
<access>read-write</access>
</field>
<field>
<name>STALL</name>
<description>When this bit is set the SIE stalls an OUT packet if the Mode bits are set to ACK-OUT. The SIE stalls an IN packet if the mode bits are set to ACK-IN. This bit must be clear for all other modes.</description>
<lsb>7</lsb>
<msb>7</msb>
<access>read-write</access>
</field>
</fields>
</register>