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 32 matches
CCS Forum Index
Author Message
  Topic: ENC28J60 + 18f452 reset issue
ymoona

Replies: 1
Views: 7515

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2009 2:34 pm   Subject: ENC28J60 + 18f452 reset issue
#define PIN_ENC_MAC_CS PIN_B4
must be
#define PIN_ENC_MAC_CS PIN_B3

now it works
  Topic: ENC28J60 + 18f452 reset issue
ymoona

Replies: 1
Views: 7515

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2009 10:28 am   Subject: ENC28J60 + 18f452 reset issue
Hi,
I'm trying to get TCP/IP working on my PIC-WEB.
this is how my ccstcpip.h looks

//////////////////////////////////////////////////////////////////////////////
//
// ccstcpip.h - Common co ...
  Topic: 16F88 I2C master slave problem
ymoona

Replies: 2
Views: 6245

PostForum: General CCS C Discussion   Posted: Thu Nov 13, 2008 3:42 pm   Subject: 16F88 I2C master slave problem
Thanks, that makes sense.
Do you also have an answer to my other questions?
  Topic: 16F88 I2C master slave problem
ymoona

Replies: 2
Views: 6245

PostForum: General CCS C Discussion   Posted: Thu Nov 13, 2008 3:17 pm   Subject: 16F88 I2C master slave problem
Hi,

I'm using two 16F88 to communicate via i2c.
The master is reading two bytes, the slave is writing two bytes.
I'm using version 4.013.

This is the master code

#include <16F88.h> ...
  Topic: I2C Slave will not work on PIC16F690
ymoona

Replies: 9
Views: 10274

PostForum: General CCS C Discussion   Posted: Sun Dec 30, 2007 4:49 pm   Subject: I2C Slave will not work on PIC16F690
I thought the problem was fixed, but still it isn't working as I expect.

This is my master code:

while(1){
output_high(led);
i2c_start();
del ...
  Topic: I2C Slave will not work on PIC16F690
ymoona

Replies: 9
Views: 10274

PostForum: General CCS C Discussion   Posted: Sun Dec 30, 2007 2:40 pm   Subject: I2C Slave will not work on PIC16F690
It worked for me. Here's the output of the 16F690:

I2C engine driver Updated with I2C
interrupt!
interrupt!
interrupt!
interrupt!

I don't have two 16F690's, so I used a 16F877 for the mast ...
  Topic: I2C Slave will not work on PIC16F690
ymoona

Replies: 9
Views: 10274

PostForum: General CCS C Discussion   Posted: Sun Dec 30, 2007 12:26 pm   Subject: I2C Slave will not work on PIC16F690
Thank you all

I have fix the problem. (Two Problem)

1) In PIC16f690 when you set "enable_interrupts(INT_SSP) " This interrupt setting goes and set the "RB interrupt" I hav ...
  Topic: USB sample code PicUSB
ymoona

Replies: 27
Views: 261125

PostForum: Code Library   Posted: Thu Oct 18, 2007 11:57 am   Subject: USB sample code PicUSB
To bad you made the source code closed source, or at least by paying via paypal.
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Mon Jun 25, 2007 9:50 am   Subject: 16F690 pulse steering, 4 pin PWM
I was able to fix it by adding the line shown in bold below.

Also, it's best to define a symbolic name for the PWM pins.
If you use "PIN_C4", etc., as the pin name in your code, it doesn ...
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Sun Jun 24, 2007 1:55 pm   Subject: 16F690 pulse steering, 4 pin PWM

#use i2c(Slave,Slow,sda=PIN_C4,scl=PIN_C3,force_hw,address=0x00110011)


output_low(PIN_C5);
output_low(PIN_C4);
output_low(PIN_C3);
output_low(PIN_C2);
You're using software i2c ...
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Sun Jun 24, 2007 1:34 pm   Subject: 16F690 pulse steering, 4 pin PWM
this is the code I currently use:

#include <16F690.h>
#device adc=8

#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT
#FU ...
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Sun Jun 24, 2007 12:14 pm   Subject: 16F690 pulse steering, 4 pin PWM
The closest I have to your version is PCM vs. 4.014. I was able to
make it work with that version. See the test program shown below.
The key point is that you have to put in code to make the add ...
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Tue Jun 19, 2007 2:19 pm   Subject: 16F690 pulse steering, 4 pin PWM
Post your compiler version.
IDE 4.013
PCM 4.013
PCM 4.013
PCH 4.013
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Tue Jun 19, 2007 11:21 am   Subject: 16F690 pulse steering, 4 pin PWM
Look at the data sheet.
The defines exactly correspond to the configuration bits in the registers for the PWM. So:
1100 = PWM mode; P1A, P1C active-high; P1B, P1D active-high
1101 = PWM mode; P1A, ...
  Topic: 16F690 pulse steering, 4 pin PWM
ymoona

Replies: 16
Views: 33028

PostForum: General CCS C Discussion   Posted: Mon Jun 18, 2007 2:09 pm   Subject: 16F690 pulse steering, 4 pin PWM
I found the these constands in the header file for my PIC.

But I only get pin A to work, this is the code I used:

setup_ccp1(CCP_PWM);
set_pwm1_duty(100);
while(1 ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group