Professional Documents
Culture Documents
/* Details:-Single 7-segment
interface.
-This program count from 0 to 9 and
display it on 7 segment
-Sevent segment is connected to port
p0
-display0 can be activated by p1.0
pin, by setting it as high
-seven segment are commmon anode,
hence to active a segment
corresponding port pin must have to be
low.
A
---A->P0.0 B->P0.1 C->P0.2
F| G |B
D->P0.3 E->P0.4 F->P0.5
---G->P0.6 H->P0.7
E|
|C
---- . H
D
Author: Ravikant verma */