Skip to content

microchip-pic-avr-examples/dspic33ck-curiosity-sent-loopback-demo

Repository files navigation

image

dspic33ck curiosity sent loopback demo

Board

Summary

The project depicts the usage of SENT module demo with loopback data transfer from two SENT peripherals, where one acts as a transmitter and other as receiver on dsPIC33CK Curiosity Board using MPLAB® Code Configurator.

Related Documentation

dsPIC33CK256MP508 datasheet for more information or specifications

Software Used

Hardware Used

Setup

Hardware Setup

  • Connect a micro-USB cable to port J7 of Curiosity board to USB port of PC
  • Connect a jumper wire from SENT_Tx (RD0) - SENT_Rx (RD1)

MPLAB® X IDE Setup

  • Open the dspic33ck-curiosity-sent-loopback-demo.X project in MPLAB® X IDE
  • Build and program the device

Serial Port Setup

Serial
SerialPort

Operation

  • The demo auto triggers two operation modes of SENT - Asynchronous and Synchronous, once the device is programmed.
  • The very first state is the Initialization state where the user configurable SENT Payload details are being initialized. User can edit the data inside the function if required.
  • In Asynchronous mode operation where the SENT_TX sends the data and SENT_RX peripheral receives the same data. On success the result will be printed on terminal and green LED starts glowing.
  • Succeeding the state is the Synchronous mode of operation, which also sends the data from SENT_Transmitter and receives in SENT_Receiver. On success, the result will be printed on terminal and green LED starts glowing.
  • Finally the SENT peripherals are reset to POR (Power On Reset) state at the deinitialization.
  • Note that printf() is redirected to UART1 by the compiler for this device
    SerialOutput

MCC Configurations

  • SENT TX Configuration :
    SentTx

  • SENT RX Configuration :
    Serial

  • UART Configuration :
    Serial

  • Pins Configuration :
    Pins

About

This is SENT_TX and SENT_RX loopback demo for dsPIC33CK Curiosity board

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published