5.10 mikroC Pro for PIC 7-Segment LED Editor

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

img

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects 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.