Author |
Message |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 1:04 pm Subject: Thanks. |
Thanks. |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 9:07 am Subject: a |
To PCM Programmer:
Could you do me a favor, could you compile your code for me (use MPLAB IDE with CCS)
#include <16F874A.h>
#fuses HS,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay(c ... |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Tue May 11, 2010 4:18 pm Subject: PIC Simulator |
I am using MPLAB IDE 5.20, CCS C Compiler 4.104, Oshonsoft PIC Simulator IDE 6.33, still not signal from SDO when run under PIC simulator.
What simulator do you run your .hex file?
Thanks. |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Wed May 05, 2010 4:52 pm Subject: SDO and SDI |
By theory, I can get a serial signal 0x55 from RC5/SDO pin, and clock on RC3/SCK pin.
Do I need to connect SDO (RC5) to SDI (RC4) to form a loop.
I modified and can not get serial signal from SDO.
... |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Wed May 05, 2010 10:46 am Subject: not working |
Above code seems not working.
The code below is copied from text book, but still no data out from SDO (RC5).
#include "16F874A.h"
#use delay(clock=4000000)
#use spi(DI=PIN_ ... |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Sun May 02, 2010 12:54 pm Subject: thanks |
Thanks.
I will try next week. |
Topic: PIF16F874 SPI with C |
davidshang
Replies: 12
Views: 12112
|
Forum: General CCS C Discussion Posted: Fri Apr 30, 2010 3:12 pm Subject: PIF16F874 SPI with C |
I am new user with PIC.
Does anyone can show me how to send data to SPI port. (PIF16F874A with C)?
I want to send codes through SPI port (SDO) in sequence.
for example:
1st code: 0xdb,
2nd code: ... |
|