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 57 matches
CCS Forum Index
Author Message
  Topic: 18F4620 and AN3
Mark Weir

Replies: 2
Views: 3742

PostForum: General CCS C Discussion   Posted: Tue Apr 29, 2008 6:50 pm   Subject: 18F4620 and AN3
Hi ALl,

I have been attempting to complete a design using AN0,1,2 and 3.
I have the following setup:

setup_adc_ports(AN0_TO_AN3|VSS_VDD);//AN0
setup_adc(ADC_CLOCK_DIV_32) ...
  Topic: SIOW Multiple Sessions
Mark Weir

Replies: 4
Views: 7357

PostForum: General CCS C Discussion   Posted: Sun Jan 27, 2008 2:34 pm   Subject: multiple SIOW
Thanks you all for your great responses.

I have succeded using treitmey's method.

Cheers

Mark
  Topic: SIOW Multiple Sessions
Mark Weir

Replies: 4
Views: 7357

PostForum: General CCS C Discussion   Posted: Wed Jan 23, 2008 6:28 pm   Subject: SIOW Multiple Sessions
Hi All

Does anyone know if it is possible to run several sessions of the siow serial port monitor at the same time? Each one connected to a different prot of course.
If not can anyone suggest an e ...
  Topic: How to make custom LCD characters ?
Mark Weir

Replies: 4
Views: 6271

PostForum: General CCS C Discussion   Posted: Sun Sep 23, 2007 2:44 pm   Subject: Custom Characters
Hi There,

Try this site, it has everything you need.

Take note, you need both int() statements to make it work.

http://www.loginway.com/custom_char.htm

Cheers

Mark
  Topic: 16F886.h
Mark Weir

Replies: 6
Views: 6830

PostForum: General CCS C Discussion   Posted: Mon Aug 20, 2007 2:51 pm   Subject: Take Care
Hi all,

Take care migrating any code to the 16F886 or 887.
The current testing of these devices with CCS functions appears to be minimal and there are many changes between say the 876 and the 886. ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 3:57 pm   Subject: 16F886 I2C
sorry, got my versions mixed up. It is an 876a and you will see I have taken care of the comparator disabling.
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 3:13 pm   Subject: Test Program
For the 876A

///////////////////////////////////////////////////////////////////////////
//// Slave1_876.C
//// ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 2:50 pm   Subject: Got It
It had to something simple!

I needed this :
setup_spi(SPI_SS_DISABLED); in the setup.
I had created the project with the PIC Wizard and this did not come through.

Thanks for you help
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Wed Aug 08, 2007 2:08 pm   Subject: 16F886 I2C
No joy sorry PCM,

I included this fix but we still have the problem. Out of curiosity I asked CCS Support if they had done any testing on this part in the slave mode. They say not and had just [spam] ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Tue Aug 07, 2007 9:07 pm   Subject: #use I2C
If I remove the word " slave " from the #use I2c function the bus is allowed to go high and if i use " master " the bus still tries to work but I guess it competes with the real ma ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Tue Aug 07, 2007 6:20 pm   Subject: Differences
I have checked out the two list files and printed the program memory files as symbols. The files seem the same so far. In particular the SSPBUF on the 876 = 0x36 and the SSPCON on the 886 = 0x36.
Thi ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Tue Aug 07, 2007 3:06 pm   Subject: Tests
The pullups are only on the master pcb, 4k7. I did try fitting extra ones on the slave pcb but as it did not change things I removed them again.

With no PIC all lines stay high

Witha PIC program ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Tue Aug 07, 2007 2:29 pm   Subject: 16F886 I2C
I have three pcbs, One has an 876 onboard and two have 886's.
This is a very common board in our fleet and well tested. I get the same results with both 886 boards.
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Tue Aug 07, 2007 1:49 pm   Subject: Results
Hi PCM,

If I run the 886 by itself it will blink it's LED quite happily.
Both tests were completed with 4.047
both PICs are supplied from the same 5 volt supply

The problem comes when , after ...
  Topic: 16F886 I2C
Mark Weir

Replies: 21
Views: 23141

PostForum: General CCS C Discussion   Posted: Mon Aug 06, 2007 10:56 pm   Subject: Slave Code
Here is my version of the Slave code

#include <16F886.h>

#device adc=8

#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (&g ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group