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 18 matches
CCS Forum Index
Author Message
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2015 1:58 pm   Subject: A Clever Button
Hurrahhhhh


I've managed to make it do exactly what I want Smile

Thank you for the support Ttelmah ! Please have a look at my code to see if everything looks alright:)


Regards,

Eugeniu

...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2015 10:19 am   Subject: A Clever Button
Hurrah, I understand the code completely!

Also I've tried to define all the missing parts and compile the code, and I got 3 errors : Expecting LVALUE such as a variable name or * expression (Lines ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2015 9:21 am   Subject: A Clever Button
Ok, so the first part of the code stays the same :


#include <12F675.h>
#FUSES INTRC_IO
#use delay(clock=4MHz)

#define LAMP_BUTTON PIN_A0
#define LAMP_BUTTON2 PIN_A2 ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Sun Jul 26, 2015 1:32 am   Subject: A Clever Button
Dear Ttelmah,

In my last post I've meant "was", sorry for the typo...

I've followed your advice and draw a task diagram, that looks something like this:

Question1 : Is the button p ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Sat Jul 25, 2015 2:00 pm   Subject: A Clever Button
Dear colleagues,

Sorry for not posting any result in a while but I've been traveling with work and only tonight I've got the change to look at the code that Ttelmah suggested.

Thank you for the ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Tue Jul 14, 2015 1:38 pm   Subject: A Clever Button
Dear Ttelmah,

Thank you for your code. I've tried to integrate it in my code, but with no success :(. The PIC is not executing the "output_high part" no matter what value I set for tick ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Mon Jul 13, 2015 11:51 am   Subject: A Clever Button
Hi,

I'd start by updating your description of what you want the program to do, because this makes no sense:


If button is pressed for more then 200 ms then do nothing. If button is pressed for ...
  Topic: A Clever Button
corgenius

Replies: 22
Views: 57378

PostForum: General CCS C Discussion   Posted: Mon Jul 13, 2015 11:26 am   Subject: A Clever Button
Dear colleagues,

This days I'm trying to make a "clever" button with the help of my loyal friend, the 675 pic Smile.

The projects sounds something like this:

If button is pressed for m ...
  Topic: PIC12F675 input question
corgenius

Replies: 3
Views: 7514

PostForum: General CCS C Discussion   Posted: Sun Jun 14, 2015 10:47 am   Subject: PIC12F675 input question
Dear colleagues,

I've tried modifying the code in order to have just one while(true) , but I didn't had any luck:(.

Code:

#include <12F675.h>
#FUSES INTRC_IO
#use delay( ...
  Topic: PIC12F675 input question
corgenius

Replies: 3
Views: 7514

PostForum: General CCS C Discussion   Posted: Sat Jun 13, 2015 1:18 pm   Subject: PIC12F675 input question
Dear colleagues,

Recently I've developed a code for making a small delay project using a PIC12F675.

The program makes an output high for a specific amount of time and it works perfectly but jus ...
  Topic: PIC12F675 Delay Question
corgenius

Replies: 14
Views: 23060

PostForum: General CCS C Discussion   Posted: Sat May 30, 2015 9:41 am   Subject: PIC12F675 Delay Question
Dear colleagues,

I've tried adding a counter, in order to make the loop run just once when the input is continuously 1, but I didn't had any luck. The loop runs once, even though the input stays 1, ...
  Topic: PIC12F675 Delay Question
corgenius

Replies: 14
Views: 23060

PostForum: General CCS C Discussion   Posted: Thu May 28, 2015 12:25 pm   Subject: PIC12F675 Delay Question
Dear colleagues,

I've modified the code so the LED will "blink", but, for a continuous input (like I have in my project, the LED will not go off :(.

I've tryied changin the
if ( ...
  Topic: PIC12F675 Delay Question
corgenius

Replies: 14
Views: 23060

PostForum: General CCS C Discussion   Posted: Thu May 28, 2015 8:45 am   Subject: PIC12F675 Delay Question
Dear ckielstra,

I've tried modifying the code in order to make the led blink. I even tried making a simple LED that is connected to PIN_A5 to blink, but with no success. I've tried to turn the LED ...
  Topic: PIC12F675 Delay Question
corgenius

Replies: 14
Views: 23060

PostForum: General CCS C Discussion   Posted: Wed May 27, 2015 10:27 pm   Subject: PIC12F675 Delay Question
Dear ckielstra,

First of all I want to thank you for your time. This is exactly the type of code that I've been searching for:).
I've compiled it before work but I didn't manage to make the led bl ...
  Topic: PIC12F675 Delay Question
corgenius

Replies: 14
Views: 23060

PostForum: General CCS C Discussion   Posted: Wed May 27, 2015 11:51 am   Subject: PIC12F675 Delay Question
Dear Mike,

I've tried searching for a "counter delay" for the 12F675 but I didn't found anything.

Do you know where I can find it?

Regards,

Eugeniu
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group