Answers

1. See the figure.

2. Speed=6 steps/sec=6×7.5 deg/sec=45 deg/sec=45/360 rev/sec →60/8=7.5 rpm.

3. Linear characteristic: Output voltage, Vt=mt+c; t=temperature; Gradient, m=10 mV/°C.

At 0°C, sensor voltage, Vt=500 mV, so 500=c. Hence, Vt=10t+500 mV.

4. The parallel display uses more MCU output pins, drive requirements are more complex (segment encoding required), and it shows only 3.5 numerical digits, while the serial LCD is 16x2 alphanumeric.

5. lcd_symbol(DigMap[8],DIG1);

The first argument of the function is an array variable that contains the seven-segment code for the number 8, and the second identifies the seven display memory bits for ...

Get Programming 8-bit PIC Microcontrollers in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.