Mình có ý tưởng muốn dùng PIC để gởi message cho một nick Yahoo khác. Các bạn nghĩ sao nhỉ?
![Big Grin](http://dientuvietnam.net/forums/images/smilies/biggrin.gif)
50 Ohms/1% resistors are not standards. My solution is to put two 47 and 2.7 Ohms resistors in serial and to select them with an ohmmeter.
... ... #define Spi_Ethernet_HALFDUPLEX 0 #define Spi_Ethernet_FULLDUPLEX 1 #define ECON1 0x1f #define EREVID 0x12 unsigned char myMacAddr[6] = {0x00, 0x14, 0xA5, 0x76, 0x19, 0x3f} ; // my MAC address unsigned char myIpAddr[4] = {10, 0, 0, 10} ; // my IP address int rev; // Revision of ENC28j60 .... .... Spi_Init(); Spi_Ethernet_Init(&PORTB, 3, &PORTB, 2, myMacAddr, myIpAddr, Spi_Ethernet_FULLDUPLEX) ; // select ENC register bank 3 Spi_Ethernet_setBitReg(ECON1, 0b00000001) ; Spi_Ethernet_setBitReg(ECON1, 0b00000010) ; rev=Spi_Ethernet_readReg( EREVID) ; // select ENC register bank 0 Spi_Ethernet_clearBitReg(ECON1, 0b00000001) ; Spi_Ethernet_clearBitReg(ECON1, 0b00000010) ; ... ... ...
Comment