Hello Support,
In TMS570LS3137 device,
VIM Channel 64 -- SCI Level 0
VIM Channel 13 -- LIN Level 0
How do I select any one of those channels using SCISETINTLVL register?
Thank you.
Regards
Pashan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello Support,
In TMS570LS3137 device,
VIM Channel 64 -- SCI Level 0
VIM Channel 13 -- LIN Level 0
How do I select any one of those channels using SCISETINTLVL register?
Thank you.
Regards
Pashan
Hi Pashan,
I'm not sure if I understand your question. The SCISETINTLVL determines whether each interrupt will be output as a level 0 or a level 1 interrupt to the VIM. To set an SCI interrupt type to level 0 you would clear the corresponding bit using the SCICLEARINTLVL. See the SCICLEARINTLVL register description in the TMS570LS3137 TRM (http://www.ti.com/lit/ug/spnu499a/spnu499a.pdf).
Mapping of peripheral interrupt outputs to the VIM is done in the VIM itself. Section 15.3.1 of the TMS570LS3137 TRM (http://www.ti.com/lit/ug/spnu499a/spnu499a.pdf) details how to remap interrupt channel inputs to the VIM.
Best regards,
Paul
Pashan,
LIN and SCI are separate modules. LIN module is located at 0xfff7e400. SCI module is located at 0xfff7e500. When the bit in SCISETINTLVL is zero, the associated interrupt goes to interrupt request 0. Otherwise, the interrupt goes to interrupt line 1.
Thanks and regards,
Zhaohong
Hello Zhahong,
Does this mean the SCI Module located at 0xFFF7E500 will always have Bit 6 [LIN MODE] of SCIGCR1 Register as ZERO by internal hardware?
Even if user makes Bit 6 of SCIGCR1 as ONE, it will always be stuck at ZERO for 0xFFf7E500 base address based SCI Peripheral.
I am confused about SCI and LIN in the Memory Map table of DATASHEET, but only one Chapter in spnu499a.pdf TRM file.
Hence the above question.
Question is what is the actual end-user difference between the two peripherals at the above two addresses?
Are they just the exact same peripheral design but used different names in the DATASHEET Memory Map Table to indicate as different rows of items or the two are having some inherent differences [other than connected to different VIM channels for Interrupt Request]?
Any information between the internal differences between those two peripherals as implemented inside TMS570LS3137 will help me understand it better.
I understood now the VIM Channel connections between SCI and LIN based on different BASE Addresses.
Thank you.
Regards
Pashan
Pashan,
I do not know exactly how they are implemented. I was told that there are separate RTLs for those two modules. From functionality perspective, you can consider that SCI module is a stripped down version of the LIN module. LIN module supports two modes of operation: LIN and SCI. SCI module only supports SCI mode.
Thanks and regards,
Zhaohong
Hello Zhaohong,
So, does this mean for TMS570LS0432 device there is no SCI Mode Interrupt possible?
Because in the spns186.pdf, for the VIM Channel 13 -- LIN level 0 interrupt
VIM Channel 27 -- LIN level 1 interrupt
There is no channel in VIM for SCI Level 0 or 1.
So, when SCI Peripheral at address 0xFFF7_E400 is operating in SCI Mode [Bit 6 of SCIGCR1 is ZERO], there will be no VIM Interrupt generated even though that Peripheral is mapped to either VIM Channel 13 or 27?
Thank you.
Regards
Pashan
Hello Pashan,
In the TMS570LS0432 device, there is no stand alone SCI IP so there will be no corresponding SCI LVL0 and LVL1 interrupts identified. When the LIN IP is used in SCI mode the interrupts will come as the LIN LVL0 or LVL1 interrupts. This is the same for the LS3137 device where the stand alone SCI interrupts will come as the SCI LVL0 and LVL1 interrupts and LIN IP used in SCI mode will come as LIN LVL0 or LVL1 interrupts.
Pashan,
I think that I finally got what you are asking. The interrupt request LIN level 0 is the level 0 from LIN module. No matter which mode the module is configured, the interrupt request level 0 comes from this signal. It is a LIN interrupt when the module is configured in LIN mode. It is a SCI interrupt when the module is configured as SCI mode.
Thanks and regards,
Zhaohong