User manual
539
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI Lcd8 (8-bit interface) Library
The  mikroPascal  PRO  for  dsPIC30/33  and  PIC24  provides  a  library  for  communication  with  Lcd  (with  HD44780 
compliant controllers) in 8-bit mode via SPI interface.
For creating a custom set of Lcd characters use Lcd Custom Character Tool.
Important: 
- When using this library with dsPIC33 and PIC24 family MCUs be aware of their voltage incompatibility with certain 
number of Lcd modules. 
So, additional external power supply for these modules may be required. 
- Library uses the SPI module for communication. The user must initialize the appropriate SPI module before using the 
SPI Lcd8 Library. 
- For MCUs with multiple SPI modules it is possible to initialize all of them and then switch by using the SPI_Set_
Active() routine. See the SPI Library functions. 
- This Library is designed to work with the mikroElektronika’s Serial Lcd/Glcd Adapter Board pinout, see schematic at 
the bottom of this page for details.
Library Dependency Tree
External dependencies of SPI Lcd Library
The implementation of SPI Lcd Library routines is based on Port Expander Library routines.
External dependencies are the same as Port Expander Library external dependencies.
Library Routines
  - SPI_Lcd8_Cong 
  - SPI_Lcd8_Out 
  - SPI_Lcd8_Out_Cp 
  - SPI_Lcd8_Chr 
  - SPI_Lcd8_Chr_Cp 
  - SPI_Lcd8_Cmd 










