Author |
Message |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
wwwglro
Replies: 40
Views: 70732
|
Forum: General CCS C Discussion Posted: Mon Oct 18, 2010 1:16 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
How can I use this accelerometer for g force aplications?
Thanks |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
wwwglro
Replies: 40
Views: 70732
|
Forum: General CCS C Discussion Posted: Tue Aug 31, 2010 6:39 am Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Can you post the schematics?
Thank you |
Topic: 12f629 program problem |
wwwglro
Replies: 2
Views: 3754
|
Forum: General CCS C Discussion Posted: Sun May 23, 2010 1:16 am Subject: 12f629 program problem |
After simulations made with Proteus, I found that those small flickers of the second LED are completely random compared to the seconds counted in the ISR.
Is correct besides counting seconds, to te ... |
Topic: 12f629 program problem |
wwwglro
Replies: 2
Views: 3754
|
Forum: General CCS C Discussion Posted: Sat May 22, 2010 1:11 am Subject: 12f629 program problem |
Hello
It gives 12f629, two buttons, two LEDs.
As long as the first button is held down, both LEDs are lit. If the second button is pressed, second LED goes off for 10 seconds. If you release the fir ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Sun Sep 20, 2009 8:57 am Subject: delay interrupts rtcc inside main program... |
Here is the code:
#include <16f84A.h>
#use delay(clock=4000000) //we have 3906 interupts per seconde
long bec0=1;
long bec1=1;
#int_rtcc
void clock_isr() {
bec0 ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Wed Sep 16, 2009 6:59 am Subject: delay interrupts rtcc inside main program... |
Hello.
My code actually, doesn't use Mark's code; it's like Mark's code (much simpler).
When I push a button, a led lights for 3 seconds.
When I push other button, another led starts to light (and ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Sun Sep 13, 2009 2:42 am Subject: delay interrupts rtcc inside main program... |
Hello.
That code works but in a single click event the corresponding led lights for indefinite time.
When I try to modify to light for a few seconds (using delay_ms()), when I push another bu ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Sat Sep 12, 2009 8:12 am Subject: delay interrupts rtcc inside main program... |
Hello
How can I use this function (button.c) to test if the key is pressed more then 1 second?
Thank you. |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Wed Sep 09, 2009 9:19 am Subject: delay interrupts rtcc inside main program... |
So, the interrupt occurs when the button is pressed or released or both? |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Tue Sep 08, 2009 11:42 pm Subject: delay interrupts rtcc inside main program... |
Hello.
The overall purpose of my project is to light two leds with two buttons...one of a time. When one of them lights and I push the other button, the other one starts to light for a specified time ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Tue Sep 08, 2009 11:33 am Subject: delay interrupts rtcc inside main program... |
If I enable internal interrupts, they do not occur if I press a button on port A? I thought they did... (I mean tmr0 overflow).
When I want an interrupt to occur if I press a buttton (to do an acti ... |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Tue Sep 08, 2009 9:02 am Subject: delay interrupts rtcc inside main program... |
Hello
No, I am using port A as input port. |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Mon Sep 07, 2009 2:53 pm Subject: delay interrupts rtcc inside main program... |
Hello.
My question was: if a port changes state, interrupt occurs?
Thank you |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Mon Sep 07, 2009 2:19 pm Subject: delay interrupts rtcc inside main program... |
I have another question.
If I press a button, interrupt occurs when the button is pressed or released or both. (I think both...).
Thanks. |
Topic: delay interrupts rtcc inside main program... |
wwwglro
Replies: 18
Views: 20259
|
Forum: General CCS C Discussion Posted: Mon Sep 07, 2009 7:13 am Subject: delay interrupts rtcc inside main program... |
Hello.
uC pic 16f84A
I have the following program:
int_rtcc
void isr()
{
instruction made when interrupt occurs;
}
void main()
{
set_rtcc(0);
... |
|