View previous topic :: View next topic |
Author |
Message |
acel
Joined: 09 Aug 2018 Posts: 8
|
sx1278 driver |
Posted: Fri Jun 21, 2019 4:57 am |
|
|
Is there a driver for sx1278? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9239 Location: Greensville,Ontario
|
|
Posted: Fri Jun 21, 2019 10:21 am |
|
|
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
|
|
|
newguy
Joined: 24 Jun 2004 Posts: 1908
|
|
Posted: Fri Jun 21, 2019 11:58 am |
|
|
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
|
|
Posted: Fri Jun 21, 2019 3:13 pm |
|
|
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
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9239 Location: Greensville,Ontario
|
|
Posted: Sat Jun 22, 2019 4:30 am |
|
|
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 |
|
|
|