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 with PIC16F690
geshsoft

Replies: 9
Views: 15583

PostForum: General CCS C Discussion   Posted: Sun Oct 14, 2007 1:01 pm   Subject: SPI with PIC16F690
Ok, I tried on the slave without interrupts and there is some progress. It seems like when I enable interrupts this messes up the data being clocked out by the slave. Either way, the problem I have no ...
  Topic: SPI with PIC16F690
geshsoft

Replies: 9
Views: 15583

PostForum: General CCS C Discussion   Posted: Sat Oct 13, 2007 3:11 am   Subject: SPI with PIC16F690
Ok it seems that the pic was actually clocking the datat out correctly but when I hooked the scope probe on only SCK or SDO it will stop sending it for some weird reason. If I use 2 probes - one for ...
  Topic: SPI with PIC16F690
geshsoft

Replies: 9
Views: 15583

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 7:52 am   Subject: SPI with PIC16F690
I understand this and this is exactly what I was expecting to see actually, but the data out goes low after the first time data is clocked out. In other words the clock keeps on clocking data out but ...
  Topic: SPI with PIC16F690
geshsoft

Replies: 9
Views: 15583

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 1:50 am   Subject: SPI with PIC16F690
I just tried both removing the interrupt or reading the ISP buffer during ISR - none worked. The PIC still sends the 0xff only once and then it stops doing it, but the SCK keeps on going.
  Topic: SPI with PIC16F690
geshsoft

Replies: 9
Views: 15583

PostForum: General CCS C Discussion   Posted: Wed Oct 10, 2007 12:44 am   Subject: SPI with PIC16F690
Hi, I am trying to setup SPI between 2 PICs and currently I only tested sending data out with spi_write() from 16F690. I looked the output waveforms. The SCK apears to be working, but I see no data on ...
  Topic: PWM 16F685 Problem
geshsoft

Replies: 8
Views: 10578

PostForum: General CCS C Discussion   Posted: Sat May 05, 2007 2:14 am   Subject: PWM 16F685 Problem
Thanks, this worked Very Happy
Why was not the compiller setting the TRIS registers anyways? I thought that this is the advantage of the standard io... Confused
  Topic: PWM 16F685 Problem
geshsoft

Replies: 8
Views: 10578

PostForum: General CCS C Discussion   Posted: Fri May 04, 2007 10:58 pm   Subject: PWM 16F685 Problem
Ok, I compiled the last code that you posted and now PIN_C5 goes on for 5s and off for 5s. No other pins are affected. There is no PWM output on any of the pins either.
  Topic: PWM 16F685 Problem
geshsoft

Replies: 8
Views: 10578

PostForum: General CCS C Discussion   Posted: Fri May 04, 2007 10:32 pm   Subject: PWM 16F685 Problem
Here we go:


#fuses XT,NOWDT,BROWNOUT,PUT
#use delay (clock=4000000)

//=================================
void main()
{

// Setup the ECCP for PWM in full bridge mo ...
  Topic: PWM 16F685 Problem
geshsoft

Replies: 8
Views: 10578

PostForum: General CCS C Discussion   Posted: Fri May 04, 2007 10:08 pm   Subject: PWM 16F685 Problem
Do you mean to try compiling it the way it is there as for PIC18F4550 or to modify it to match PIC16F685? For once 16F685 has only CCP1 so it will not work in its original form.
  Topic: PWM 16F685 Problem
geshsoft

Replies: 8
Views: 10578

PostForum: General CCS C Discussion   Posted: Fri May 04, 2007 7:08 pm   Subject: PWM 16F685 Problem
I was trying the PWM module of the PIC16F685 but so far I have no success. The code I used is:


#include "C:\Program Files\PICC\Projects\DCMControl\main.h"


void main()
{

setu ...
  Topic: LCD on PIC16F684
geshsoft

Replies: 5
Views: 5902

PostForum: General CCS C Discussion   Posted: Thu May 03, 2007 12:54 am   Subject: LCD on PIC16F684
Ok, I found what the problem is... It was a little detail I overlooked - I used a pin that I did not use on my previous projects and this is MCLR which is either master clear or input, but never outpu ...
  Topic: LCD on PIC16F684
geshsoft

Replies: 5
Views: 5902

PostForum: General CCS C Discussion   Posted: Tue May 01, 2007 11:27 pm   Subject: LCD on PIC16F684
Ok, maybe for now I can temporarily use this code but I would still like to know what I am missing in my code... Thanks though Very Happy
  Topic: LCD on PIC16F684
geshsoft

Replies: 5
Views: 5902

PostForum: General CCS C Discussion   Posted: Tue May 01, 2007 10:37 pm   Subject: LCD on PIC16F684
Forget about the lcdpits() routine - I don't even get there. I should be able to see the cursor blinking after initialization which does not happen. I have done this routines in Hi Tech but this is my ...
  Topic: LCD on PIC16F684
geshsoft

Replies: 5
Views: 5902

PostForum: General CCS C Discussion   Posted: Tue May 01, 2007 10:03 pm   Subject: LCD on PIC16F684
Hi, I am new to CCSC - switched over from Hi-Tech by getting my hands on the CCSC 4 compiler. I have been trying to interface LCD in 4 bit mode but so far I have not been successful. I wrote the LCD r ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group