I am developing CAN Communication with TJA1145 AND CYT2B9CAE classic CAN Example.
But If you request the CAN transmission in the current example, there is a problem that transmission is not possible after Pending.
The attached file is a CAN communication code using SPI0 and CAN0_2(CAN2).
What is Problem(Occured Send Pending)?
I can find some documents related to CYT2B7 (like data sheet and User manual), but there is no definition of the registers (address, content...)
I have found this:
but this is empty and just say that we need to downlaod html files. But I cannot find the file in question.
Could you please tell me how to have access to this TVII_B_E_1M_Registers_TRM.html and others..
Thanks for your help.
I would like to generate fast sine using PWM and DMA (128kHz sine). This signal would source inverter, it would be needed complementary PWM signal, but only one of PWM out can be active during one half of sine, the second out has to be fixed low during this time (like on the below picture).
I used PWM dedicated for Motor Control, because it has got a feature to force states on the PWM output (line selection). I prepared 3 lookup tables with Period, Duty cycle and Line selection.
PWM is running in Up mode, at the beggining of PWM cycle there are sent new values from lookup tables to TCPWM registers (sending is done using DMA).
period[i] -> TCPWM0_GRPx_CNTy_PERIOD_BUFF
duty[i] -> TCPWM0_GRPx_CNTy_CC0_BUFF
lineSel[i] -> TCPWM0_GRPx_CNTy_LINE_SEL_BUFF
I set up a following configuration:
An result of such configuration:
Unfortunately chops are not in accordance with defined values in lookup tables. My suspicion is that DMA transfer tooks to much time. Transfer is triggered on CC1 event, unCC1 is set to 1u.
1. What can be a latency of DMA?
2. Is it possible to set up Trigger Multiplexer that one Trig out (TCPWM) is shared between three Trig ins of DMA (ch 8, 1 and 0)?
3. Any additional hints how to configure peripherials to achive mentioned signal?
i am using SDL 7.0 with Starter Kit board and GHS Multi. Using GPIO example in SDL, we program only cpu CM4 using Lauterbach Power Debug tool. After modifying gpio port/pin to ones connected to Traveo II SK board, we are able to toggle LED1 and LED4 and read input button (SW1). In GPIO example uses GPIO interrupt where LED is toggled in interrupt handler when button is pressed. However this example (GPIO interrupt) does not work as expected. It is noted cpu (CM4) does not enter interrupt handler when breakpoint is set in the handler/ISR.
in my troubleshooting, CLK_FAST frequency is only 50 MHz. this CLK_FAST is configured in SystemInit() function. how can we configure it to 160 MHz ?
I am using CYT2B9 controller in my new project. I couldn't find the user manual for the controller anywhere. Can anybody please guide me to find this document?
Varun RShow Less
Hello Cypress Team,
I tried to raise ticket in https://cypress.force.com/customer portal but I am getting massage like [we are temporarily not able to accept new Failure Analysis cases.],
So I am communicating our issue using this portal.
In file [Can_Callout.c] in function [Can_CanIfRxIndication],
We are using Can module Instead of Can_30_Mcan module but the definitions are coming from configuration as Can_30_Mcan, so in function Can_CanIfRxIndication there are difference in function declaration (ex : from configuration it is declared as CanIf_30_Mcan_RxIndication and from Cypress it is declared as CanIf_RxIndication).
For now to avoid compilation error we are using direct declared function is mapped (CanIf_RxIndicationAsr403).
I have attached screenshots for your reference.
Kindly help us to resolve this issue.
Rakesh Wachanekar.Show Less
Looking at the CYT3BB/CYT4BB datasheet, page 73, the last item in group 7 appears to have an incorrect description:
TCPWM0 Group #1 Counter #56 through 59 (PWM0_56 to PWM0_59) to SAR2 ch#4 through SAR2 ch#7
But TCPWM0 Group#1 only has 12 counters.
Am I correct in thinking this is actually Group# 0? (Which appears to match the nomenclature of PWM0_## being group #0).
I finally got a clean compile for a simple program using IAR EWARM on the TVII-B-H-8M board. However the linker complains that several functions are not defined:
I've searched everywhere in the TVII Sample Drivers pack and these functions are called frequently, but there are no function definitions for them.
Where can I find these?