CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 16 matches
CCS Forum Index
Author Message
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2011 3:41 pm   Subject: Sensor Pin
It should have said Pin_B4. The project has been completed. Here is the final code we used utilizing the port b interrupts. The project page with videos is here: http://www.ece.gatech.edu/academic/cou ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Sat Nov 20, 2010 7:21 pm   Subject: PIC18F452 PULSE Counter
Thanks for your help. We decided to use PortB Interrupts instead, and were successfully able to count the number of pulses, and display our miles/hour. I don't know why our Timer1 counter would not wo ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Wed Nov 10, 2010 5:41 pm   Subject: PIC18F452 PULSE Counter
The pulses change whenever a magnet polarity is switched. We didn't have a constant pulse going, so the screenshots are from a positive polarity magnet, then the next screenshot is the signal when the ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Wed Nov 10, 2010 5:02 pm   Subject: PIC18F452 PULSE Counter
My results are at the link below. is this enough information to help me? Images are included.

http://dl.dropbox.com/u/10133862/Sensor%20Readings.docx
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Tue Nov 09, 2010 6:17 pm   Subject: PIC18F452 PULSE Counter
1. What's the frequency of the pulses coming from the sensor ?

I can answer this tomorrow

2. What are the voltage levels (high and low) of the pulses, as measured
with an oscilloscope ?

I ca ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2010 5:42 pm   Subject: Program Code
I connected everything, and I am getting an accurate signal (high and low sine wave). However, my code recognizing the pulse changes. Is there something wrong with my code? The timer0 counts elapsed t ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 5:12 pm   Subject: PIC18F452 PULSE Counter
Sounds good. That is how I had it connected. Just need to add the pull up resistor. Thanks. I will try this out when I get back to the lab.

www.tinyurl.com/gtsavseniordesign --> GA Tech Senior D ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 5:00 pm   Subject: PIC18F452 PULSE Counter
Also, when I connect the sensor the the oscilloscope, does this mean the high signal will effectively be closer to 5V?
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:56 pm   Subject: PIC18F452 PULSE Counter
sounds great. Thanks. Is it still ok to power the sensor by +12V?
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:43 pm   Subject: PIC18F452 PULSE Counter
Ok, so I will connect the power pin of the sensor to the power supply, and the signal pin to a 1K ohm resistor, and the resistor to the timer1 input. is this correct? (along with the ground connection ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:34 pm   Subject: PIC18F452 PULSE Counter
And I do have the Sensor connected to ground as well
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:32 pm   Subject: PIC18F452 PULSE Counter
I had 12V from a voltage generator supplied to it. As far as a pull up resistor, what kind of resister should I use?
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:20 pm   Subject: PIC18F452 PULSE Counter
The datasheet for the sensor is here --> http://www.google.com/url?sa=D&q=http://www.electro-sensors.com/documents/906_907_ES116_RevI.pdf&usg=AFQjCNHikRDIIraYcyjtwq73r8uzjDCdxw
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 4:09 pm   Subject: PIC18F452 PULSE Counter
The Hall Sensor I am using utilizes 12V of external input power. The signal wire is then connected to the Timer input pin (RC0). I connected the signal pin to RA4 (Timer0 input) and it successfully in ...
  Topic: PIC18F452 PULSE Counter
rgraham8

Replies: 27
Views: 46982

PostForum: General CCS C Discussion   Posted: Thu Oct 28, 2010 3:22 pm   Subject: PIC18F452 PULSE Counter
I did this, and it was not receiving any values. I am confused. Do the RC1 and RC0 pins need to be tied together? I saw this somewhere recently. I know Timer1 works as I tried it as the main timer.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group