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 23 matches
CCS Forum Index
Author Message
  Topic: bi-directional SPI with only one hardware port?
lifespeed

Replies: 2
Views: 4811

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 2:28 pm   Subject: bi-directional SPI with only one hardware port?
Thanks for your response.

The 200 KHz master is an old Motorola embedded CPU. I want to run a PID control algorithm on the PIC, with the control output being SPI writes to the DAC. The time frame ...
  Topic: bi-directional SPI with only one hardware port?
lifespeed

Replies: 2
Views: 4811

PostForum: General CCS C Discussion   Posted: Tue Aug 01, 2006 12:52 pm   Subject: bi-directional SPI with only one hardware port?
I hope I haven't painted myself into a corner, but this could be something of a problem.

I have a PIC18F2420 with one hardware SPI port that needs to receive serial data, then transmit serial data ...
  Topic: Bootload code using XON/XOFF? RS232 & SPI using same lin
lifespeed

Replies: 4
Views: 6931

PostForum: General CCS C Discussion   Posted: Tue Oct 18, 2005 10:01 am   Subject: Bootload code using XON/XOFF? RS232 & SPI using same lin
Thanks for the info on ASCII-encoded hex files. I will look at the CCS bootloader.

Unless there is something I don't know about, which is entirely possible, SPI bootloaders are relatively inaccess ...
  Topic: Bootload code using XON/XOFF? RS232 & SPI using same lin
lifespeed

Replies: 4
Views: 6931

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 5:06 pm   Subject: Bootload code using XON/XOFF? RS232 & SPI using same lin
I want to start by thanking all those who have helped me with the finer points of PICs and the CCS compiler. I'm a hardware guy by training, so this is somewhat new to me.

It is desireable to have ...
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Sun Oct 16, 2005 5:33 pm   Subject: SPI slave trouble, port 2 18F8722
You do presumably realise that there is nothing 'special' about the defines used by CCS, and that you can perfectly well create your own?. The top byte is what goes to the SSPSTAT register, and the lo ...
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Fri Oct 14, 2005 4:47 pm   Subject: SPI slave trouble, port 2 18F8722
I am using the PCM18SX0 processor module. So far I am unable to find an errata sheet for it, although I hope it does not have the bug described for the PCM18AX0/BX0.

I have been looking at the clo ...
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Thu Oct 13, 2005 1:42 pm   Subject: SPI slave still not working correctly
I am still having trouble getting valid data in using SPI2 slave mode. As best I can tell, it tends to skip the first bit of a 3-byte series, and zero the last bit. The last data bit of the series d ...
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2005 6:24 pm   Subject: SPI slave trouble, port 2 18F8722
I'm glad you explained how you came to that conclusion. That technique might help me solve problems in the future.

Thanks again,
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2005 5:03 pm   Subject: SPI slave trouble, port 2 18F8722
Thanks! I would have never guessed, and I sure didn't see that in the CCS manual. I would much prefer hardware SPI to bit-banging.

Very Happy
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2005 4:01 pm   Subject: SPI slave trouble, port 2 18F8722
Compiler is 3.234, pretty new.
  Topic: SPI slave trouble, port 2 18F8722
lifespeed

Replies: 13
Views: 15978

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2005 3:22 pm   Subject: SPI slave trouble, port 2 18F8722
I'm having trouble reading in valid data on the second SPI port of the PIC18F8722. Compiler is ver 3.234.

SPI port 1 is currently used to write to 5 other ICs, one of which can also be successfull ...
  Topic: disable pullup on SPI 3-wire input (SDI) line?
lifespeed

Replies: 10
Views: 14470

PostForum: General CCS C Discussion   Posted: Fri Sep 09, 2005 10:00 am   Subject: disable pullup on SPI 3-wire input (SDI) line?
You are correct on the Schmidt trigger threshold, which is the type of input I would expect to be configured for SPI operation. Perhaps this is a case of emulator vs PIC, or the specification and typ ...
  Topic: disable pullup on SPI 3-wire input (SDI) line?
lifespeed

Replies: 10
Views: 14470

PostForum: General CCS C Discussion   Posted: Thu Sep 08, 2005 3:19 pm   Subject: disable pullup on SPI 3-wire input (SDI) line?
I'm embarassed to admit this, but in the interest of full disclosure . . .

The PIC demo board had a 7.5K pullup on the SPI input line only (SDA/RC4).

Thanks for your help.

It does like like t ...
  Topic: disable pullup on SPI 3-wire input (SDI) line?
lifespeed

Replies: 10
Views: 14470

PostForum: General CCS C Discussion   Posted: Thu Sep 08, 2005 12:20 pm   Subject: disable pullup on SPI 3-wire input (SDI) line?
You have presumably configured JP1?.
This is _required_ if you are using the ICE module on the board (forces the processor into a reset state).
Page 50 of the manual.

Best Wishes

Looking at th ...
  Topic: disable pullup on SPI 3-wire input (SDI) line?
lifespeed

Replies: 10
Views: 14470

PostForum: General CCS C Discussion   Posted: Wed Sep 07, 2005 4:37 pm   Subject: disable pullup on SPI 3-wire input (SDI) line?
Thanks for all the help. Here is what I've found:

CCS ver 3.231

This odd pullup behavior on the SDI (port 0) input is only present when the emulator is connected to the picdemo board. When I d ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group