Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Data Sheet
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
Product codes
ATSAMD21-XPRO
799
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
31.8.5.2 Host Start-of-Frame Control Register
Name:
HSOFC
Offset:
0x0A
Reset:
0x0000
Property:
Write-Protected
During a very short period just before transmitting a Start-of-Frame, this register is locked.Thus, after writing, it is
recommended to check the register value, and write this register again if necessary. This register is cleared upon
a USB reset.
recommended to check the register value, and write this register again if necessary. This register is cleared upon
a USB reset.
z
Bit 7 – FLENCE: Frame Length Control Enable
0: The internal frame length down counter is loaded with default value as shown below in the table.
1: The internal frame length down counter is loaded with FLENC[3:0] value at the beginning of a frame.
0: The internal frame length down counter is loaded with default value as shown below in the table.
1: The internal frame length down counter is loaded with FLENC[3:0] value at the beginning of a frame.
z
Bits 3:0 – FLENC: Frame Length Control
These bits define the signed value of the 4-bit FLENC that is added to the Internal Frame Length when FLENCE is
one.The internal Frame length is the top value of the frame counter when FLENCE is zero.
These bits define the signed value of the 4-bit FLENC that is added to the Internal Frame Length when FLENCE is
one.The internal Frame length is the top value of the frame counter when FLENCE is zero.
Bit
7
6
5
4
3
2
1
0
FLENCE
FLENC[3:0]
Access
R/W
R
R
R
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
0
Table 31-19. Internal Frame Length Down-Counter
FLENCE
Frame Timing
Internal Frame Length Down-Counter Load Value
0
Internal Frame Length
(Low Speed, Full Speed)
(Low Speed, Full Speed)
11999 (gives 1 ms frame rate at 12Mhz)
1
Beginning of Frame
FLENC[3:0]
Internal Frame Length with
Frame correction
Frame correction
The signed value from FLENC[3:0] is added to the internal Frame
length (see FLENCE = 0) at all speeds.
length (see FLENCE = 0) at all speeds.