[an error occurred while processing this directive]
|
Если работа с портами, то:
SPRU078A.pdf
General-Purpose Input/Output (GPIO)
работа младших 6 бит, код примерно такой:
#include "DSP28_Device.h"
в проге:
EALLOW; //Enable EALLOW
GpioMuxRegs.GPADIR.all |= 0x003F; //1 - configured as ai output
GpioMuxRegs.GPAMUX.all &= ~0x003f; //0 - configured as an I/O
EDIS; //Disable EALLOW
GpioDataRegs.GPADAT.all |= 0x003F; //1 - AND the pin is an output, then pull the pin high - выставить 1
GpioDataRegs.GPADAT.all &= ~0x003F; //0 - AND the pin is an output, then pull the pin low - выставить 0
E-mail: info@telesys.ru