BS2p Motor Control, Serial Protocol, and DS1302 Interface Example
VerifiedAdded on 2019/09/18
|1
|302
|86
Homework Assignment
AI Summary
This assignment delves into the specifics of controlling a DC motor using a BS2p microcontroller, exploring both the hardware and software aspects. The initial question addresses the limitations imposed by the BS2p's integer-only processing capability. The assignment then tasks the student with designing a circuit and writing a program to control the motor's direction and stopping, simulating three modes of operation: clockwise, counter-clockwise, and stop. The student is also asked to discuss the various serial protocols supported by the BS2p. Finally, the assignment challenges the student to interface a DS1302 real-time clock to the BS2p, providing a schematic and a program to display seconds since a button press. The assignment emphasizes both the theoretical and practical aspects of microcontroller programming and interfacing, including the use of hand-written code and PBASIC.






