Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 6th October 2008, 04:31 AM   #1
Question how to detect sensor signal in dsPic30F3011?

I am a newbie in the arena of using dsPIC (dsPic30F3011). I have to include 6 sensors in my system and I am asked to use pin 42, 37, 41, 38, 35, 36 for detecting the binary 1 sent by the sensors using interrupt service routine. Please tell me how I should modify the firmware for receiving the signal from the sesors. Please help me with code snippet and necessary register configuration. You may also refer me to any link for tutorial. Please ask me if you have any further query.

waiting eagerly for ur kind reply

thanks in advance
Faysal
faysal_002299 is offline  
Old 6th October 2008, 04:34 AM   #2
Default

Post the code you've done so far.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 6th October 2008, 04:46 AM   #3
Default

Thanks for the quick reply. I have attached the code. Please read the following....

1. I am doing all these for controlling 3 motors via bldc driver. The sensor information will be used for motor on/off and speed control.
2. For communicating with PC through USB, I am using another uc and the dsPic has been used for motor control. Both the uc's are communicating with each other through ICSP.
3. I want to know How I can include another interrupt routine for individual sensor signal detection. After detection I will send that corresponding messege to my software and the software can then act for motor control.


Please please please help me....
faysal
Attached Files
File Type: c main.c (13.6 KB, 32 views)
faysal_002299 is offline  
Old 14th October 2008, 06:55 AM   #4
Question

I have started this thread last week but yet nobody sent any reply. Please some one come forward to help me. I badly need your help as soon as possible. At least please give me some links from where I may get some beginner's guide.

thanks
faysal_002299 is offline  
Reply

Tags
detect, dspic, sensor, signal

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Sensor used to detect black tape Klitzie Robotics Chat 3 3rd March 2008 03:40 AM
Need advice on what sensor to use to detect object black_wing_diaz Electronic Projects Design/Ideas/Reviews 12 8th February 2008 09:46 PM
pressure sensor to detect weight. qwer1984 General Electronics Chat 6 19th April 2006 08:54 AM
how can i detect when a signal overlaps other on a CRO scree itsmyturn General Electronics Chat 3 20th February 2005 04:49 AM
how to detect when a signal overlaps other on a CRO screen itsmyturn Electronic Projects Design/Ideas/Reviews 1 19th February 2005 11:48 PM



All times are GMT. The time now is 02:48 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker