Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.

Sign Up Here
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Volt.Tech

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

volt.tech Logo volt.tech Logo
Sign InSign Up

volt.tech

volt.tech Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Tags
  • Category
    • Amplifiers
    • Passives & Protection
    • Clocks & Timing
    • Diodes & Rectifiers
    • FPGAs & PLDs
    • Interface ICs & Transceivers
    • LEDs & Optoelectronics
    • Memories
    • MEMS & Sensors
    • Microcontroller
    • Power Management
    • RF & Microwave
    • Security & Smart Card
    • Motor Drivers
    • Wireless Connectivity
  • Groups
  • Add group
  • Badges
  • Help
  • Home
  • About Us
  • Contact Us
Home/node3

volt.tech Latest Questions

vikas Nagpal
  • 0
vikas Nagpal
Asked: June 13, 2023In: Microcontroller

How to Link node2 and node3 on module CAN1?

  • 0

Hi all, I am testing to configure node 2 and node 3 on module CAN1 to be linked to the inside can bus and out. My final aim is to transfer some data on cun node 1- 2 and receive it on can ...Read more

Hi all,

I am testing to configure node 2 and node 3 on module CAN1 to be linked to the inside can bus and out.

My final aim is to transfer some data on cun node 1- 2 and receive it on can nodes 1- 3 without any processing in the CPU.

no purifier configuration and messages to be transferred, no pack/ unpack function- just as simple as that loop back out.

so I set all needed configurations where I had the node working on normal mode( transfer and receive messages, filter, and messages defined), but also I removed the configurations of the filter and added to the configuration the needed flag

rc = canNodeConfig (& nodeConfig, reeCanNode);// set common configurations

* nodeSfr = IfxCan_getNodePointer (nodeConfig.can,nodeConfig.nodeId); nodeSfr->NPCR.B.LOUT = 1;

for both nodes 1- 2 and 1- 3.

what eventually happens is that I send from an outside source and it looks like the CPU receives (no errors on the bus) but the other bus has errors on it.

how can I be sure that the messages entered into that node? will interrupt for TX/RX receive?
what should I do to test it correctly?
is the setup OK for my purpose? (loop back out)?

Thank You

Read less
can1Infineonmcumicrocontrollermodulenode2node3
  1. Alex thomas
    Added an answer on June 14, 2023 at 10:23 am

    Hello, Connected to the internal CAN bus and loop back the messages received on node 2 to node 3 without any further processing by the CPU. To accomplish this, you can configure both nodes to operate in normal mode and enable loopback mode for node 2 using the LBP bit in the NPCR register. The LBP bRead more

    Hello,

    Connected to the internal CAN bus and loop back the messages received on node 2 to node 3 without any further processing by the CPU.

    To accomplish this, you can configure both nodes to operate in normal mode and enable loopback mode for node 2 using the LBP bit in the NPCR register. The LBP bit sets the loopback mode for the node, allowing it to receive its own transmitted messages.

    Here are the steps you can follow:

    • Configure both nodes to operate in normal mode as you have already done.
    • Enable loopback mode for node 2 by setting the LBP bit in the NPCR register to 1.
    • Transmit a message from an external source to node 2.
    • Verify that node 2 receives the message by checking the RMC and NCR registers.
    • Verify that node 3 receives the same message by checking the RMC and NCR registers.

    You can also use interrupts to receive messages on the nodes. You can enable interrupts for receive and transmit events and write interrupt service routines (ISRs) to handle the events. When a message is received, the corresponding receive interrupt will be triggered, and the data can be read from the received message object.

    Kind Regards,

    Alex Thomas

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  • 1 Answer
Answer

Sidebar

Ask A Question

Stats

  • Questions 448
  • Answers 436
  • Comments 0
  • Best Answers 9
  • Popular
  • Answers
  • Manoj

    Configuration using .dp vision in Infineon XDPL series IC .

    • 5 Answers
  • Linto

    Renesas RL78/G14 ADC interface code

    • 4 Answers
  • sachinsharma
    sachinsharma added an answer Hi @Farmanali, Infineon has a pervasive and wide range of… September 25, 2023 at 10:16 am
  • Alex thomas
    Alex thomas added an answer Hello, Right, existing LED drivers all have PWM engines. It… September 19, 2023 at 11:10 am
  • Julian White
    Julian White added an answer Hello, You should set handshake after setting property RtsEnable =… September 14, 2023 at 10:59 am
  • Julian White
    Julian White added an answer Hello @Vikas, Thanks for posting your question online. Yes, one… September 12, 2023 at 10:33 am
  • Alex thomas
    Alex thomas added an answer Hi @sachinsharma, XDPL8221 has a PWM dimming interface which is… September 4, 2023 at 11:01 am

Users

test7457901

test7457901

  • 0 Questions
  • 0 Answers
test43764860

test43764860

  • 0 Questions
  • 0 Answers
test15139391

test15139391

  • 0 Questions
  • 0 Answers

Explore

  • Tags
  • Category
    • Amplifiers
    • Passives & Protection
    • Clocks & Timing
    • Diodes & Rectifiers
    • FPGAs & PLDs
    • Interface ICs & Transceivers
    • LEDs & Optoelectronics
    • Memories
    • MEMS & Sensors
    • Microcontroller
    • Power Management
    • RF & Microwave
    • Security & Smart Card
    • Motor Drivers
    • Wireless Connectivity
  • Groups
  • Add group
  • Badges
  • Help

Footer

volt.tech

Volt.Tech

Find your spark

About Us

  • About Us
  • Contact Us
  • Groups

Legal Stuff

  • Privacy Policy
  • Faqs

Follow

© 2022 volt.tech. All Rights Reserved
With Love by volt.tech.