This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: main.c | |
* Author: Rodolfo Escobar | |
* | |
* Created on 10 de febrero de 2021, 09:44 AM | |
*/ | |
//--- Bits de configuración --- | |
#pragma config POSCMOD = XT // Oscilador primario en modo XT | |
#pragma config FNOSC = PRIPLL // Oscilador primaro con PLL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: Fs_main.c | |
* Author: Rodolfo Escobar | |
* | |
* Created on 10 de agosto de 2020, 08:27 PM | |
*/ | |
//--- Bits de configuración --- | |
#pragma config POSCMOD = XT // Oscilador primario en modo XT | |
#pragma config FNOSC = PRIPLL // Oscilador primaro con PLL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: GA_UART_main.c | |
* Author: ChaN & Rodolfo Escobar | |
* | |
* Created on 27 de junio de 2020, 05:54 PM | |
*/ | |
//--- Bits de configuración --- | |
#pragma config POSCMOD = XT // Primary Oscillator Select (XT Oscillator mode selected) | |
#pragma config FNOSC = PRIPLL // Oscillator Select (Primary Oscillator with PLL module (HSPLL, ECPLL)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
float readfloat(FILE *f) { | |
float v; | |
fread((void*)(&v), sizeof(v), 1, f); | |
return v; | |
} | |
int main(int argc, char** argv) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
A = np.array([1.8,2.7,3.3],dtype='float32') | |
print(type(A)) | |
A_bytes = A.tobytes('C') # Formato para C | |
#--- Escribir archivo --- | |
f = open("miArchivo.dat", "wb") | |
f.write(A) | |
f.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Jun 7 17:53:45 2020 | |
@author: Rodolfo Escobar | |
""" | |
import numpy as np | |
from scipy.optimize import minimize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--- Bits de configuración --- | |
#pragma config POSCMOD = XT // Oscilador primario en modo XT | |
#pragma config FNOSC = PRIPLL // Oscilador primaro con PLL | |
#pragma config PLL96MHZ = ON // PLL activado | |
#pragma config PLLDIV = DIV2 // Entrada de 8MHz | |
#pragma config FWDTEN = OFF // Timmer de Watchdog desactivado | |
#pragma config JTAGEN = OFF // Puerto JTAG desactivado | |
//----------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat May 9 16:06:52 2020 | |
@author: Rodolfo E. Escobar U. | |
""" | |
import numpy as np | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: main.c | |
* Author: Rodolfo E. Escobar U. | |
* Device: PIC24FJ32GA002 | |
* Created on 4 de abril de 2020, 08:09 PM | |
*/ | |
// --- FUSES --- | |
// CONFIG2 | |
#pragma config POSCMOD = XT // Primary Oscillator Select (XT Oscillator mode selected) | |
#pragma config OSCIOFNC = OFF // Primary Oscillator Output Function (OSC2/CLKO/RC15 functions as CLKO (FOSC/2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Feb 11 13:00:32 2020 | |
@author: Rodolfo E. Escobar U. | |
""" | |
import numpy as np | |
from scipy.integrate import odeint |
NewerOlder