In the paper a new implementation of a compact smart resistive sensor based on a microcontroller with internal ADCs is proposed and analysed. The solution is based only on a (already existing in the system) microcontroller and a simple sensor interface circuit working as a voltage divider consisting of a reference resistor and a resistive sensor connected in parallel with an interference suppression capacitor. The measurement method is based on stimulation of the sensor interface circuit by a single square voltage pulse and on sampling the resulting voltage on the resistive sensor. The proposed solution is illustrated by a complete application of the compact smart resistive sensor used for temperature measurements, based on an 8-bit ATxmega32A4 microcontroller with a 12-bit ADC and a Pt100 resistive sensor. The results of experimental research confirm that the compact smart resistive sensor has 1°C resolution of temperature measurement for the whole range of changes of measured temperatures.
A new method of noise generation based on software implementation of a 7-bit LFSR based on a common polynomial PRBS7 using microcontrollers equipped with internal ADCs and DACs and a microcontroller noise generator structure are proposed in the paper. Two software applications implementing the method: written in ANSI C and based on the LUT technique and written in AVR Assembler are also proposed. In the method the ADC results are used to reseed the LFSR after its each full work cycle, what improves randomness of generated data, which results in a greater similarity of the generated random signal to white noise, what was confirmed by the results of experimental research. The noise generator uses only the internal devices of the microcontroller, hence the proposed solution does not introduce hardware redundancy to the system.