diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index dccfa89..bca3521 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "TERCERO/ATR2/Teoria_2425.md", + "file": "TERCERO/IA/Teoría_2425.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "Teoria_2425" + "title": "Teoría_2425" } } ] @@ -78,8 +78,7 @@ } ], "direction": "horizontal", - "width": 300, - "collapsed": true + "width": 300 }, "right": { "id": "44cf06183e1c1c7d", @@ -178,25 +177,24 @@ }, "active": "a5daa8ea8214becf", "lastOpenFiles": [ - "TERCERO/ATR2/Pasted image 20250225091113.png", + "TERCERO/DAD/Teoria_2425.md", "TERCERO/ATR2/Teoria_2425.md", + "TERCERO/PI/Teoria_2425.md", + "TERCERO/SETR1/Teoria_2425.md", + "Pasted image 20250424120431.png", + "Pasted image 20250424115519.png", + "Pasted image 20250424113241.png", + "Pasted image 20250424110658.png", + "Pasted image 20250424110125.png", + "Pasted image 20250424105658.png", + "TERCERO/ATR2/Pasted image 20250225091113.png", "Pasted image 20250306121610.png", "Pasted image 20250306113133.png", "Pasted image 20250306113057.png", - "Pasted image 20250227131516.png", - "Pasted image 20250227120032.png", - "Pasted image 20250227115420.png", - "Pasted image 20250225113929.png", - "Pasted image 20250225113139.png", - "Pasted image 20250225111938.png", - "Pasted image 20250225111612.png", "Untitled.md", "Untitled 1.md", - "TERCERO/SETR1/Teoria_2425.md", "SEGUNDO/RC/Teoría_2324.md", "SEGUNDO/AC/Teoría_2324.md", - "TERCERO/PI/Teoria_2425.md", - "TERCERO/DAD/Teoria_2425.md", "TERCERO/ATR1/Teoría_2425.md", "conflict-files-obsidian-git.md", "TERCERO/DAD/images", diff --git a/Pasted image 20250424105658.png b/Pasted image 20250424105658.png new file mode 100644 index 0000000..2e74607 Binary files /dev/null and b/Pasted image 20250424105658.png differ diff --git a/Pasted image 20250424110125.png b/Pasted image 20250424110125.png new file mode 100644 index 0000000..ba0038a Binary files /dev/null and b/Pasted image 20250424110125.png differ diff --git a/Pasted image 20250424110658.png b/Pasted image 20250424110658.png new file mode 100644 index 0000000..d322531 Binary files /dev/null and b/Pasted image 20250424110658.png differ diff --git a/Pasted image 20250424113241.png b/Pasted image 20250424113241.png new file mode 100644 index 0000000..96a0b31 Binary files /dev/null and b/Pasted image 20250424113241.png differ diff --git a/Pasted image 20250424115519.png b/Pasted image 20250424115519.png new file mode 100644 index 0000000..ca35077 Binary files /dev/null and b/Pasted image 20250424115519.png differ diff --git a/Pasted image 20250424120431.png b/Pasted image 20250424120431.png new file mode 100644 index 0000000..4a815c5 Binary files /dev/null and b/Pasted image 20250424120431.png differ diff --git a/TERCERO/SETR1/Teoria_2425.md b/TERCERO/SETR1/Teoria_2425.md index d040a1a..a4701a1 100644 --- a/TERCERO/SETR1/Teoria_2425.md +++ b/TERCERO/SETR1/Teoria_2425.md @@ -339,5 +339,80 @@ Se en el registro de dirección de dato se pone un '1' es modo salida y en el pi ![[Pasted image 20250320120951.png]] ## 2. Timers +### Basado en comparadores +"Despertador". Salida comparada. +- Sin recarga automática +- Con recarga automática +- PWM +### Captura de eventos +"Cronómetro". +### Acumuladores de pulso +- Externo +- Del CLK interno ## 3. Conversores A/D y DAC ## 4. CLK y alimentación + +# TEMA 5: Conexiones serie en los μC +## 1. Introducción +Hay que distinguir entre: +1. interface serie y interface paralelo +2. comunicaciones síncronas y asíncronas +## 2. Puertos Serie Síncronos +Hay dos mecanismos que habilitan el dato en los puertos serie: +- **Flanco:** dato presente válido en flanco up/down +- **Nivel:** dato presente válido en nivel high/low +### Serial Peripheral Interface (SPI) +- MISO: Master In Slave Out +- MOSI: Master Out Slave In +- SCK: reloj +- SS: Slave Select +
+

NOTA

+

Tanto para leer como escribir SE ESCRIBE EN EL MASTER tanto para los dos R/W

+
+Hay 4 posibilidades para configurar la forma de la señal de reloj: +![[Pasted image 20250424105658.png]] +Para leer, se usa la configuración open-drain para poder conectar las lineas MISO/MOSI entre sí. +![[Pasted image 20250424110125.png]] +- Se hace la AND entre el dato que ponga el master y el del esclavo. **Si el master quiere leer del esclavo tendrá que escribir 0xFF**. +#### Selección multi esclavo +![[Pasted image 20250424110658.png]] +**Para seleccionar un sólo esclavo, se pone como primer dato la dirección.** La forma correcta para hacer esto es: +1. Enviar la direccion +2. Esperar un delay +3. R/W +### Inter Integrated Circuit (I²C) +![[Pasted image 20250424113241.png]] +1. **Condición de START:** el master mantiene SCL en alto y baja la linea de dato +2. **Frame de dirección:** + - 7b para direccion + - 1b para R/W + - bit a bit el dato en la linea desde el master y si el slave lo pone a 0: ACK, si lo pone a 1: NACK (and cableada). +3. **Frame de dato:** + - El master sigue poniendo pulsos + - Se pueden leer en rafaga (N direcciones consecutivas desde la inicial) + - Si es R, el ACK/NACK lo pone el master +4. **Condición de STOP:** + - El master pone a 1 la linea de datos cuando el CLK esta a 1. +## 3. USB +### Tipo de transferencias y protocolo +Cada EP se puede configurar para realizar las transferencias: +- **control:** peticiones estándar USB +- **interrupción:** envío confiable de datos en tiempo acotado +- **bulk:** envío confiable de datos sin garantía de latencia +- **isócronas:** datos en tiempo real + ![[Pasted image 20250424115519.png]] +### Transacciones +![[Pasted image 20250424120431.png]] +DATA0/DATA1: lectura +NAK: no ACK - buffer vacío +STALL: colgado y necesita reset + +### Descriptores +Principales (importantes para el examen): +- Dispositivo +- Configuración +- Interface +- Endpoint + +# 3300 VS 3333 en CLK: ruido frecuencia 1KHz por ruido porque los 23 datos anteriores se transfieren bien pero el ultimo da fallo al estar los tiempos tan apurados, 3333 se escucha mejor