Author |
Message |
Topic: pic hanging |
ssaakmnt
Replies: 5
Views: 6751
|
Forum: General CCS C Discussion Posted: Sat Mar 30, 2013 12:36 pm Subject: pic hanging |
Thank you guys for your responses. I will consider all information. I suspect the problem from sensor because it always stop there and it sometimes escapes sensor to stop on the next one. So its proba ... |
Topic: pic hanging |
ssaakmnt
Replies: 5
Views: 6751
|
Forum: General CCS C Discussion Posted: Sat Mar 30, 2013 5:46 am Subject: pic hanging |
I wrote this simple control routine and it was working fine most of the time,
some times it get stuck and do not execute at all #include <16F84.h>
#use delay(clock=4000000)
#fuses ... |
Topic: creating new port |
ssaakmnt
Replies: 6
Views: 6947
|
Forum: General CCS C Discussion Posted: Wed Mar 20, 2013 4:35 am Subject: creating new port |
Thank you. |
Topic: creating new port |
ssaakmnt
Replies: 6
Views: 6947
|
Forum: General CCS C Discussion Posted: Tue Mar 19, 2013 12:07 pm Subject: creating new port |
very good idea to operate all displays from one port each one alone for short period of time..i will try that ,
but also important to know how to combine different port bits to create new port ? I w ... |
Topic: creating new port |
ssaakmnt
Replies: 6
Views: 6947
|
Forum: General CCS C Discussion Posted: Mon Mar 18, 2013 12:57 pm Subject: creating new port |
I am trying to run 4 7segment displays directly from pic16f877 , 3 displays for port b,c and d , port a has not enough pins to drive the 4th display so the idea is to build new port consist of port a ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Sat Jan 05, 2013 2:01 pm Subject: reading volt with pic16f877 ADC |
Thank you very much. |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Sat Jan 05, 2013 12:10 pm Subject: reading volt with pic16f877 ADC |
Ttelmah good you joined us, ok I will do all that but to be honest I didn't quite understand every thing you say, I have some questions:
so this function is effectively always rounded 'down' by half ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Sat Jan 05, 2013 4:11 am Subject: reading volt with pic16f877 ADC |
this is the code that I did for pic ammeter :
#include <16F877.h>
#device ADC=10
#FUSES NOWDT //No Watch Dog Timer
#FUSES XT
#FUSES NOPUT ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2013 12:12 pm Subject: reading volt with pic16f877 ADC |
it is MACX MCR-SL-CAC-5-I(-UP) http://select.phoenixcontact.com/phoenix/dwl/dwlfr1.jsp?lang=en Order Number or product typ: 2810612
it is originally works with PLC unit but I try here to see what hap ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2013 7:22 am Subject: reading volt with pic16f877 ADC |
yes..it supposed to measure current of 3 phase motor through current transformer 50/5A kn and 5A feed to transducer which output 4-20mA.
but is this varying value from (correct 11.5 and 12A )to 13.5 ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2013 6:03 am Subject: reading volt with pic16f877 ADC |
Hmm.. OK the instability I think (as lot of people say) due to noise , when I compare the reading from pic to digital ammeter I find for example :
11.55A,12.4A,12.5A these reading are same for both ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2013 4:47 am Subject: reading volt with pic16f877 ADC |
Ok I will search that I/P protection and low pass filter ,also I will search what temtronic said about multiple samples and averages..I don't have much experience with ADC module so i will search mo ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2013 3:00 am Subject: reading volt with pic16f877 ADC |
it is like this
24----| |----0v
-----------
4-20ma
sensor
-----------
| |
... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 3:39 pm Subject: reading volt with pic16f877 ADC |
One end of the resistor is grounded, the supply is 24vdc converted to (connected) to 15v regulator and then connected to 5v regulator, Vdd and Vss are the voltage references, 24vdc also supplies the c ... |
Topic: reading volt with pic16f877 ADC |
ssaakmnt
Replies: 21
Views: 21467
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 12:53 pm Subject: reading volt with pic16f877 ADC |
This code uses the pic as digital voltmeter to measure 5 volt:
#include <float.h>
main() {
float value;
printf("\n\rSampling:\r\n");
setup_port_a& ... |
|