Author |
Message |
Topic: 16f877a and Gyro Idg5oo |
karimpain
Replies: 21
Views: 32948
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 11:55 am Subject: 16f877a and Gyro Idg5oo |
Hello rubenskc!
Sorry for being late i'd a lot of works in this year in other things..
but for everything now i'm here.
by the way i have to implement this project in this months.
Thax |
Topic: Generating 50Hz by calling Timer0 Interrupt |
karimpain
Replies: 2
Views: 5806
|
Forum: General CCS C Discussion Posted: Tue Jun 19, 2012 5:42 pm Subject: Generating 50Hz by calling Timer0 Interrupt |
Hello Everybody!
I want to generate a 50hz signal using timer0, and I want to vary the duty cycle of the signal from 1ms to 2ms(servo control). I didn't test it, so I want to take in consideration al ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Tue May 22, 2012 2:36 pm Subject: send integer between two pic rs232! |
Thanks for everything guys. Really the problem was the lcd. But i want to say something i worked a lot using proteus and i can say that it resolves 60% of the work (so i don't trust it at all) .... in ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Mon May 21, 2012 3:34 am Subject: send integer between two pic rs232! |
Thank you for everything ..
Now finally the data is received correctly but the problem was something that i didn't expect. I canceled the lcd_init() and all the "printf" so the only comm ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 5:40 am Subject: send integer between two pic rs232! |
No I'm doing the test in hardware and all of the steps that I'm going talk about are in hardware:
Here is the code for the both since the code send and receive data:
#include <16F877a.h>
#F ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Sat May 19, 2012 10:29 am Subject: send integer between two pic rs232! |
Nothing!!! I don't know what's wrong, like I said each pic can receive data from itself (so the code and the hardware are right) but can't communicate each other!!! (I'm going try all the baudrate). |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Fri May 18, 2012 8:18 am Subject: send integer between two pic rs232! |
yeah i know that...so I grounded the two board and the voltage of the pic is the same ..so the first pic is 5.01 as the second... and now i realized that it always receive data.. so it likes the if(kb ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Fri May 18, 2012 8:04 am Subject: send integer between two pic rs232! |
The distance that I want is short (few cm)... now:
I make 2 circuits pic hardware and for each one I tried if it works or not. So I sent an integer and receive it (connecting the tx to rx directly of ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 10:17 am Subject: send integer between two pic rs232! |
hoangkhuong: I make few months ago... connection between pic and pc and was successful. I'm gonna retest it on it why not!!!
temtronic: Should I have to use max232 between two pic for serial communi ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 5:52 am Subject: send integer between two pic rs232! |
temtronic: The lcd works. I tried it alone and it's perfect, and yeah I added errors without results!!
ckielstra: After I select the program where is the code button!!
I make code without the rs ... |
Topic: send integer between two pic rs232! |
karimpain
Replies: 22
Views: 33135
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 4:30 am Subject: send integer between two pic rs232! |
Hello everyone !
i'm working on send integer between two pic16f877a, i know that is a simple topic and the codes are easy, but still don't work so i decided to ask you maybe there is something missin ... |
Topic: 16f877a and Gyro Idg5oo |
karimpain
Replies: 21
Views: 32948
|
Forum: General CCS C Discussion Posted: Mon May 14, 2012 3:43 pm Subject: 16f877a and Gyro Idg5oo |
I write the code for the gyro idg500 and obtain good results but there
is still the problem of its drift. Now I'm gonna combine with my
accelerometer adxl335 but it seems that I am gonna use anothe ... |
Topic: 16f877a and Gyro Idg5oo |
karimpain
Replies: 21
Views: 32948
|
Forum: General CCS C Discussion Posted: Wed May 02, 2012 4:16 pm Subject: 16f877a and Gyro Idg5oo |
thx ckielstra for the advices!
Yeah, you are right for the #byte port_a = 5 ...etc
But for adc_channel I have to use more than one.
But for the sequence of the timer command you let me notice righ ... |
Topic: 16f877a and Gyro Idg5oo |
karimpain
Replies: 21
Views: 32948
|
Forum: General CCS C Discussion Posted: Wed May 02, 2012 4:10 pm Subject: 16f877a and Gyro Idg5oo |
the code compiles but doesn't work!!!
so it's better put the maths inside the while loop and not inside the isr!!
but u said that timer0 count to 63535 but the timer0 is an 8 bit,so overflows when t ... |
Topic: 16f877a and Gyro Idg5oo |
karimpain
Replies: 21
Views: 32948
|
Forum: General CCS C Discussion Posted: Tue May 01, 2012 4:26 pm Subject: 16f877a and Gyro Idg5oo |
In two words what I've done is a code without precision in time which needs a gyro that sends datain high freq. Ok I don't know how the ccp trigger event works (I'll read about it now), but the compil ... |
|