Intersema MS5534 pressure sensor
CMcG
Posts: 17
Hi all,
Does anyone have any experience working with ths pressure sensor device? In particular I am looking for some help with the Shiftout and Shiftin instructions. I plan to use a BS2IC to talk with the MS5534. I am using an external 32kHz oscillator for the MS5534's ADC.
Thanks
Carl
Does anyone have any experience working with ths pressure sensor device? In particular I am looking for some help with the Shiftout and Shiftin instructions. I plan to use a BS2IC to talk with the MS5534. I am using an external 32kHz oscillator for the MS5534's ADC.
Thanks
Carl
Comments
Here is some shift code. It is set up to use three pins from the stamp, bpin for the shift clock, bpin+1 for shiftin data and bpin+2 for shiftout data.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I have been using 3k3 / 4k7 potential divider resistors to drop the stamp outputs down to 3V and a 220R / 330R divider with 5V to give me the 3V Vdd for the MS5543. I like the idea of the 4049. Perhaps I could use a spare inverter for my 32kHz crystal oscillator. I'll look into it.
It took me a while to twig why you were using the ~ compliment instruction (e.g. ~$555). I figure it is because of the 4049 inverters that you are using?
I read in the datasheets that the reset sequence needed 21 bits. I see you use just 16 bits. I will try your values over the weekend and hopefully I can get them to work for me.
I really appreciate your help.
Happy Christmas
Carl
The idea of using the CD4049 is a good one--That's what I did! Schematic attached. You're right, the complement (~$555) is to allow for the inversion. Of course, those values could be written as True and named as CONstants.
I'm puzzled by the reset sequence, 16 vs 21 bits. That program was written several years ago when the chip first came out, and maybe there was something different then. Maybe. The data sheet clearly specifies 21 bits, in which case it could be:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I am still experimenting with my circuit and code so may well end up with a 3V regulator yet. At the moment I have 100uF across the 220R/330R potential divider.·The DC·looks okay on the scope but I will have to see what it is like long term.
This is the reset sequence that I use ...
SHIFTOUT Dout,SCK,MSBFIRST,[noparse][[/noparse]$15,$55,$40]····· ' Send reset.
Your 16 bit··· [noparse][[/noparse] $555\16] works equally well. I have tested it.
I am hoping to end up with a reasonably accurate altimeter. Right now, I am having fun (yeah right) with the maths .
I have changed from a BS2IC to a BS2eIC with scratchpad RAM. I just didn't seem to have enough variable/RAM space for all those 16bit WORDs needed for the calculations with a standard BS2IC.
Back to the number crunching.
All the best
Carl