
Chapter 15. Registers Page 15-7
The firmware can do this either by accessing the EP2FIFOIRQ register (at 0xE651) and writing a 1
to bit 1, or simply by writing any value to INT4CLR. The first method requires the use of the data
pointer, which must be saved and restored along with the accumulator in an ISR. The second
method is much faster and does not require saving the data pointer, so it is preferred.
The bits in EP2468STAT correspond to Endpoint Status bits in the FX2 register file, as follows:
The Endpoint status bits represent the Packet Status.
EP2468STAT Endpoint(s) 2,4,6,8 Status Flags SFR 0xAA
b7 b6 b5 b4 b3 b2 b1 b0
EP8F EP8E EP6F EP6E EP4F EP4E EP2F EP2E
R R R R R R R R
0 1 0 1 1 0 1 0
Table 15-2. SFR and FX2 Register File Correspondences
Bit EPSTAT SFR FX2 Register.Bit
FX2 Register
File address
7 EP8 Full flag EP8CS.3 E6A6
6 EP8 Empty flag EP8CS.2 E6A6
5 EP6 Full flag EP6CS.3 E6A5
4 EP6 Empty flag EP6CS.2 E6A5
3 EP4 Full flag EP4CS.3 E6A4
2 EP4 Empty flag EP4CS.2 E6A4
1 EP2 Full flag EP2CS.3 E6A3
0 EP2 Empty flag EP2CS.2 E6A3
Kommentare zu diesen Handbüchern