xe164 xe166 xe164f xe16x c166 xc2000 xe169
Das Register _KSCCFG wird verwendet im GPT, CAN und CC2.
Welche Aufgabe hat diese Regiester _KSCCFG ?
Die Bits "MODEN = Module Enable" und "Bit Protection for MODEN" sind
gestzt.
module kernel clock
Wehlche Aufgabe hat das "MODEN = Module Enable" Bit?
Verstehen ich das richtig das dieses Bit z.B. vom GPT eine interne Uhr
des Moduls einschaltet. Wenn ja kann man diese Uhr auslesen oder was ist
ihre Funktion?
module functionality
Wird hier der GPT
gestartet oder seine Funktionen aktiviert?
1 | /// Configuration of Kernel State Configuration Register:
|
2 | /// ----------------------------------------------------------------
|
3 | /// - Enable the CAN module(MODEN)
|
4 | /// - Enable Bit Protection for MODEN
|
5 |
|
6 |
|
7 | MCAN_KSCCFG = 0x0003; // load Kernel State Configuration Register
|
_____________________________________________________
Module Enable
This bit enables the module kernel clock and the
module functionality.
1B The module is switched on and can operate.
After writing 1 to MODEN, it is recommended
to read register KSCCFG to avoid pipeline
effects in the control block before accessing
other GPT registers.
Bit Protection for MODEN
This bit enables the write access to the bit MODEN.
It always reads 0. It is only active during the write
access cycle.
0B MODEN is not changed.
1B MODEN is updated with the written value.
http://www.keil.com/dd/docs/datashts/infineon/xe166m_um_v2_0.pdf
Seite 16-63