Author |
Message |
Topic: external interrupt rb0 |
asunca
Replies: 6
Views: 8005
|
Forum: General CCS C Discussion Posted: Thu May 04, 2006 1:48 pm Subject: external interrupt rb0 |
#include <16F628.h>
#use delay(clock=4000000)
#fuses NOWDT,INTRC_IO, NOPUT, NOPROTECT, NOBROWNOUT, NOMCLR, NOLVP, NOCPD
int donus1=0;
#INT_EXT
ext_isr()
{
++donus1;
output_high ... |
Topic: external interrupt rb0 |
asunca
Replies: 6
Views: 8005
|
Forum: General CCS C Discussion Posted: Thu May 04, 2006 12:49 pm Subject: external interrupt rb0 |
i have connected lm339 comparator this time and saw the output voltage swinging between 0-5 with no load. when the 16f628's rb0 is connected the same problem appears. and rb0 is adjusted to be input. ... |
Topic: external interrupt rb0 |
asunca
Replies: 6
Views: 8005
|
Forum: General CCS C Discussion Posted: Thu May 04, 2006 4:50 am Subject: external interrupt rb0 |
the output of an LM358 comparator normally swings between 0-5 volts but when i connect the opamp to the rb0 external interrupt pin, the voltage seems to be swinging between 0-1.2 volts so the H to L e ... |
Topic: how to get 0-360 degree binary information from pc |
asunca
Replies: 3
Views: 5013
|
Forum: General CCS C Discussion Posted: Sun Jan 22, 2006 3:41 am Subject: how to get 0-360 degree binary information from pc |
i dont think interrupt is necessary. i have a 8channel servo controller downloaded from web. i would like to benefit from it in my project because i dont know visual basic. i know how it works (one by ... |
Topic: how to get 0-360 degree binary information from pc |
asunca
Replies: 3
Views: 5013
|
Forum: General CCS C Discussion Posted: Sat Jan 21, 2006 3:37 am Subject: how to get 0-360 degree binary information from pc |
i want to get 0-360 degree information from pc via serial port. but i dont know how to get the bytes into pic. this will not be an interrupt but polling. should i send ascii for example 268 degree as ... |
Topic: 24V H bridge, pwm Frequency problem |
asunca
Replies: 3
Views: 5612
|
Forum: General CCS C Discussion Posted: Mon Nov 28, 2005 2:39 am Subject: 24V H bridge, pwm Frequency problem |
i ve got a 24 V dc motor in my h-bridge. the gate input voltage is 30V driven on a 147ohm collector resistor(5watt) and BD139 power transistor (to be able to increase the current to fill the gate ca ... |
Topic: motor driver circuit |
asunca
Replies: 5
Views: 6719
|
Forum: General CCS C Discussion Posted: Fri Nov 18, 2005 8:22 am Subject: motor driver circuit |
i got to drive a huge current consuming (25A) dc motor with pic. and i got a few IRF250s. how can the motor drive circuit can be constucted because i tried some methods with protective diodes but stil ... |
Topic: getch() |
asunca
Replies: 4
Views: 9178
|
Forum: General CCS C Discussion Posted: Sat Oct 15, 2005 1:22 am Subject: getch() |
#include <16F877.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, errors,BRGH1OK)
void main()
... |
Topic: getch() |
asunca
Replies: 4
Views: 9178
|
Forum: General CCS C Discussion Posted: Fri Oct 14, 2005 8:12 am Subject: getch() |
in the main program where the getch() function is called, the program gets into trouble. i ve just used the example code ex_stwt.c and the simplest example ex_sqw but i couldnt make them work. and i ... |
Topic: rs232 problem |
asunca
Replies: 4
Views: 5642
|
Forum: General CCS C Discussion Posted: Wed Oct 05, 2005 9:14 pm Subject: rs232 problem |
all the connections are verified but still no action though i ve changed the max232 with a new one. how should understand the transmit action of pic with using multi meter because i have no scope.. i ... |
Topic: rs232 problem |
asunca
Replies: 4
Views: 5642
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2005 8:26 am Subject: rs232 problem |
i am sending data on rs232, printf("hello") and made all necessary things but i cannot see it on pc. iam using tty terminal program.
for the serial port of pc (6 and 4 short, 7-8 short ). dtr- ds ... |
Topic: rotary encoder and printf.... |
asunca
Replies: 20
Views: 20481
|
Forum: General CCS C Discussion Posted: Mon Oct 03, 2005 12:25 am Subject: rotary encoder and printf.... |
i am building a measurement device making the calculations of rotates/sec
when "sayac" is 2, the rtcc is on the second interrupt and 65,5*2= 131ms has passed.
there are black short lines on my ... |
Topic: rotary encoder and printf.... |
asunca
Replies: 20
Views: 20481
|
Forum: General CCS C Discussion Posted: Sat Oct 01, 2005 3:00 am Subject: rotary encoder and printf.... |
but this time nothing seems wrong but the speed is not what it is expected to be. it must be near 160 but now it shows up to ten. what is the problem |
Topic: rotary encoder and printf.... |
asunca
Replies: 20
Views: 20481
|
Forum: General CCS C Discussion Posted: Wed Sep 28, 2005 12:08 pm Subject: rotary encoder and printf.... |
oh i ve got you some.. we are putting a long delay, longer than the isr time. so the count stays cleared.. ?? |
Topic: rotary encoder and printf.... |
asunca
Replies: 20
Views: 20481
|
Forum: General CCS C Discussion Posted: Wed Sep 28, 2005 11:42 am Subject: rotary encoder and printf.... |
i couldnt get what you meant sseidman . your language is tough .. |
|