CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 14 matches
CCS Forum Index
Author Message
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Mon Dec 07, 2009 3:09 pm   Subject: spi_xfer() with wiznet Wiz812MJ
wow, after almost a month i finally have SPI working on the pic18. phewww.... the problem was really simple. I was using a hard-drive IDE cable to connect the wiznet to my breadboard coz it matched pe ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Sun Nov 29, 2009 12:24 am   Subject: spi_xfer() with wiznet Wiz812MJ
Hmm, never thought of it from that angle. I will try making a buffer myself and see if that helps, will let you know. Thanks for all your input, I really appreciate it.
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2009 11:36 pm   Subject: spi_xfer() with wiznet Wiz812MJ
Vdd shows 5V on a multimeter. And yes, cdc is working, I tried putting some random value on gar0 and it displayed the value.
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2009 11:22 pm   Subject: spi_xfer() with wiznet Wiz812MJ
Nope, the PIC's mounted on a prototype board and am using its power adapter to power it up.
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2009 10:17 pm   Subject: spi_xfer() with wiznet Wiz812MJ
I'm using USB instead of RS232 because of the shared UART and SPI pins. The code's basically the same as you had provided before, I made a couple of changes here and there but they didn't make any dif ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2009 8:27 pm   Subject: spi_xfer() with wiznet Wiz812MJ
I set up the connections on a PIC18F4455 proto board and I have done everything I could think of but I am still unable to make SPI connection work. I am using the code that PCM programmer had posted a ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Thu Nov 19, 2009 5:07 pm   Subject: spi_xfer() with wiznet Wiz812MJ
Hmm, I wasnt aware that you could remove that pin_select line and still use SS pin in code. However, still no results yet. I will set up a PIC18F4455 tomorrow and see if it works in that.
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Thu Nov 19, 2009 3:16 pm   Subject: spi_xfer() with wiznet Wiz812MJ

#pin_select SCK1OUT=PIN_B8
#pin_select SDI1=PIN_B10
#pin_select SDO1=PIN_B9
#pin_select SS1OUT=PIN_B11

PIC Wiznet
#17(RB8) J2:3
#18 J1:1
#21 J1:2
#22 J2:4
#23 ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Thu Nov 19, 2009 2:57 pm   Subject: spi_xfer() with wiznet Wiz812MJ
Thank you so much for your effort PCM programmer, but I hate to say that I am still not getting anything in the hyperterminal. I also tried putting the printf() statement inside while loop.

SPI_XMI ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Wed Nov 18, 2009 8:22 pm   Subject: spi_xfer() with wiznet Wiz812MJ
I had pasted some part of w5100_pic.h in the original post but here's a bit of it again:

#define COMMON_BASE 0x0000
//* Source MAC Register address
//*
#define SHAR0 (COMMON_BAS ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Wed Nov 18, 2009 7:02 pm   Subject: spi_xfer() with wiznet Wiz812MJ
SIPR0 is the IP register address on wiz812MJ. It's defined as 0x000F.
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Wed Nov 18, 2009 6:15 pm   Subject: still not working
I thought I had it working last weekend but I was mistaken. What I saw in the oscilloscope from SDO were just spikes separated by 2ms, or in other words, I'm seeing the pulse rise for one cycle(25us i ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Thu Nov 12, 2009 11:39 pm   Subject: spi_xfer() with wiznet Wiz812MJ
Thanx for ur reply PCM Programmer. I guess I'm still confused with hardware vs. software spi.
The pin layout on the datasheet doesn't show any SDO, SCK, SDI or SS pins. It however does say that thos ...
  Topic: spi_xfer() with wiznet Wiz812MJ
buzz

Replies: 26
Views: 50440

PostForum: General CCS C Discussion   Posted: Thu Nov 12, 2009 10:15 pm   Subject: spi_xfer() with wiznet Wiz812MJ
I'm trying to interface dsPIC33FJ128GP802 with Wiz812MJ module using software SPI, as hardware SPI isnt available on this chip. I've never worked with this chip or SPI before so I am having a hard tim ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group