Guys,
Need a bit of guidance. I have a DS1307 RTC connected to an 18F4580. RC4 = SDA and RC3 = SCL and everything works well.
I'm looking at getting an add-on for the EasyPIC5 board to add serial Ethernet, however it uses SPI and the schematic for the board (using 74HCT245 and ENC28J60) suggests connecting MISO to RC4 and SCK to RC3. The other connections (RC0, RC1 and RC5) are all free on the PIC.
Is SCK and SCL the same thing ? and how would I connect / configure both devices to function?
Whilst the range of add-on boards are supported by Mikrobasic library's - Does PBP suport SPI in the same way ? For Example here is the example code given for setting up the IP and MAC address
Sorry for all the questions, but then that's what these forums are forCode:myMacAddr[0] = 0x00 myMacAddr[1] = 0x14 myMacAddr[2] = 0xA5 myMacAddr[3] = 0x76 myMacAddr[4] = 0x19 myMacAddr[5] = 0x3F myIpAddr[0] = 192 myIpAddr[1] = 168 myIpAddr[2] = 20 myIpAddr[3] = 60 '* '* starts ENC28J60 with : '* reset bit on RC0 '* CS bit on RC1 '* my MAC & IP address '* full duplex '* SPI_init() SPI_Ethernet_Init(PORTC, 0, PORTC, 1, myMacAddr, myIpAddr, SPI_Ethernet_FULLDUPLEX)![]()




Bookmarks