Jump to content
43oh

Can I run 2 Timer captures at the same time?


Recommended Posts

For my light to frequency project(using the TSL230R with the G2231), i'm ultimately going to want use 2 TSL230R'S to get light data from 2 points at the same, or VERY nearly the same time in addition to a data from a sound sensor(just loudness)...so a total of 3 readings. Can any chip do in the value line series do this? I'm all for using the appropriate microcontroller for a given job. Would the Propeller be better suited for this(has 8 cogs)?

Dave

Link to post
Share on other sites

you can take 2 readings at the same time, using both capture compare registers.

 

Would the Propeller be better suited for this(has 8 cogs)?

I think propeller would be over kill, you should be able to perform the same task on this uC, and if you think your running out of room, you can always upgrade to the G2453 or other 20 pin chip.

 

 

BTW i may be able to help with the code, i have a few of those same chips collecting dust in a box lol

Link to post
Share on other sites
  • 1 month later...

Okay...Im back on to this msp430 stuff after being busy the last month or so. I took your advice and ordered some 20 pin chips(free samples) in case I need the extra capture compare registers. I'm just having trouble figuring out how to handle getting two captures at same time from two light chips. Would they each have their own ISR? What needs to be implemented so they don't conflict with each other. I've looked for code that might be similar but no luck.

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...