+ Reply to Thread
Results 1 to 3 of 3

Thread: SPI issue - HW or SW

  1. #1
    Kryten Newbie
    Join Date
    Oct 2007
    Location
    Stavern, Norway
    Posts
    292

    Default SPI issue - HW or SW

    Hi
    I have tried to get my head around something here.
    If i look in the datasheet of the 18f4550 HW SPI are pins RC0, RC1, RB7 and RA5 (the latter beeing SS)
    but in CCS pic c in the project wizzard it says that pins RC3 -RC5 ans SPI -CLK -DI -DO (this is when i set it to use HWSPI)
    The best is yet to come

    Good enough - its perfect !!

    2 Gig of free online backup space

    cq cq de LA3BNA


  2. #2
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by Kryten View Post
    Hi
    I have tried to get my head around something here.
    If i look in the datasheet of the 18f4550 HW SPI are pins RC0, RC1, RB7 and RA5 (the latter beeing SS)
    but in CCS pic c in the project wizzard it says that pins RC3 -RC5 ans SPI -CLK -DI -DO (this is when i set it to use HWSPI)
    Maybe the lib is bit-banging SPI instead of using hardware? Just write it yourself. You don't need a lib to do SPI. It's super easy with the hardware SPI. Very similar to hardware RS232 to write code for.
    =========================
    Futz's Microcontrollers & Robotics
    =========================

  3. #3
    Kryten Newbie
    Join Date
    Oct 2007
    Location
    Stavern, Norway
    Posts
    292

    Default

    Well since im trying to use some sort of FAT16 lib i need the init routines and they are different in mikroC and CCS pic C
    The best is yet to come

    Good enough - its perfect !!

    2 Gig of free online backup space

    cq cq de LA3BNA

+ Reply to Thread

Similar Threads

  1. AV Issue
    By Baggins in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 6th June 2007, 01:26 PM
  2. LCD contrast issue
    By jeg223 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 7
    Latest: 26th May 2007, 12:56 PM
  3. issue about electrocardiogram
    By 4electros in forum General Electronics Chat
    Replies: 23
    Latest: 23rd January 2006, 02:51 PM
  4. Pic microcontrolller pwm issue
    By ym2k in forum Micro Controllers
    Replies: 2
    Latest: 23rd September 2004, 12:44 AM
  5. DVD PSU Issue
    By Callidus in forum General Electronics Chat
    Replies: 1
    Latest: 19th September 2003, 02:28 PM

Tags for this Thread