daeroro

Members
  • Content Count

    7
  • Joined

  • Last visited

About daeroro

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. daeroro

    pmod can period

    Well, I figure out a bug in the example code. In the CAN_Configure function : // Set CAN control mode to configuration CAN_ModifyReg(InstancePtr, CAN_CANCTRL_REG_ADDR, CAN_CAN_CANCTRL_MODE_MASK, CAN_ModeConfiguration ); needs to be change like this: CAN_ModifyReg(InstancePtr, CAN_CANCTRL_REG_ADDR, CAN_CAN_CANCTRL_MODE_MASK, CAN_ModeConfiguration << CAN_CANCTRL_MODE_BIT); So it can enter the configuration mode... After changing the code, CAN communication between Zybo-z7 and MCU works really well. You need to change your git example code.
  2. daeroro

    pmod can period

    Hi, @jpeyron Thanks for reply. Unfortunately, I can't alter the bit rate. The graph was changed even if I used same hardware design and SDK example. I don't know why. Have you ever tried to change bit rate and it worked?? thanks!!
  3. daeroro

    pmod can period

    Hi, vicentiu. I'm using vivado + sdk -hardware design : https://reference.digilentinc.com/learn/programmable-logic/tutorials/pmod-ips/start -sdk example : https://github.com/Digilent/vivado-library/blob/master/ip/Pmods/PmodCAN_v1_0/drivers/PmodCAN_v1_0/examples/TX.c + I ran the Lookback.c example and it worked!!
  4. daeroro

    pmod can period

    Hello, I'm working on zybo z7 & pmod can I want to transmit data from zybo z7 to other board(not zybo, tms570lc43x launchpad). So I took a test : (computer) - (usb2can) --------------------------- (can transceiver) - (tms570 board). It really worked well. But I took a test like this: (zybo-z7) - (pmod can) -------------------------------------- (can transceiver) - (tms570 board) It doesn't work!!!!! and the signal period is about 8 times slower than above picture.. How can I make it work? I need your advice thanks!!
  5. Thanks for answering @jpeyron Well,,, you missed the hyperlink of data sheet.. I already run the loop back demo and it did work properly. What I really want to do is transmitting data from fpga(zybo-z7) to mcu(TMS570LC4357 launch pad). So bit timing configuration is important, I think. Is that right that if I change the bit rate, the oscilloscope waveform changes? (What I meant is deltaT in waveform below) The deltaT(in below graph) doesn't change at all best regards, daero
  6. Thanks for reply!! I made vivado block design referencing this tutorial -> https://reference.digilentinc.com/learn/programmable-logic/tutorials/pmod-ips/start And the sdk code reference is this -> https://github.com/Digilent/vivado-library/blob/master/ip/Pmods/PmodCAN_v1_0/drivers/PmodCAN_v1_0/examples/TX.c The mode TX.c example uses is normal! Is this right that Pmod CAN has internal 20MHz clock source? In the schematic below, CSTCE20MV13L99-R0 datasheet says it's 20MHz Sorry for BAD english again..! Thanks for reading!!
  7. Hi I'm using pmod CAN module to communicate between zybo z7-10 and tms570LC4357 launch pad(Texas Instrument). The connection is like this : zybo z7-10( - Pmod CAN module) ----------------- CAN trasceiver(SN65HVD230) -- tms570LC4357 launch pad I took a test with zybo z7-10 - tms570LC4357 launch pad(bit rate = 250kbps), the oscilloscope graph is the graph with delta x = 82us, 1/delta x = 12.2KHz. And CAN doesn't work.. (the probe is picking CANH(red), CANL(yellow) in Pmod CAN module) I'd like to change bit rate, so I took a look the datasheet ( mcp25625). And change registers CNF1, CNF2, CNF3 CNF1 (0x41) -> (0x09) CNF2 (0xFB) -> (0xFF) CNF3 (0x86) -> (0x87) 250kbps -> 40kbps but...! the graph's period doesn't change at all.. Is there anything I shall do more things to change bit rate? Sorry for bad english.. please answer.. thx!!