Author |
Message |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Fri Apr 10, 2015 1:44 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Thank You..
Return value works perfectly with the current program itself, I had not observed it properly. The last 13 bits are actually showing the status of the registers, but only if I write to ... |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Thu Apr 09, 2015 12:31 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Thank You Experts...
I have changed approach as you suggested by you.
Also I am sending the register value twice which makes it happen.
But reading the register value back from the slave is a pro ... |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Tue Apr 07, 2015 2:37 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Thank You for your grateful response.
I have changed the mode to MODE0. Still there are issues with SPI communication.
Need to understand more on how this SPI communication works.
Here in my code ... |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Fri Mar 27, 2015 4:59 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Experts,
Please find program below:
#include "E:\EMBEDDED\PICDEM 2 PLUS Projects\SPI_L9942\SPI_L9942.h"
#use spi(MASTER, MODE=1, DO = PIN_C5, DI = PIN_C4, CLK = PIN_C3, baud = ... |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Fri Feb 27, 2015 3:28 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Thanks for the great response.
Now there is a fractional 'pause' in the clock between byte #1, and byte #2, as the PIC SPI buffer is reloaded, but because of the synchronous nature this doesn't mat ... |
Topic: 16 Bit SPI with 16F877A- Is it possible? |
[email protected]
Replies: 10
Views: 21117
|
Forum: General CCS C Discussion Posted: Fri Feb 27, 2015 1:22 am Subject: 16 Bit SPI with 16F877A- Is it possible? |
Hello Experts,
I am quite new to SPI with PICs.
Please help me out with the basics of SPI communication.
PIC 16F877A datasheet mentions that SPI is for 8bits.
I want to communicate with L994 ... |
Topic: gear check using 2 switches |
[email protected]
Replies: 18
Views: 18451
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2012 11:04 am Subject: gear check using 2 switches |
I think switch bouncing and delay is the problem in my code.
Is it possible by using analog inputs? |
Topic: gear check using 2 switches |
[email protected]
Replies: 18
Views: 18451
|
Forum: General CCS C Discussion Posted: Tue Dec 25, 2012 1:07 am Subject: gear check using 2 switches |
#include <16F877A.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for ... |
Topic: gear check using 2 switches |
[email protected]
Replies: 18
Views: 18451
|
Forum: General CCS C Discussion Posted: Mon Dec 24, 2012 9:44 am Subject: gear check using 2 switches |
-Usually a encoder type sensor is used for this purpose in bikes.
-I cannot use that in my bike as it costs high and also not posiible to mount.
-Yes...the code here is complicated as I have used ... |
Topic: gear check using 2 switches |
[email protected]
Replies: 18
Views: 18451
|
Forum: General CCS C Discussion Posted: Sun Dec 23, 2012 10:13 am Subject: gear check using 2 switches |
Sorry...
I have edited my post with code function. |
Topic: gear check using 2 switches |
[email protected]
Replies: 18
Views: 18451
|
Forum: General CCS C Discussion Posted: Sun Dec 23, 2012 7:18 am Subject: gear check using 2 switches |
I have used two DPDT press-release switches to find the gear shift in two wheelers. The idea is to scan the switches at each gear and relatively find the next. So I used a global declaration for integ ... |
Topic: ACCESSING REGISTER |
[email protected]
Replies: 8
Views: 13099
|
Forum: General CCS C Discussion Posted: Sat Dec 22, 2012 11:29 pm Subject: ACCESSING REGISTER |
I got it working with the use of ! but I want to know why I don't get proper results without the use of it. I have also disabled the pull up resistors of PORT B and pulled down PIN B7 externally.
I t ... |
Topic: ACCESSING REGISTER |
[email protected]
Replies: 8
Views: 13099
|
Forum: General CCS C Discussion Posted: Sat Dec 22, 2012 10:51 am Subject: ACCESSING REGISTER |
#include <16F877A.h>
#FUSES HS
#FUSES NOWDT
#FUSES NOLVP
#case
#use delay(clock=20MHz)
#define LED PIN_B4
#define SWITCH1 PIN_B7
void port_b_pullups(char valu ... |
Topic: ACCESSING REGISTER |
[email protected]
Replies: 8
Views: 13099
|
Forum: General CCS C Discussion Posted: Sat Dec 22, 2012 9:17 am Subject: ACCESSING REGISTER |
I am a beginner.
Please post some examples for accessing the OPTION register and different ways of accessing the registers in PIC using CCS compiler. |
Topic: 16F877A LCD 4-bit MODE |
[email protected]
Replies: 4
Views: 10711
|
Forum: General CCS C Discussion Posted: Fri Dec 21, 2012 6:08 am Subject: 16F877A LCD 4-bit MODE |
Flex_LCD Driver also does not work for me!
But I was able to display in LCD using AT-168 controller with the same hardware. |
|