sbit NICE = CTRL_PORT^2; // A7, usado para activar placa de red
#endif
-// Configuración de paǵinas de buffers
-#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 6 * 256 = 1536 bytes
-#define RX_PAGE_START 0x46 // 0x4600 Rx buffer: 26 * 256 = 6656 bytes
-#define RX_PAGE_STOP 0x60 // 0x6000
-
// Límites de tamaño de paquete
#define MIN_PACKET_LEN 60u // Mínimo permitido por 802.3
#define MAX_PACKET_LEN 128u // Mínimo permitido por nuestra escasa memoria =)
+// Configuración de paǵinas de buffers
+#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 256 bytes (usamos 128)
+#define RX_PAGE_START 0x46 // 0x4600 Rx buffer: 31 * 256 = 7936 bytes
+#define RX_PAGE_STOP 0x60 // 0x6000
+
// Register base address
#define REG_BASE 0x0000 // Hardwired to 0x0300
// Each enable bit correspons with an interrupt flag in ISR
// Page 1 read/write registers.
+#define PAR_BASE REG_BASE + 0x01 // Physical address register base address
#define PAR0 REG_BASE + 0x01 // Physical address register 0
#define PAR1 REG_BASE + 0x02 // Physical address register 1
#define PAR2 REG_BASE + 0x03 // Physical address register 2