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 10 matches
CCS Forum Index
Author Message
  Topic: "Ghost" driving SDO pin in SPI mode
mcpublic

Replies: 7
Views: 7174

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2007 2:04 pm   Subject: "Ghost" driving SDO pin in SPI mode
That's a very good suggestion. And I agree with your diagnosis,
as I've pretty much confirmed that it is either a hardware bug
or a bug inside CCS C "PCH" SPI library (I suppose it may ...
  Topic: "Ghost" driving SDO pin in SPI mode
mcpublic

Replies: 7
Views: 7174

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2007 11:33 am   Subject: Re: "Ghost" driving SDO pin in SPI mode
P.S. I am using the PIC18F2420's MSSP hardware to generate SPI signals.
  Topic: "Ghost" driving SDO pin in SPI mode
mcpublic

Replies: 7
Views: 7174

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2007 11:20 am   Subject: Re: "Ghost" driving SDO pin in SPI mode
Thanks for the suggestion. This firmware doesn't #use fast_mode. But I wouldn't expect this to be an issue as I don't do any explicit I/O on the SDO pin. I just let the MSSP module control it.

M ...
  Topic: "Ghost" driving SDO pin in SPI mode
mcpublic

Replies: 7
Views: 7174

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2007 10:10 am   Subject: "Ghost" driving SDO pin in SPI mode
I am using a PIC18F2420 as an SPI master to drive a MAX532 dual 12-bit DAC. This has been working 99% of the time, but I am occasionally seeing what seems like a "ghost" driving my SDO pin ...
  Topic: LVP programmer for CCS C PCH (command line version)
mcpublic

Replies: 1
Views: 8930

PostForum: General CCS C Discussion   Posted: Thu Mar 09, 2006 1:02 pm   Subject: LVP programmer for CCS C PCH (command line version)
I have designed and built a R&D lab device with eight PIC18F4525's in it. I went to great efforts to make it possible to use an ICD2 to program any one of the 8 PICs. All the PGC and PGD pins ar ...
  Topic: WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE
mcpublic

Replies: 22
Views: 164802

PostForum: Code Library   Posted: Mon Feb 13, 2006 3:13 pm   Subject: Debugging this i2c code -- you will want to use a scope!
I would not have gotten anywhere porting this i2c code to different processors and different clock speeeds if I didn't (a) have an understanding of i2c signalling (especially the ack/clock-stretching ...
  Topic: WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE
mcpublic

Replies: 22
Views: 164802

PostForum: Code Library   Posted: Mon Feb 13, 2006 2:54 pm   Subject: PIC18F4525 port code
Here is the stripped-down hardware i2c slave code
ported to a PIC18f4525 running at 10MHz (no 4x PLL!)
Below is the master code with some commentary

--Tim


//// i2c 16-BIT SLAVE CODE

// A ...
  Topic: WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE
mcpublic

Replies: 22
Views: 164802

PostForum: Code Library   Posted: Fri Feb 10, 2006 11:09 pm   Subject: Re: Porting to 18F2525/4525
Yes, this is the right table of register addresses.
Let me know if you have any more questions.
FYI, almost every problem I ran into was solved
by adding delays between i2c master commands.
  Topic: WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE
mcpublic

Replies: 22
Views: 164802

PostForum: Code Library   Posted: Tue Feb 07, 2006 8:01 am   Subject: Porting to 18F2525/4525
I do have an update for the 18F2525/4525. I'm sure you can read the datasheet to get the 18F SSP register addresses.

The key difference between the 876A SSP module wrt i2c slave is that addresses ...
  Topic: WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE
mcpublic

Replies: 22
Views: 164802

PostForum: Code Library   Posted: Tue Nov 01, 2005 1:30 pm   Subject: Advice on porting i2c master slave example
Snibbe's "WORKING I2C MASTER AND SLAVE LOGGER : MULTI-BYTE" works great at 20MHz, but at slower clock speeds, you have to do one of the following:

a) Master: insert delay after i2c_write(SLAVE_ADDR ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group