saramah
Member level 3
Hi all, I
I am using compiler CCS (v5.008) and MCU PIC18F46k22(has 2 MSSP module) , to display text in P10-DMD using MSSP2 module of the MCU.
---My target to use MSSP1 for hardware I2C (for RTC clock) and MSSP2 for hardware SPI (to display clock data in DMD).-----
For that, FIRST going to setup Hardware SPI for DMD with MSSP2 Module,
All things are going correct if MSSP1 is used with the code below SPI configuration---
but if MSSP2 is configure with below, the the MSSP2 for SPI is not working even SCK2 pin is not responding.
Is there anythings what i am missing to setup MSSP2.
Anyone can help me?
Thanks
I am using compiler CCS (v5.008) and MCU PIC18F46k22(has 2 MSSP module) , to display text in P10-DMD using MSSP2 module of the MCU.
---My target to use MSSP1 for hardware I2C (for RTC clock) and MSSP2 for hardware SPI (to display clock data in DMD).-----
For that, FIRST going to setup Hardware SPI for DMD with MSSP2 Module,
All things are going correct if MSSP1 is used with the code below SPI configuration---
Code:
#use SPI(SPI1, MODE = 0, BITS = 8, STREAM = P10_Panel_Driver)
but if MSSP2 is configure with below, the the MSSP2 for SPI is not working even SCK2 pin is not responding.
Code:
#use SPI(SPI2, MODE = 0, BITS = 8, STREAM = P10_Panel_Driver)
Is there anythings what i am missing to setup MSSP2.
Anyone can help me?
Thanks