Programming for multiplexed display in C is straight forward. MCS-51 controller just turn on each digit around 5ms. An important parameter is timing delay created by controller. A timer is need to create a precise timing for controller.
However we can use a delay time created by instruction in C loop. It’s not more precise but we can predict this timing delay in both simulator or physical hardware.
In this typical example, AT89C52 drives a two-digit multiplexed display. The display is common cathode type. P2 drives display’s segments while P3 drives display’s digits.
In C program we use “for loop” to create timing delay by estimation.
No comments:
Post a Comment