November 2012
Intermediate to advanced
496 pages
12h 2m
English
The mikroC Pro for PIC language includes a 7-segment LED editor that can be used to find the decimal or hexadecimal codes to be sent to a port to display a given pattern. Patterns are created by clicking on the LED segments. The editor is invoked from the drop-down menu by clicking Tools -> Seven Segment Editor. Figure 5.19 shows a typical display of the editor where the pattern for number ‘5’ is created. The code for this pattern is displayed as 0×6D for common cathode displays (same code as in Table 5.3). Code for both common anode and common cathode displays can easily be obtained.
Figure 5.19 mikroC Pro for PIC 7-segment LED editor
Read now
Unlock full access