Back to all jobs

MSP430 Debounce software  Add to shortlist

Client Details

AndrewAndrew C   
United Kingdom  United Kingdom
  • Member Since: Aug 2010
  • Last Login: 20 May 2012
  • PPH Verified: Yes
  • Jobs Posted: 4
  • Jobs Awarded: 3
  • Paid out: $1,834

Job Details

Category:IT/Web/Programming > General Programming

ID:34692

Title:MSP430 Debounce software

Location:Anywhere

Job Description

We monitor Utility meters & also things like Heat meters etc.
We have a number of inputs on a variety of target hardware.
They all use the MSP430, are usually battery powered.
There can be up to 16 inputs on ports1 & 2.

Take a look at the attached files.

We need the attached (or new) code tested & debugged.

The code has NOT been tested & probably won\'t work.
But I think the principle is OK.

The first part selects the inputs that will be debounced & is called from the rest of the system, so don\'t worry about this.
This function is used on a variety of target hardware with varying numbers of inputs that require debouncing. However they are always on Port 1 or Port 2.
This part of the function is probably OK but can be changed if required.

The second part is called at a few millisecond intervals (~ 2mS).
This timer only runs after an interrupt has been received from one of the inputs, it having changed state. (high or low).
Having sampled all the inputs it puts the status into an array.
Then checks to see if the same bits in the array are all high or all low, vertically if you see what i mean.
This is basically a shift register with each new sample being shifted in & the oldest drops out. So if the shift register is all 1\'s or all 0\'s we know the input is stable.

The last two functions are the interrupt handlers for Ports 1 & 2.
They start (or continue) the main debounce timer.

We need to catch both active high and low switches.
If we are monitoring an electricity meter we can see pulses up to 25Hz.
So I think 40mS is the longest switch bounce we could accomodate. My feeling is 30mS would be best ??
On the other had we have water & gas meters that are very slow.

Job Budget

Type:Fixed Price

Budget:Not Specified

Additional Information

Attached Files:
Debounce.xls
debounce_new.c

Bidding ends:Bidding Closed

Job Posted:28/08/2010 20:46

Bidding activity on this Job

Bids:1

Who has Bid:

Clarification Board

No messages yet.

Bidding closed

Stay safe: Read our safety guidelines before bidding

Bidding has ended for this project, the client has accepted the bid(s) below:

Accepted Bid #1

Amount: $188 Fixed Fee

Country of Freelancer: United Kingdom  United Kingdom

Acceptance Reason: Hi,
I know we have briefly discussed this, but what do you need to get going on this job ?

1) FET (In Circuit Emulator)
2) Hardware to test ? what would you like. Either eval board or our hardware?
3) Our target software (Crossworks call it a solution).

anything else ?

Simon

Estimated Start Date: Within 3 Business Days





Here are some practical tips on staying safe


Remember: if something looks too good to be true, it probably is!

If you are in doubt of the legitimacy of a Job and or Client, let us know by Reporting the Job.

For further support on preventing and reporting fraud please contact the UK’s National fraud reporting centre at http://www.actionfraud.org.uk/ or outside the UK Fraud Watchers at {fraudWatchers}