Codigo para fpga de un brazo robotico controlado por push bottons
#include <p32xxxx.h> #include <plib.h> #pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF #pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_2 #define SYS_FREQ (16000000) int main() { unsigned int t; unsigned int button; unsigned int servo1; unsigned int servo2; unsigned int servo3; unsigned int servo4; unsigned int servo5; unsigned int servo6; unsigned int servo7; unsigned int servo8; unsigned int servo9; unsigned int servo10; unsigned int servo11; unsigned int servo12; unsigned int servo13; unsigned int servo14; unsigned int servo15; unsigned int servo16;