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 11 matches
CCS Forum Index
Author Message
  Topic: debouncing problem
Twitie

Replies: 7
Views: 15179

PostForum: General CCS C Discussion   Posted: Fri Nov 19, 2004 7:34 pm   Subject: debouncing problem
Got it~~!

thx a lot everyone! Very Happy
  Topic: debouncing problem
Twitie

Replies: 7
Views: 15179

PostForum: General CCS C Discussion   Posted: Wed Nov 17, 2004 10:12 pm   Subject: debouncing problem
Hello all~

I am doing a project implementing button RBO ext interrupt. Now I am facing debouncing problem.

Can anyone show me how to write the algorithm of debouncing?

Thx a lot!!
  Topic: Need help in RB0 external interrupt
Twitie

Replies: 8
Views: 16875

PostForum: General CCS C Discussion   Posted: Thu Nov 11, 2004 10:35 pm   Subject: Need help in RB0 external interrupt
I connect my RB0 to a normally-open push button. This connection is correct right?

................ __
RB0 --------o o-------- Gnd
............pus ...
  Topic: Need help in RB0 external interrupt
Twitie

Replies: 8
Views: 16875

PostForum: General CCS C Discussion   Posted: Thu Nov 11, 2004 8:56 pm   Subject: Need help in RB0 external interrupt

You don't have anything else attached to portb do you? Namely RB0? I tried an experiment with a PICDEM2 Plus board. RB0 has an LED on it along with RB3-RB1. I wanted to use one of the another LEDs b ...
  Topic: Need help in RB0 external interrupt
Twitie

Replies: 8
Views: 16875

PostForum: General CCS C Discussion   Posted: Thu Nov 11, 2004 7:58 pm   Subject: Need help in RB0 external interrupt
My port RB0 is initially high(5V). It turns to low when I press the button. I have set the port_b_pullups but still cannot work... Crying or Very sad


........
found_it = false;
set_tris_b(0x01&# ...
  Topic: Need help in RB0 external interrupt
Twitie

Replies: 8
Views: 16875

PostForum: General CCS C Discussion   Posted: Wed Nov 10, 2004 3:26 am   Subject: Need help in RB0 external interrupt

#include <16f877a.h>
#fuses HS,NOLVP,NOWDT,PUT
#use delay(clock=20000000)

int1 found_it;

#int_ext
void ext_isr()
{
found_it = true;
}

void main( ...
  Topic: RS232 Interrupt problem~~
Twitie

Replies: 6
Views: 10451

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 10:18 pm   Subject: RS232 Interrupt problem~~
Thx asmallri ~ Very Happy

The code works. However, the "bit found_it;" cannot be declared. I change it to "boolean found_it;" and it works.

Anyway, I wonder why my code is not working since both ...
  Topic: How to check out RS232 status?
Twitie

Replies: 20
Views: 25782

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 8:27 pm   Subject: How to check out RS232 status?
That's mean I use the interrupt subroutine only to set the flag and the all the work for interrupt will be done in main()...

Thx Mark, I think I get your point~~ Very Happy
  Topic: RS232 Interrupt problem~~
Twitie

Replies: 6
Views: 10451

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 7:42 pm   Subject: RS232 Interrupt problem~~
Hello all~! I am a student and currently I am doing a project using RS232 interrupt. I did a test on this (code below) and found that the interrupt was working only for the first time. When it returne ...
  Topic: How to check out RS232 status?
Twitie

Replies: 20
Views: 25782

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 7:16 pm   Subject: How to check out RS232 status?
Thx Mark~ ^^

Okay for a program but you shouldn't do them in an interrupt.


One more question. What should I do if I need to implement delay in intterupt?

Thx.
  Topic: How to check out RS232 status?
Twitie

Replies: 20
Views: 25782

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 5:34 pm   Subject: How to check out RS232 status?

5. Never put those huge delays in there. Better to set a flag and handle in main.
6. Better use "ERRORS" in the #use RS232 if using the hardware uart.


Sorry guys for interrupt~ I have some d ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group