Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

9: Glass = Bliss > Post-Flight Briefing - Pg. 171

Glass Bliss void InitLCD( void); char ReadLCD( int addr); void WriteLCD( int addr, char c); 171 From now on, using the LCD display will be as simple as including the LCD.h file at the top of your application and including the LCD.c module in the list of source files in your project. Post-Flight Briefing In this lesson we learned how to use the parallel master port to drive an LCD display module. In reality we have just started scratching the surface. Also, since the LCD display module is a relatively slow peripheral, it might seem that there has been little or no significant advantage in using the PMP instead of a traditional bit-banged I/O solution. In reality, even when accessing such simple and slow peripherals the use of the PMP can provide two important benefits: l The timing, sequencing and multiplexing of the control signals are always guaranteed to match the configuration parameters, eliminating the risk of dangerous bus collisions and/ or unreliable operation as a consequence of coding errors and/or unexpected execution and timing conditions (interrupts, bugs ...).