TC399 - Not able to set ASCLIN0 module at "Fast clock"

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User22654
Level 2
Level 2
5 questions asked First solution authored First like given

Hello,

I am working on TC399 LIN module.
Not able to set the ASCLIN0 module to Fast clock.

Observation:
- the CSR.CON bit doesn't get set by hardware.
- the hardware may be taking some more time to set CSR.CON bit.

I am referring Infineon TC39x user manual part 2, v2.0.0, section - 36.3.7.2

Q. What is the fA frequency for fast clock ?

0 Likes
1 Solution
User22654
Level 2
Level 2
5 questions asked First solution authored First like given

The problem is resolved.

Reason:
The value of CCUCON2 register was getting changed somehow. So that, ASCLINFDIV was getting disabled (no clock source getting selected for LIN fast clock).

Setting ASCLINFDIV bit to fsource2
followed by initialization mentioned in chap. 36 of user manual part 2, resolved the problem.

View solution in original post

0 Likes
3 Replies
Wangbk
Level 3
Level 3
25 sign-ins 10 replies posted First question asked

The fast clock can be selected through the CSR register.

The frequency of the ASCLIN Fast clock depends on the CCUCON2 register(Clocking System).

User22654
Level 2
Level 2
5 questions asked First solution authored First like given

Thank you for the reply @Wangbk 

I checked the CCUCON2 register. I observed in trace32 that, the ASCLINFDIV bit is zero (Disabled).
The value of CCUCON2 is "02001200".

0 Likes
User22654
Level 2
Level 2
5 questions asked First solution authored First like given

The problem is resolved.

Reason:
The value of CCUCON2 register was getting changed somehow. So that, ASCLINFDIV was getting disabled (no clock source getting selected for LIN fast clock).

Setting ASCLINFDIV bit to fsource2
followed by initialization mentioned in chap. 36 of user manual part 2, resolved the problem.

0 Likes