Author Topic: ATSAMC21J18A dual CAN  (Read 1223 times)

0 Members and 1 Guest are viewing this topic.

Offline ziehaoTopic starter

  • Newbie
  • Posts: 8
  • Country: sg
ATSAMC21J18A dual CAN
« on: February 15, 2019, 09:20:00 am »
Hi all.

I am currently working on the ATSAMC21J series of MCUs, and I read that it has Dual independent CAN controllers as stated in
http://ww1.microchip.com/downloads/en/AppNotes/Atmel-42464-SAMC21-CAN-BUS-Firmware_ApplicationNote_AT6493.pdf

My question is what exactly does this mean? Is it able to connect to 2 different CANBUS and perform Transmit and Receive functions at the same time and not interfere with each other?

Thanks in advance!!
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: ATSAMC21J18A dual CAN
« Reply #1 on: February 15, 2019, 09:29:10 am »
Correct, Though you usually wouldn't need 2 independent transceivers n the same bus, as your code would usually be much faster than the canbus data

Normal applications might be hooking into 2 independant canbus networks, either using the data from both or acting as a gateway.
 
The following users thanked this post: JPortici, ziehao

Offline ziehaoTopic starter

  • Newbie
  • Posts: 8
  • Country: sg
Re: ATSAMC21J18A dual CAN
« Reply #2 on: February 15, 2019, 09:39:29 am »
Correct, Though you usually wouldn't need 2 independent transceivers n the same bus, as your code would usually be much faster than the canbus data

Normal applications might be hooking into 2 independant canbus networks, either using the data from both or acting as a gateway.

Thanks!!

Another question, though it is not about the CAN module. Not sure if I will need to pose this question in another topic?
The datasheet says the ATSAMC21J18 MCU has 6 SERCOM interface. Am I able to use 2 of the SERCOM as USART? Or in an extreme case, all 6 as USART?
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: ATSAMC21J18A dual CAN
« Reply #3 on: February 15, 2019, 09:53:15 am »
yes.

Citing from the datasheet (2016 version)

Quote
31. SERCOM – Serial Communication Interface

31.1. Overview

There are up to six instances of the serial communication interface (SERCOM) peripheral.
A SERCOM can be configured to support a number of modes: I2C, SPI, and USART. When SERCOM is
configured and enabled, all SERCOM resources will be dedicated to the selected mode.
The SERCOM serial engine consists of a transmitter and receiver, baud-rate generator and address
matching functionality. It can use the internal generic clock or an external clock to operate in all sleep
modes.

I was evaluating it 2 years ago for a product that would need to gather data from two networks and communicate only in one of the two. It was rather easy to set up despite ASF (altough i abandoned it quickly to write directly to registers for setup)
 

Offline ziehaoTopic starter

  • Newbie
  • Posts: 8
  • Country: sg
Re: ATSAMC21J18A dual CAN
« Reply #4 on: February 15, 2019, 09:57:42 am »
yes.

Citing from the datasheet (2016 version)

Quote
31. SERCOM – Serial Communication Interface

31.1. Overview

There are up to six instances of the serial communication interface (SERCOM) peripheral.
A SERCOM can be configured to support a number of modes: I2C, SPI, and USART. When SERCOM is
configured and enabled, all SERCOM resources will be dedicated to the selected mode.
The SERCOM serial engine consists of a transmitter and receiver, baud-rate generator and address
matching functionality. It can use the internal generic clock or an external clock to operate in all sleep
modes.

I was evaluating it 2 years ago for a product that would need to gather data from two networks and communicate only in one of the two. It was rather easy to set up despite ASF (altough i abandoned it quickly to write directly to registers for setup)

I see. Thank you very much!!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf