Mikroelektronika MIKROE-724 データシート

ページ / 726
534
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI Lcd Library
The mikroBasic PRO for dsPIC30/33 and PIC24 provides a library for communication with Lcd (with HD44780 compliant 
controllers) in 4-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 Lcd 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 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_Lcd_Config 
 
- SPI_Lcd_Out 
 
- SPI_Lcd_Out_Cp 
 
- SPI_Lcd_Chr 
 
- SPI_Lcd_Chr_Cp 
 
- SPI_Lcd_Cmd