View RSS Feed

Recent Blogs Posts

  1. Routine for handling 7-seg display on CCS

    The following function may be useful for those who are starting in the microcontroller's world and wish to implement applications using 7-segment display with the CCS compiler in PIC platform. I've used long time ago:

    Code:
    void Display7seg ( char value )
       {
       char pin=0 ;
       while ( pin< 8 ) 
           {
           if ( SEGMENTCHARS[value ] & ( FIRST_SEGMENT >> pin) ) 
             output_high ( DISPLAY_PINS[pin] ) ;
           else
    ...