• AVR Freaks

Hot!Using Esuart Function In PIC18F24K40

Author
AMPS
Super Member
  • Total Posts : 468
  • Reward points : 0
  • Status: offline
2019/07/10 00:28:36 (permalink)
0

Using Esuart Function In PIC18F24K40

Dear all,
I am using PIC18F24k40 with 8mhz external crystal. I wanted to use MCC generated file for Implementing  MODBUS RTU code . I have few question related here. its not full code 
 
1)  I wanted to access the value by byte by byte EUSART_Write( eusartRxBuffer[0]); which i wanted to use for further modbus implementation
 
post edited by AMPS - 2019/07/10 00:30:42

Attached Image(s)


Amps
*.*.*.*.*.*.*.*.*.*.*.*.*
#1

2 Replies Related Threads

    PA91
    Junior Member
    • Total Posts : 70
    • Reward points : 0
    • Joined: 2012/09/03 21:45:40
    • Location: 0
    • Status: offline
    Re: Using Esuart Function In PIC18F24K40 2019/11/10 23:39:18 (permalink)
    0
    Hi,
    You can use Interrupt based code if you are creating a buffer.
    attaching MCC generated EUSART-Interrupt code for your reference
     
     
    #2
    AMPS
    Super Member
    • Total Posts : 468
    • Reward points : 0
    • Status: offline
    Re: Using Esuart Function In PIC18F24K40 2019/11/11 01:30:52 (permalink)
    0
    I have modified code. Esuart function wont giving proper results. So  i Have written my receive and transmit interrupt and worked fine.

    Amps
    *.*.*.*.*.*.*.*.*.*.*.*.*
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5