Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 24th May 2008, 08:05 AM   (permalink)
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)
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 24th May 2008, 08:28 AM   (permalink)
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
=========================
futz is online now   Reply With Quote
Old 24th May 2008, 08:30 AM   (permalink)
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
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
AV Issue Baggins Electronic Projects Design/Ideas/Reviews 3 6th June 2007 01:25 PM
LCD contrast issue jeg223 Electronic Projects Design/Ideas/Reviews 7 26th May 2007 12:55 PM
issue about electrocardiogram 4electros General Electronics Chat 23 23rd January 2006 02:51 PM
Pic microcontrolller pwm issue ym2k Micro Controllers 2 23rd September 2004 12:43 AM
DVD PSU Issue Callidus General Electronics Chat 1 19th September 2003 02:28 PM



All times are GMT. The time now is 02:52 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.