CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

sx1278 driver

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
acel



Joined: 09 Aug 2018
Posts: 8

View user's profile Send private message

sx1278 driver
PostPosted: Fri Jun 21, 2019 4:57 am     Reply with quote

Is there a driver for sx1278?
temtronic



Joined: 01 Jul 2010
Posts: 9239
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jun 21, 2019 10:21 am     Reply with quote

You need to post a link to the device datasheet !
As well WHICH 'SA1278' are you using ??
Also is this JUST the chip or a premade 'module' ?
Which PIC as 5 volt PICs tend to destroy 3 volt devices!
acel



Joined: 09 Aug 2018
Posts: 8

View user's profile Send private message

PostPosted: Fri Jun 21, 2019 11:39 am     Reply with quote

https://www.semtech.com/uploads/documents/DS_SX1276-7-8-9_W_APP_V6.pdf
newguy



Joined: 24 Jun 2004
Posts: 1908

View user's profile Send private message

PostPosted: Fri Jun 21, 2019 11:58 am     Reply with quote

I can't share any code as it's paid for and owned by my employer, but I can suggest this:
- the Semtech code available on github which is written for a linux environment can be quite easily ported to CCS C.
- I strongly recommend that you purchase a pre-built module, for example the RAK831 (or equivalent) and a raspberry pi; install and configure any one of the many prebuilt projects available on github.
- use a logic analyzer to sniff the SPI traffic, rasp pi <=> RAK831 (or equivalent).

Do this and you'll be up and running quite quickly.
temtronic



Joined: 01 Jul 2010
Posts: 9239
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jun 21, 2019 3:13 pm     Reply with quote

Ok, so step one is to decide on a 3 volt PIC.
I'l assume you're going to get a premade 'module' and not try to solder something together ??

Jay
acel



Joined: 09 Aug 2018
Posts: 8

View user's profile Send private message

PostPosted: Sat Jun 22, 2019 1:26 am     Reply with quote

Assume that a ready-made module will be used.
For example, this module:

https://www.likecircuit.com/433mhz-lora-ra-02-pinout-eagle-pcb-library/
temtronic



Joined: 01 Jul 2010
Posts: 9239
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jun 22, 2019 4:30 am     Reply with quote

Well, one easy way is to take the 'driver' from another micro series and convert into CCS style C. You're not the first one to use that device.
Also use Google to locate possible drivers for you. Not everyone using PICs comes to the CCS forum.
Usually the manufacturer will have a forum or apnotes (application notes) on how to use theri products.

That device, like most (all ?) wireless xcvrs, draws a LOT of power during xmt, about 120ma. Be SURE to use a high quality power supply good for at least 2 amps AND follow any layout/PCB design details the manfacturer lists in the datasheet.

Jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group