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---
#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.
#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
Aswinth Raj
PermalinkHi how are you telling that it is not working?
The syntax looks fine to me. Are you trying to debug with simulation or with actual hardware. Also I am not sure why you are using CCS, Microchip XC8 is free to use and MPLAB has some good debugging options if you have pickit3. Anyways how are you testing your set-up?
- Log in or register to post comments
Joined August 16, 2016 1000Tuesday at 12:29 AM