Author |
Message |
Topic: Hardware I2C on 16F18313 |
dezso
Replies: 4
Views: 11001
|
Forum: General CCS C Discussion Posted: Sat Nov 28, 2015 12:48 pm Subject: Hardware I2C on 16F18313 |
Yes it will be a slave.
"peripheral pin selection" yup, how to use it ? I guess than the compiler wont take care of that by itself, should I just figure out how to set up the I2C and than ... |
Topic: Hardware I2C on 16F18313 |
dezso
Replies: 4
Views: 11001
|
Forum: General CCS C Discussion Posted: Sat Nov 28, 2015 12:21 pm Subject: Hardware I2C on 16F18313 |
Datasheet say its on PIN RA1 SCK and RA2 SDA
Compiler "ver 5.050" gives me this error Error#99 Option invalid Wrong pins for H/W
Tried to swap many pin combination all say the same, I ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Sat Aug 15, 2015 2:26 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
After checking this code now I see that I'm not using hardware SPI, its a simple bit-bang SPI communication.
If you use the F628A chip than it should work fine, if you using different chip than pleas ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Sat Aug 08, 2015 3:08 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
After checking this code now I see that I'm not using hardware SPI, its a simple bit-bang SPI communication.
If you use the F628A chip than it should work fine, if you using different chip than pleas ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Fri Aug 07, 2015 2:37 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
My spi init code is in a separate file, I'll try to locate this project and update you.
Ty |
Topic: RF Modules with pic 16f |
dezso
Replies: 19
Views: 34563
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 2:34 pm Subject: RF Modules with pic 16f |
Read this please
https://www.sparkfun.com/datasheets/RF/KLP_Walkthrough.pdf |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Fri Mar 08, 2013 10:50 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Don't want to hijack this thread..sorry
/*
* File: main.c
* Author: DevXP
*
* Created on March 8, 2013, 9:40 PM
*/
#include <16F876A.H>
#device ICD=TRUE
#device *=1 ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Fri Mar 08, 2013 11:07 am Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Yes you are correct, the posted code is to receive.
I can post my transmit code later today, basically the config different and txdata send 4 byte
bb_xfer(0x34);
bb_xfer(0x33);
... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Tue Mar 05, 2013 11:03 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
First of all I like to thank everyone specially Eduardo.....
I cannot make your code work !
I have read the datasheet and from frustration I come up with this working solution, this code will tran ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Tue Feb 19, 2013 5:56 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
I made my simple SPI xfer_read code and was able to read back all registers, is this supposed to be the default setting ?
Register 0x00 = 0x10
Register 0x01 = 0x7E
Register 0x02 = 0x06
Register ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Thu Feb 14, 2013 3:35 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Once I have time this weekend, I will try to make my own bit-bang SPI_xfer will see if that help.
I built this project and it works, at least I know the hardware works.
https://sites.google.com/sit ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Wed Feb 13, 2013 10:14 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Ok
One thing I have noticed that while the LA show that NRF module returned 0x0E to the command 0x20 the rv=RF24_xfer(comm); returns 0x00
Tried software SPI or HW no change, whats wrong here ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Mon Feb 11, 2013 10:38 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
RX/TX same code
RF24_driver_use_example_TXdata
RF24_driver_use_example_RXdata
exception.
nRF24L01P.C/H is the exact copy of page 1 of this thread.
Eduardo I tried to remove the rv = spi_re ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Sun Feb 10, 2013 11:59 pm Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
#include <16F876A.H>
#device adc=10
#device ICD=TRUE
#device *=16
#device = PASS_STRINGS=IN_RAM
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High sp ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
dezso
Replies: 286
Views: 1351527
|
Forum: Code Library Posted: Sun Feb 10, 2013 11:22 am Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Don't know where is my stupidity but I cant make this work not even your test on with 16f876, I'm using 2xf876a instead of 628, but that shouldn't mater..
Tried with completely new project, 100% unmo ... |
|