Click here to Skip to main content
15,886,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lock a file Pin
SandipG 5-Nov-12 21:53
SandipG 5-Nov-12 21:53 
GeneralRe: Lock a file Pin
Richard MacCutchan5-Nov-12 22:10
mveRichard MacCutchan5-Nov-12 22:10 
GeneralRe: Lock a file Pin
Iain Wiseman6-Nov-12 19:29
Iain Wiseman6-Nov-12 19:29 
GeneralMessage Closed Pin
4-Nov-12 21:42
Sarath C4-Nov-12 21:42 
GeneralRe: Lock a file Pin
Richard MacCutchan5-Nov-12 3:00
mveRichard MacCutchan5-Nov-12 3:00 
AnswerRe: Lock a file Pin
Sarath C5-Nov-12 22:01
Sarath C5-Nov-12 22:01 
GeneralC CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K3-Nov-12 7:34
STEVE10K3-Nov-12 7:34 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
Tr@v3-Nov-12 11:15
Tr@v3-Nov-12 11:15 
Are the sensors tied to a GPIO line or do you have to talk to them using IIC or SPI? Need a little more info about the sensors before I could offer more assistance. I'm familiar with ARM (mostly Freescale and Atmel stuff) and I'd say that the sensors that I work with are generally tied to a GPIO pin. In that case you just need to read the GPIO pin status or tie it to an interrupt and read them in your app. The logic handling should be simple enough, if S1 is tripped before S2 then increment your counter and log the event to whatever permanent storage you are using, and decrement if you see the sensors in the opposite order. Not having much experience with PIC parts I don't know the exact registers you would need to check for the GPIO status though.
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K5-Nov-12 7:57
STEVE10K5-Nov-12 7:57 
AnswerRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
Tr@v7-Nov-12 7:47
Tr@v7-Nov-12 7:47 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K8-Nov-12 3:41
STEVE10K8-Nov-12 3:41 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K3-Dec-12 2:49
STEVE10K3-Dec-12 2:49 
QuestionC++ question. Please help me out Pin
Member 88567522-Nov-12 9:06
Member 88567522-Nov-12 9:06 
AnswerRe: C++ question. Please help me out Pin
jeron12-Nov-12 9:18
jeron12-Nov-12 9:18 
AnswerRe: C++ question. Please help me out Pin
Richard MacCutchan2-Nov-12 10:23
mveRichard MacCutchan2-Nov-12 10:23 
AnswerRe: C++ question. Please help me out Pin
Amarnath S3-Nov-12 20:49
professionalAmarnath S3-Nov-12 20:49 
Questionhow to return value after user input Pin
Member 21198442-Nov-12 5:11
Member 21198442-Nov-12 5:11 
AnswerRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 6:25
mveRichard MacCutchan2-Nov-12 6:25 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 8:16
Member 21198442-Nov-12 8:16 
GeneralRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 10:19
mveRichard MacCutchan2-Nov-12 10:19 
AnswerRe: how to return value after user input Pin
Santhosh G_2-Nov-12 6:34
Santhosh G_2-Nov-12 6:34 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 7:51
Member 21198442-Nov-12 7:51 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 15:32
Santhosh G_2-Nov-12 15:32 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:19
Member 21198442-Nov-12 17:19 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 17:26
Santhosh G_2-Nov-12 17:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.