Today 22:13
Forum: The Lounge
Starter: Les
Views: 0
Replies: 10
Today 20:23
Forum: Proton Plus Compiler v3
Starter: kuhrig
Views: 0
Replies: 3
Today 19:10
Forum: Proton Plus Compiler v3
Starter: AlbertoFS
Views: 0
Replies: 0
Today 12:22
Forum: Website / Forum Issues
Starter: rcurl
Views: 0
Replies: 10
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Junior Member petemilligan's Avatar
    Join Date
    Jun 2017
    Posts
    20
    Thumbs Up
    Received: 16
    Given: 2
    Total Downloaded
    150.22 MB

    0 Not allowed!

    Default E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Sorry for this short request, my last message on this topic failed because Firefox wanted to update itself.

    Due to limitations on PIC18F24K40, I'm needing to use software RSOut/RSIn instead of the USART to talk to a pedantic E32-TTL-100 LoRa transmitter. Before I post a massively detailed 'Help me' message - Does anyone have any sample code to spare that communicates with this device? Information is scant on the internet, except a 'Wide-boy' Arduino project.

    Pete

  2. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,771
    Thumbs Up
    Received: 151
    Given: 152
    Total Downloaded
    3.03 GB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Due to limitations on PIC18F24K40
    What is the limitation? unless you're wedded to it perhaps an alternative?

    Although from a functional standpoint whether you use hardware or software async makes no difference. The only issue with bit banging is a seriously reduced speed, I've used 9600 and it ran flawlessly.

    For background info, Barak Dar put some SPI for the nRF24L01+ in the wiki
    George

  3. #3
    Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    364
    Thumbs Up
    Received: 64
    Given: 0
    Total Downloaded
    118.16 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Software uart receive can be very problematic. I'd steer clear of it unless it was my only choice.

  4. #4
    Junior Member petemilligan's Avatar
    Join Date
    Jun 2017
    Posts
    20
    Thumbs Up
    Received: 16
    Given: 2
    Total Downloaded
    150.22 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Quote Originally Posted by towlerg View Post
    What is the limitation? unless you're wedded to it perhaps an alternative?

    Although from a functional standpoint whether you use hardware or software async makes no difference. The only issue with bit banging is a seriously reduced speed, I've used 9600 and it ran flawlessly.

    For background info, Barak Dar put some SPI for the nRF24L01+ in the wiki
    PCB's are already fabricated. Doh!

    At 9600 receive and transmit to the device are working properly doing config etc.. All seems OK. The troubling bit is only on transmit proper (BTW - I can transmit proper from a PC connected FT232 to this module).

    I came across this: https://quadmeup.com/e45-ttl-100-not...ed-to-arduino/

    but I suspect that this is either a stop bit issue, or something that I can't quite translate between devices.

    thoughts? What else should I post

  5. #5
    Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    364
    Thumbs Up
    Received: 64
    Given: 0
    Total Downloaded
    118.16 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    The uart interface seems fairly standard (9600 baud, 8N1) so it's hard to see the stop bit being a problem.

    I assume you've verified the basics (3V3 logic levels, pic osc freq set correctly, 9600 baud bit time verified w/a scope, MODE pins set correctly, etc).

    If it works with a PC and FT232, what are you doing differently in the K40 than that setup? Are you monitoring the AUX pin?

  6. #6
    Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    364
    Thumbs Up
    Received: 64
    Given: 0
    Total Downloaded
    118.16 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    PCB's are already fabricated. Doh!
    Are you saying you can't use the hardware uart because of the pins you've connected?
    Which ones are you using? The K40 has PPS so you might be able to remap the uart pins.

  7. #7
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,771
    Thumbs Up
    Received: 151
    Given: 152
    Total Downloaded
    3.03 GB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    At 9600 receive and transmit to the device are working properly doing config etc.. All seems OK. The troubling bit is only on transmit proper (BTW - I can transmit proper from a PC connected FT232 to this module).
    Could you expand on the first bit and expain the second.

    Re the Arduino problems and solutions. The radio module neither knows nor cares what software sent the string of bytes (or otherwise) simply that there were sent.

    I didn't read the whole article, without the background it'd be pointless anyway, but are you refering to a break condition?

    thoughts? What else should I post
    I'd start from the begining, explain the progrect then explain the problem.
    George

  8. #8
    Junior Member petemilligan's Avatar
    Join Date
    Jun 2017
    Posts
    20
    Thumbs Up
    Received: 16
    Given: 2
    Total Downloaded
    150.22 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Quote Originally Posted by tumbleweed View Post
    Are you saying you can't use the hardware uart because of the pins you've connected?
    Which ones are you using? The K40 has PPS so you might be able to remap the uart pins.
    Thanks - Good call, but when I went down the PPS route I met this cul de sac: http://www.protonbasic.co.uk/showthr...651#post511651

    Pete

  9. #9
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,771
    Thumbs Up
    Received: 151
    Given: 152
    Total Downloaded
    3.03 GB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    I don't see the conection between your problem, which seems to something to do with async, and an issue with I2C on the PIC device you are using?
    George

  10. #10
    Junior Member petemilligan's Avatar
    Join Date
    Jun 2017
    Posts
    20
    Thumbs Up
    Received: 16
    Given: 2
    Total Downloaded
    150.22 MB

    0 Not allowed!

    Default Re: E32-TTL-100 and PIC18F24K40 - Requirement for marriage Councelor

    Quote Originally Posted by towlerg View Post
    I don't see the conection between your problem, which seems to something to do with async, and an issue with I2C on the PIC device you are using?

    Hi George, I'm not helping much here. Apologies. Answering two independent threads simultaneously. Nothing to do with I2C. This is Async Serial with RSOut/In.

    I've taken a scope download of a simple RSOut $AA on the PIC (Memory2 in Green) and the same $AA from an FT232 via a PC (Memory1 in Pink) to the E32-TTL-100 RXD pin. The trace is enclosed.

    The Pink one works. The Green one doesn't. I see that we're a fraction out on timing and peak. But I imagine that this would have been tolerable. Are we outside of acceptable bounds here?

    Pete
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. [SOLVED !] ADC Resolution Requirement
    By thetrueman in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 14th February 2009, 00:44
  2. Minimum spec Pic Requirement for SD Card
    By Ph1l in forum SWright's Feedback Forum
    Replies: 4
    Last Post: 2nd March 2006, 07:27

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts