Jump to content

VishnuRam

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by VishnuRam

  1. I am trying to change the Baudrate of the PmodCan to suit my application needs. I could see that i can change the Baudrate by tweaking the registers CNF1 though CNF3. I dont understand this line of code 

    u8 CNF[3] = {0x86, 0xFB, 0x41}; 

    CAN_WriteReg(InstancePtr, CAN_CNF3_REG_ADDR, CNF, 3); 

    I see that only the register CNF3 is being written, however in the reference manual it has been mentioned that with the above code all three registers are being written. 

    Assuming the registers being set to the above values, how is the CAN clock set to a frequency of 20MHz?. With the above register values i get a Nominal bit time(NBT) of 21TQ. if oscillator frequency is assumed to be 100MHz(Max for PmodCan) then the baud rate comes out to be approximately 1250 Kbits/s. However with zynq processors the operating baud rate is declared as 115200. Can you please explain what i am missing here or where i am going wrong?

  2. Hi Enthusiastic,

    I am trying to implement PMOD can on the Kria  KV260 board which is also based on Zynq ultrascale+ MPSoC but in the step where the integration of hardware and software with vitis, i am getting an error that vitis couldnt find the assosciated header files. Did you also encounter this error? you can also verify if my hardware connection is right.

    Screenshot from 2022-05-04 20-30-39.png

×
×
  • Create New...