Author |
Message |
Topic: Timer0 interrupt,help |
muatuyet_2012
Replies: 10
Views: 10235
|
Forum: General CCS C Discussion Posted: Thu Dec 13, 2012 8:51 pm Subject: Timer0 interrupt,help |
I use CCS 4.104. If you find any mistake,please help me.
#include <16F877A.h>
#include <def_16f877a.h>
#fuses NOWDT,HS,NOPUT,NOPROTECT,NODEBUG,NOBROWNOUT,NOLVP,NOCPD,NOWRT
#use delay ... |
Topic: Timer0 interrupt,help |
muatuyet_2012
Replies: 10
Views: 10235
|
Forum: General CCS C Discussion Posted: Thu Dec 13, 2012 4:08 am Subject: Timer0 interrupt,help |
I have just repaired it. I improved but delay still slow.
#int_timer0
void ngat_timer0()
{
CLEAR_INTERRUPT(INT_TIMER0);
DISABLE_INTERRUPTS(INT_TIMER0) ... |
Topic: Timer0 interrupt,help |
muatuyet_2012
Replies: 10
Views: 10235
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2012 2:39 am Subject: Timer0 interrupt,help |
I use PIC16f877A and crystal 20Mhz
20Mhz / (4*256*256) ~76
I will review. Thanks Mike,Ttelmah,asmboy |
Topic: Timer0 interrupt,help |
muatuyet_2012
Replies: 10
Views: 10235
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2012 2:11 am Subject: Timer0 interrupt,help |
I learned about it. But it don't work correct . Timer is too slow.
In function interrupts:
#int_timer0
void interrupts_timer0()
{
set_timer0(0);
count++;
}
main ... |
Topic: Timer0 interrupt,help |
muatuyet_2012
Replies: 10
Views: 10235
|
Forum: General CCS C Discussion Posted: Tue Dec 04, 2012 3:47 am Subject: Timer0 interrupt,help |
Help me,please
I have a graphs : y1=c1*z1
c1=const= y1/c1
y1=read_analog - set_high;
z1= y1/c1; (time : second)
Con ... |
Topic: Problem read analog LTC1298, Please Help |
muatuyet_2012
Replies: 4
Views: 5239
|
Forum: General CCS C Discussion Posted: Sun Jun 17, 2012 11:02 pm Subject: Problem read analog LTC1298, Please Help |
I did it!
You're really enthusiastic.
Thanks you so much! |
Topic: Problem read analog LTC1298, Please Help |
muatuyet_2012
Replies: 4
Views: 5239
|
Forum: General CCS C Discussion Posted: Sun Jun 17, 2012 9:40 pm Subject: Problem read analog LTC1298, Please Help |
Thanks for your suggestion.
This is my program:
#include <16F877A.h>
#include <def_16f877a.h>
#use delay(clock=20000000)
#fuses NOWDT,HS,NOPUT,NOPROTECT,NODEBUG,NOBROWNOUT ... |
Topic: Problem read analog LTC1298, Please Help |
muatuyet_2012
Replies: 4
Views: 5239
|
Forum: General CCS C Discussion Posted: Thu Jun 14, 2012 11:22 pm Subject: Problem read analog LTC1298, Please Help |
Help me, Please.
I use LTC1298 + PIC16F877A.
I read the voltage and display 4 Led 7 seg. I use library "ltc1298.c". Read analog from CH0 and display Led.
My problem: But, for any input vo ... |
|