Example 1-1. Calling the Device_cal() function
//Device_cal is a pointer to a function
//that begins at the address shown
# define Device_cal (void(*)(void))0x3D7C80
... ...
EALLOW;
SysCtrlRegs.PCLKCR0.bit.ADCENCLK = 1;
(*Device_cal)();
SysCtrlRegs.PCLKCR0.bit.ADCENCLK = 0;
EDIS;
...
1.3.2.2 Configuring Input Clock Source and XCLKOUT Options (XCLK)
The XCLK register is used to choose the GPIO pin for XCLKIN input and to configure the XCLKOUT pin
frequency.
Figure 1-21. Clocking (XCLK) Register
15
8
Reserved
R-0
7
6
5
2
1
0
Reserved
XCLKINSEL
Reserved
XCLKOUTDIV
R-0
R/W-0
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 1-21. Clocking (XCLK) Field Descriptions
Bit
Field
Value
15-7
Reserved
Any writes to these bits must always have a value of 0.
6
XCLKINSEL
XCLKIN Source Select Bit: This bit selects the source
0
GPIO38 is XCLKIN input source (this is also the JTAG port TCK source)
1
GPIO19 is XCLKIN input source
5-2
Reserved
Any writes to these bits must always have a value of 0.
1-0
XCLKOUTDIV
XCLKOUT Divide Ratio: These two bits select the XCLKOUT frequency ratio relative to
SYSCLKOUT. The ratios are:
00
XCLKOUT = SYSCLKOUT/4
01
XCLKOUT = SYSCLKOUT/2
10
XCLKOUT = SYSCLKOUT
11
XCLKOUT = Off
(1)
The XCLKINSEL bit in the XCLK register is reset by XRS input signal.
(2)
Refer to the device data sheet for the maximum permissible XCLKOUT frequency.
System Control and Interrupts
72
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......