dima2882
Joined: 13 Jul 2005 Posts: 25 Location: Maryland
|
SPI for PIC24F04KA200 under 4.099 |
Posted: Sat Mar 20, 2010 5:18 pm |
|
|
Hi all,
I'm using the PIC24F04KA200 device and have the 4.099 compiler. setup_spi() broke during compile, which was odd - that had worked on other MCUs... Then I noticed that the header file for this MCU lacked the usual block:
Code: | // SPI Functions: SETUP_SPI, SPI_WRITE, SPI_READ, SPI_DATA_IN
// Constants used in SETUP_SPI() are:
... |
Is there no SPI support for this chip? There is onboard HW for this... I'm using a lab computer that's had this compiler since October, I doubt I can get an update for it. Since setup_spi() breaks, I can't even look at the assembly listing to see how the compiler set stuff up.
For now i'm defining it in inline assembly, but the whole point of compilers is not to have to do that... Or am I missing something? |
|