Other Parts Discussed in Thread: ADS1158
using ads1158 make me confused that if I want to configure it from scan_auto to fixed_mode. because i want to both ways for data collection.
So should I need to reset it again when mode switching?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: ADS1158
using ads1158 make me confused that if I want to configure it from scan_auto to fixed_mode. because i want to both ways for data collection.
So should I need to reset it again when mode switching?
Desmond,
You should be able to reconfigure the device by writing to the MUXMOD bit in CONFIG0 (0x00). Optionally you could stop the converter from converting first, reset the converter, configure & validate your registers, and then return to converting. Check out the 'Configuration Guide' section of the Application Information in the device datasheet for more information.
Kevin,
I want to configere ads1158 working in auto_scan and fixed_mode. but I should initialize it working in auto_scan mode.
Now I have a problem that can I use LabView to sent cmd to F28335 to change the config of ads1158. And make it work in fixed mode?
Desmond,
I'm having a hard time understanding exactly what your issue is here. If you can provide more information it'll be easier to help you.
I'm not sure in practice how friendly the ADS1158 is with switching modes on the fly, which seems to be your issue here. I think your best modus operandi is going to be issuing resets to ensure successful re-configuration of the device, if for no other reason than a clean implementation. You sequence should look like this:
When it's time to change the mode of operation from auto-scan to fixed or the other way around you can write to MUXMOD to change the conversion mode. My memory is fuzzy with respect to whether this action clears out the digital filters or not. If it does, you should have no problems. If it doesn't and you expect for the first conversion result to be correct then you need to stop the device from converting. If an invalid conversion result is no problem you can keep chugging along.