135 Precautions

1. The output of P60 P61 is a true open-drain port, if you want to output a high level, you need to connect an external pull-up resistor

 

2. The driving ability of the DAC part is very weak, and the DAC module is in the comparator module.

CGC->PER1 |= CGC_PER1_PGACMPEN_Msk;
	CMP_VREF_Init(CMP_CHANNEL_0,CMP_VDD_VSS_REFERENCE_VOLTAGE);
	CMP_VREF_Set_Value(CMP_CHANNEL_0,0);
	TESOPT = 0x3D;
	TESCTL  |= 1<<6;

 

Guess you like

Origin blog.csdn.net/C_ROOKIES/article/details/109286444