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 27 matches
CCS Forum Index
Author Message
  Topic: digital clock count
wakaka

Replies: 1
Views: 4263

PostForum: General CCS C Discussion   Posted: Sun Mar 11, 2007 7:40 am   Subject: digital clock count
Hi all, i would like to use PIC16F876a to build a simple digital clock.

Below is partial of the code :

for(i=0; i <= X; i++) {

delay_ms(1000)
c ...
  Topic: external eeprom program(24128)
wakaka

Replies: 0
Views: 2760

PostForum: General CCS C Discussion   Posted: Fri Feb 09, 2007 7:20 pm   Subject: external eeprom program(24128)
Hi all, I'm trying to write some value in eeprom and read back, but it doesn;t work. Below is my code, is here anything wrong? thanks.

#include <16F876A.h>
#use delay(clock=20000000) ...
  Topic: Max PWM freq for 877A
wakaka

Replies: 1
Views: 3794

PostForum: General CCS C Discussion   Posted: Mon Jan 22, 2007 3:01 am   Subject: Max PWM freq for 877A
I there, i just wanna wats the max freq that can be configure using CCS for 877 to supply PWM using CCP pin?
The crystal freq is 20Mhz.
Can it supply 1Mhz-8Mhz PWM signals?
  Topic: 12F675 comparator
wakaka

Replies: 2
Views: 5789

PostForum: General CCS C Discussion   Posted: Wed Jan 10, 2007 2:03 am   Subject: 12F675 comparator
i just figured it out, for 12F675, only the last 2 hex numbers are used, others are ignore...
To off the comparator module, CMCON = 7;
#define NC_NC 0x0ff07

To use comparator with A1 as Vin-, A0 ...
  Topic: 12F675 comparator
wakaka

Replies: 2
Views: 5789

PostForum: General CCS C Discussion   Posted: Tue Jan 09, 2007 10:40 pm   Subject: 12F675 comparator
Hi there, at the 12F675.h i found this

//////////////////////////////////////////////////////////////////
COMP
// Comparator Variables: C1OUT, C2OUT
// Constants used in setup_comparator( ...
  Topic: 16F767 test
wakaka

Replies: 7
Views: 8373

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 5:54 am   Subject: 16F767 test
oh ya, thanks PCM, i thought crystal and oscillator is the same.....

But actually whats the difference between that 2??
What's the effect using a crystal and a oscillator?
  Topic: 16F767 test
wakaka

Replies: 7
Views: 8373

PostForum: General CCS C Discussion   Posted: Tue Oct 17, 2006 11:56 pm   Subject: 16F767 test
really?? i thought for PIC which has internal clock, need to define to use external clock (EC_IO), then need to define the clock speed (XT, HS)


Meaning if using external, just define XT or HS enu ...
  Topic: 16F767 test
wakaka

Replies: 7
Views: 8373

PostForum: General CCS C Discussion   Posted: Tue Oct 17, 2006 8:11 am   Subject: 16F767 test
just ignore me....found the problem

set_tris_b(0);
  Topic: 16F767 test
wakaka

Replies: 7
Views: 8373

PostForum: General CCS C Discussion   Posted: Tue Oct 17, 2006 8:01 am   Subject: 16F767 test
#include <16F767.h>
#use delay (clock=20000000)
#fuses HS,NOWDT,NOPUT,NOPROTECT,NOBROWNOUT,MCLR,NODEBUG,EC_IO
#byte portb=6

void main()

{

set_tris_b(1) ...
  Topic: PIC16F628A connected to LM70( temperature Sensor)
wakaka

Replies: 2
Views: 4619

PostForum: General CCS C Discussion   Posted: Mon Oct 02, 2006 7:59 pm   Subject: PIC16F628A connected to LM70( temperature Sensor)
IMHO, i think u can switch to lm35 for temperature sensor, user frenly, only 3 pins, output analog voltage with is propotional to the temperature. Can try tat........
  Topic: PID Ziegler-Nichols using CCS
wakaka

Replies: 7
Views: 11516

PostForum: General CCS C Discussion   Posted: Sun Oct 01, 2006 8:49 pm   Subject: PID Ziegler-Nichols using CCS
dun understand...sorry....
  Topic: PID Ziegler-Nichols using CCS
wakaka

Replies: 7
Views: 11516

PostForum: General CCS C Discussion   Posted: Sun Oct 01, 2006 4:43 am   Subject: PID Ziegler-Nichols using CCS
plz correct me if I'm wrong

The pid = Kp*E + Ki*sumE + Kd*dE/dt [1]

for the Ziegler-Nichols tuning method, it has open loop and closed loop, both has different calculations to find Kp, Ki and ...
  Topic: PID Ziegler-Nichols using CCS
wakaka

Replies: 7
Views: 11516

PostForum: General CCS C Discussion   Posted: Wed Sep 27, 2006 10:09 pm   Subject: PID Ziegler-Nichols using CCS
browse thru it, nice document PCM, thanx

anyone else? need more infos......
  Topic: PID Ziegler-Nichols using CCS
wakaka

Replies: 7
Views: 11516

PostForum: General CCS C Discussion   Posted: Wed Sep 27, 2006 7:57 pm   Subject: PID Ziegler-Nichols using CCS
no, din manage to get that although i googled for a few times....will look into it, thankx.
  Topic: PID Ziegler-Nichols using CCS
wakaka

Replies: 7
Views: 11516

PostForum: General CCS C Discussion   Posted: Tue Sep 26, 2006 10:07 pm   Subject: PID Ziegler-Nichols using CCS
Hi there, currently I'm doing a temperature controller using 877. i know that Ziegler-Nichols can be use as a self-tuning method for PID.
But the problem is i dunno how to set the Ku and Pu.
I've ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group