snock
Joined: 10 Oct 2011 Posts: 24
|
SPI3 on PIC24FJ64GB106 |
Posted: Mon Nov 21, 2011 10:04 am |
|
|
I am trying to use SPI3 on a PIC24FJ64GB106-I/PT with the CCS MMC/SD driver. I'm having trouble assigning PIN_F0 to SDI3. The compiler generates an invalid pin error but F0 is a CN pin (CN68). I've had trouble with PCD with using the pullups and found this to be a compiler bug. I'm just wondering if anyone else has had this issue before. I don't think I'm doing anything wrong with the following:
Code: |
#include<24fj64gb106.h>
#fuses FRC, NOWDT, NODEBUG
#zero_ram
#pin_select OC1=PIN_B5
#pin_select INT1=PIN_C14
#pin_select SDO3=PIN_D11
#pin_select SDI3=PIN_F0
#pin_select SCK3OUT=PIN_D8
#use delay(type=internal, clock=8MHz)
#use i2c(MASTER, SDA=PIN_D9, SCL=PIN_D10, force_hw, slow, STREAM=IO_BUS)
#use i2c(MASTER, SDA=PIN_F4, SCL=PIN_F5, force_hw, slow, stream=RTCC_BUS)
#use spi(MASTER, DI=PIN_D10, DO=PIN_D11, CLK=PIN_D8, BITS=8, MSB_FIRST, MODE=0, stream=mmcsd_spi, force_hw)
|
Thanks. |
|