SlideShare a Scribd company logo
Page 1 
Universidad de Huánuco 
Facultad de Ingeniería de Sistemas e Informática
Page 2 
Agenda 
•Base del Conocimiento 
–Diagramas de Bode 
–Diseño de Filtros Analógicos 
–Diseño de un Electrocardiograma 
–Microcontrolador PIC con Labview 
•Motor de Inferencia 
–Técnicas de Diagnóstico de un ECG 
•Medios de Comunicación 
–Prototipo de un ECG
Page 3 
Acerca del ECG-UDH
Page 4 
Modelando un PIC 
PIC 
Procesador 
Memoria 
Temporizador 
ADC 
USB 
GLCD 
Oscilador
Page 5 
Modelando un PIC 
Input Variables Output (User Interface) Variables (Link to other Systems) Embedded Computer Software Hardware Signal Conditioning Data Conversion Output Drive (display, keypad etc.)
Page 6 
Microcontrolador PIC 
•Como sabemos los micro controladores de 8 bits de Microchip se dividen en 3 gamas: 
–PIC10 y PIC12: Gama baja 
–PIC16: Gama media 
–PIC18: Gama alta
Page 7 
Estructura Interna de un PIC
Page 8 
Estructura Externa de un PIC
Page 9 
Organización de las Memorias de un PIC 
a) Enfoque de Von Neumann b) Enfoque de Harvard 
Data 
Memory 
Program 
Memory 
Address 
Data 
Central 
Processing 
Unit (CPU) 
Input/ 
Output 
Central 
Processing 
Unit (CPU) 
Data 
Memory 
Input/ 
Output 
Program 
Memory 
Address 
Data 
Address 
Data 
Address 
Data
Page 10 
Arquitectura RISC-PIC 
A CISC machine is generally 
recognised by: 
• Many instructions (say over one 
hundred), some with considerable 
sophistication; 
• Instruction words are of different 
length; 
• Instructions take different 
lengths of time to execute. 
A RISC machine is generally 
recognised by: 
• Few instructions (say well below 
one hundred), 
• Each performs a very simple 
action; 
• All instructions are single word; 
• All, or almost all instructions 
take the same length of time to 
execute. 
Digital 
Program 
I/0 
Microprocessor 
Data 
Memory 
Memory 
Core 
Analog 
I/0 
& Timers 
Counters 
Reset 
Power 
Clock 
Address Buses 
Internal Data & 
Further 
Peripheral 
Further 
Peripheral 
Interrupt(s) 
A microcontroller = microprocessor core + memory + peripherals
Page 11 
Diagrama de Bloques del PIC 
The CPU 
Address for Program Memory 
Data from Program Memory, carrying instruction word 
Address for Data Memory 
Data bus for Data Memory and peripherals 
Program Memory 
Data Memory 
Extra “non- volatile” Data Memory 
Counter/Timer Peripheral 
Digital Input/ Output Ports 
It is easy to see the Program memory, which uses Flash memory technology. Alongside this comes the Stack, which we meet later. Microchip call the main data memory “File Registers”. There is another section of data memory which uses EEPROM technology.
Page 12 
Registro de Estado de un PIC 
Condition Code Flags
Page 13 
Memoria de Programa y Stack 
Program Counter 
16 Series instructions which invoke the Stack 
Unimplemented memory space, still addressable by the 13-bit 16F84A program address bus. 
Program Counter points to locations in program memory 
The program must start here 
The Interrupt Service Routine must start here
Page 14 
Mapa de Memoria de Datos y (SFR) Registro de Funciones Especiales 
msb is “bank select bit” 
(Status register). 
These are the Special Function Registers, which allow the CPU to interact with the peripherals 
General purpose memory
Page 15 
Interface con Periféricos vía el 
Registro de Funciones Especiales 
Control SFR(s) 
Peripheral 
Data Transfer SFR(s) 
Microcontroller 
Core 
"Outside 
World" 
Interrupt(s) 
Microcontroller Interaction with its Peripherals, via Special Function Register (SFR) and Interrupt 
 microcontroller peripherals can be configured in software to operate in a number of different modes, 
to do this certain control data must be sent to them to set them up in the desired way 
 once in use, there will be data flow between core and peripheral, 
 there may still be need for further control data, 
 these needs are commonly met by means of dedicated, memory - mapped registers, sometimes 
called Special Function Registers, 
 this approach gives the microcontroller manufacturer great flexibility to extend a microcontroller 
family – SFRs for new peripherals can easily be located in gaps in the memory map.
Page 16 
Configuraciones Globales del PIC 
The configuration word determines certain operating features of the microcontroller. It is in program memory, but cannot be accessed in normal operation. It is written to during the programming process. You set its value either by response to a dialogue box in MPLAB, or by use of Assembler Directives, at the head of your programme. 
The 16F84A Configuration Word
Page 17 
Tipos de Memorias de un PIC
Page 18 
Características de los Osciladores 
Oscilador Primario 
Oscilador Secundario 
Oscilador Interno 
Frecuencias de Oscilación Altas (XT, HS) 
Frecuencias de Oscilación Medias (LP) 
Frecuencias de Oscilación Bajas (RC) 
Con PLL 
Sin PLL 
Con Pre Escala 
Sin Pre Escala 
Con Pre Escala 
Sin Pre Escala 
Multiplica Frecuencia de Oscilación 
Divide Frecuencia de Oscilación 
Divide Frecuencia de Oscilación
Page 19 
Modos del Oscilador 
The 16F84A can be configured to operate in four different oscillator modes, using R-C, crystal or ceramic oscillators. It can also accept an external clock source. The user selects which mode is to be used by setting bits in the Configuration Word. 
XT – Crystal 
The standard crystal configuration, intended for crystals or ceramics in the range 1MHz to 4MHz. 
HS – High Speed 
A higher drive version of the XT configuration, for higher frequency crystals and ceramic resonators. Intended for frequencies in the region of 4MHz or greater. It leads to the highest current consumption of all the oscillator modes. 
LP – Low Power 
Intended for low frequency crystal applications, and gives the lowest power consumption possible. Will however operate at any frequency below around 200kHz. 
RC - Resistor-Capacitor 
Requires connection of an external resistor and capacitor. The lowest cost way of getting an oscillator, but should not be used when any timing accuracy is required.
Page 20 
Modos del Oscilador 
b) Resistor-Capacitor 
c) Externally Supplied Clock 
a) Crystal or Ceramic, HS, XT, or LP 
RA2 
RA3 
RA4/T0CKI 
MCLR 
V 
RB0/INT 
RB1 
RB2 
RB3 RB4 
RB5 
RB6 
RB7 
RA1 
RA0 
OSC1/CLKIN 
OSC2/CLKOUT 
SS VDD Supply voltage 
Oscillator connections 
Port A, Bit 0 
Port A, Bit 2 Port A, Bit 1 
Port A, Bit 3 
*Port A, Bit 4 
Ground 
**Port B, Bit 0 
Port B, Bit 1 
Port B, Bit 2 
Port B, Bit 3 
Port B, Bit 7 
Port B, Bit 6 
Port B, Bit 5 
Port B, Bit 4 
*also Counter/Timer clock input 
**also external Interrupt input 
Reset 
1 
9 10 
18 
The Oscillator Pins
Page 21 
Diagramas de un Oscilador Primario
Page 22 
Acerca del Conversor Analógico a Digital ADC del PIC
Page 23 
Acerca del ADC del PIC
Page 24 
Agenda 
•Base del Conocimiento 
–Diagramas de Bode 
–Diseño de Filtros Analógicos 
–Diseño de un Electrocardiograma 
–Microcontrolador PIC con Labview 
•Motor de Inferencia 
–Técnicas de Diagnóstico de un ECG 
•Medios de Comunicación 
–Prototipo de un ECG 
ADC
Page 25 
Acerca del ECG-UDH
Page 26 
Características ADC del DSPIC 
•Conversión vía aproximación sucesiva SAR. 
•Velocidad de conversión de hasta 500 ksps. 
•Hasta 16 pines de entrada analógica. 
•Pines de referencia de Voltaje Externo. 
•Modo Automático de Escaneo de Canal . 
•Fuente seleccionable de activación de conversión. 
•Buffer de resultado de conversión de 16 word 
•Modos seleccionables de llenado de Buffers. 
•Cuatro opciones de alineamiento de resultado. 
•Modos de operación durante el estado Sleep e Idle.
Page 27 
Acerca del ADC del PIC
Page 28 
Flujo grama de operación del ADC
Page 29 
Estructura Módulo A/D del PIC24F 
VREF+ 
VREF- 
A/D converter 
Conversion Control 
Bus Interface 
Data 
Format 
Sample Sequence Control 
AN0 
AN1 
S/H 
AN15 
CH0 
8/16 Level 
Results 
Buffer 
VR+ 
VR- 
VR Select 
AVDD 
AVSS
Page 30 
Eje y: Tiempo de Conversión A/D = Tiempo de Adquisición más Conversión 
Tiempo de 
Adquisición 
Tiempo de Conversión 
Inicio del Tiempo de Adquisición 
Fin de 
Conversión 
Entrada 
Analógica 
Tiempo de Conversión A/D 
Clock A/D 
TAD
Page 31 
Registro de Control ADC
Page 32 
Eje x: Tiempo de Muestreo 
AD1CON3<ADCS7:ADCS0> 
TCY to 256*TCY 
RCAD 
FCY = FOSC/2 
TAD 
AD1CON3<ADRC> 
1 
0 
AD Clock Postscaler † by 1 to 256
Page 33 
Proceso de Operación del ADC
Page 34 
Configuración del Clock del ADC
Page 35 
Aspectos de Precisión Digital
Page 36 
Diagrama de Bloques del ADC 10bits 
AVDD 
AVSS 
VREF+ 
VREF- 
VR+ 
VR- 
VR Select 
AD1CON2<VCFG2:VCFG0> 
AVSS 
AVDD 
1xx 
VREF- 
VREF+ 
011 
VREF- 
AVDD 
010 
AVSS 
VREF+ 
001 
AVSS 
AVDD 
000 
VR- 
VR+ 
VCFG2:VCFG0 
AD1CON2 Register 
bit15 
CSSL13=0 
CSSL14=0 
CSSL15=0 
BUFM 
bit0 
ALTS 
CSNA 
VCFG2 
VCFG1 
VCFG0 
bit8 
SMPI1 
SMPI 0 
SMPI3 
SMPI2 
BUFS 
bit7 
--- 
--- 
--- 
--- 
---
Page 37 
Diagrama de Bloques del ADC 10bits 
AN0 
AN1 
AN15 
Mux A 
VR- 
AN1 
AD1CHS<CH0SA3:CH0SA0> 
AD1CHS<CH0NA> 
VINH 
VINL 
(0) 
(1) 
AD1PCFG Register 
bit15 
CSSL10=0 
CSSL13=0 
CSSL14=0 
CSSL8=0 
PCFG1 
bit0 
PCFG0 
PCFG2 
PCFG15 
PCFG14 
PCFG13 
………… 
bit8 
AD1CON2 Register 
bit15 
CSSL13=0 
CSSL14=0 
BUFM 
bit0 
ALTS 
CSNA 
VCFG2 
VCFG1 
VCFG0 
SMPI1 
SMPI 0 
SMPI3 
SMPI2 
BUFS 
bit7 
--- 
--- 
--- 
--- 
--- 
bit8 
AD1CHS Register 
bit15 
CH0SA1 
bit0 
CH0SA0 
CH0SA2 
CH0NA 
bit7 
CH0SA3 
CH0SB1 
CH0SB0 
CH0SB2 
CH0NB 
CH0SB3 
--- 
--- 
--- 
--- 
--- 
--- 
AD1CSSL Register 
bit15 
CSSL13=0 
CSSL14=0 
CSSL1 
bit0 
CSSL0 
CSSL2 
CSSL15 
CSSL14 
CSSL13 
…………
Page 38 
Escaneo de Canales del ADC 
ADCBUF Buffer 
+ 
- 
CH 0 
AN15 
AN14 
…. 
AN5 
AN4 
AN3 
AN2 
AN1 
AN0 
+B 
- B 
+A 
- A 
VREF- 
AN1 
AN0 
AN2 
AN13 
AN14 
INT 
ADCBUF0 
AD1CSSL Register 
bit15 
CSSL13=0 
CSSL14=0 
CSSL1 
bit0 
CSSL0 
CSSL2 
CSSL15 
CSSL14 
CSSL13 
AN13 
………… 
bit8 
AD1CON2 Register 
bit15 
CSSL13=0 
CSSL14=0 
BUFM 
bit0 
ALTS 
CSNA 
VCFG2 
VCFG1 
VCFG0 
SMPI1 
SMPI 0 
SMPI3 
SMPI2 
BUFS 
bit7 
--- 
--- 
--- 
--- 
---
Page 39 
Diagrama de Bloques del ADC 10 bits 
VINH 
VINL 
S/H 
Mux A 
Mux B 
AD1CON1<ASAM> 
AD1CON1<SAMP> 
Señal de Conversion completa 
0 
1 
bit8 
AD1CON2 Register 
bit15 
CSSL13=0 
BUFM 
bit0 
ALTS 
CSNA 
VCFG2 
VCFG1 
VCFG0 
SMPI1 
SMPI 0 
SMPI3 
SMPI2 
BUFS 
bit7 
--- 
--- 
--- 
--- 
---
Page 40 
Diagrama de Bloques del ADC 10 bits 
VINH 
VINL 
S/ H 
AD1CON1<ASAM> 
AD1CON1<SAMP> 
Conversion complete Signal 
ADC1BUF0 : ADC1BUF15 
RESULT 
VR+ 
VR- 
AD1CON1<DONE> 
AD1CON3<SAMC4:SAMC0> (7) 
0 TAD to 31 TAD 
AD1CON1 <SSRC2:SSRC0> 
Clearing AD1CON1<SAMP> (0) 
Active Transition on INT0 pin (1) 
Timer4 Compare ends (2) 
Evitar 0 TAD 
A/D 
converter 
VR- 
VR+
Page 41 
Diagrama de Bloques del ADC 10 bits 
0000 00dd dddd dddd ssss sssd dddd dddd dddd dddd dd00 0000 sddd dddd dd00 0000 
RESULT 
FORMAT 
AD1CON1<FORM1:FORM0> 
AD1CON2<BUFM> = „0‟ 
AD1CON2<BUFS> 
AD1CON2<SMPI3:SMPI0> 
ADC1BUF0 
: : 
: 
: 
: 
: 
ADC1BUF15 
AD1CON2<BUFM> = „1‟ 
ADC1BUF0 : : ADC1BUF7 
ADC1BUF8 
: 
: 
ADC1BUF15 
0 
1
Page 42 
Ejercicio N1: Digitalizar la Señal Analógica ECG 
•Tareas a realizar: 
–Programar el PIC con MPLAB en C18. 
–Realizar la conversión digital de una señal analógica en Proteus con PIC usando Potenciómetro. 
•Resultado esperado: 
–Digitalización de una señal analógica y su visualización usando LCD.
Page 43 
Objetivos del Laboratorio 
•Configurar el ADC 
•Configurar los puertos de E/S 
•Leer el ADC y mostrarlos en LEDs 
VDD 
Vss PIC24 
AN5 
POT R6 
RA7-RA0 
LEDs D10-D3
Page 44 
Pasos a Realizar 
•Open the project 
–C:RTC203_PRCLab5Lab5.mcp 
•Open the file 
–C:RTC203_PRCLab5Lab5.c 
•Look for ADCInit() function and configure ADC by initializing the registers AD1CON1, AD1CON2, and AD1CON3 looking into the Register details on the next few pages. 
–STEP 1: AD1CON1 
•Select Integer Format Result 
•Auto Conversion Start 
•Sample after conversion 
–STEP 2: AD1CON2 
•Select AVDD and AVSS as references 
•Disable Scan mode 
•Interrupt at 16th sample/Convert sequence 
•16*1 level buffer 
•Always use Mux A 
–STEP 3: AD1CON3 
•Select Sample Time = 13TAD 
•Conversion Time is always 12TAD 
•Select AD Clock Source such that you get 16 samples in around 1 mSec (16 ksps) 
•Assume 1TCY =.25 uS (FCY = 4 MHz)
Page 45 
Pasos a Realizar 
•Continue to configure ADC by initializing the registers AD1CHS, AD1PCFG, and AD1CSSL looking into the Register details on the next few pages. STEP 4: AD1CHS Set the positive sample input channel for MUX A to use AN5 Set the negative input channel for MUX A to use VR- STEP 5: AD1PCFG Set AD1PCFG so that the only pin using analog functionality is AN5 STEP 6: AD1CSSL Channel scanning is not enabled, so no input channels should be selected for scanning 
•Build the project and program the device 
•Procedure to Test 
–Vary the POT and observe LEDs
Page 46 
Configurando el Registro ADC 
AD1CON1: A/D CONTROL REGISTER 1 
ADON 
-- 
ADSIL 
-- 
-- 
-- 
FORM1 
FORM0 
Bit:8 
Bit:15 
ADC Module enable bit 
ADC Module enable/disable in IDLE mode 
Result Format 00: Intiger (0000 00dd dddd dddd) 01: Signed Intiger (ssss sssd dddd dddd) 10: Fractional (dddd dddd dd00 0000) 11: Signed Fractional (sddd dddd dd00 0000) 
SSRC2 
SSRC1 
SSRC0 
-- 
-- 
ASAM 
SAMP 
DONE 
Start Sampling, If ASAM is „0‟ 
Conversion Status bit 
Bit:0 
Bit:7 
Conversion Trigger Source Selection Bits 
000: Manual Conversion Trigger 
001: Active transition on INT0 pin triggers conversion 
010: Timer3 compare triggers conversion 
111: Auto conversion 
Auto Sample Selection bit 1: Sample immediately after completion of last conversion. 0: Sample on setting of „SAMP‟
Page 47 
Configurando el Registro AD1CON2 
VCFG2:VCFG0 
VR+ 
VR- 
000 
AVDD 
AVSS 
001 
VREF+ 
AVSS 
010 
AVDD 
VREF- 
011 
VREF+ 
VREF- 
1xx 
AVDD 
AVSS 
VCFG2 
VCFG2 
VCFG0 
-- 
-- 
CSCNA 
-- 
-- 
BUFS 
-- 
SMPI3 
SMPI2 
SMPI1 
SMPI0 
BUFM 
ALTS 
VR Select 
AVDD 
AVSS 
VREF+ 
VREF- 
VR+ 
VR- 
VCFG2:VCFG0 
Bit:8 
Bit:15 
Scan CH0 Mux A Input 
Bit:0 
Bit:7 
SMPI3:SMPI0 
Interrupt Event 
(Sample/convert sequence) 
0000 
each 
0001 
alternate 
.... 
…. 
1110 
Every 15th 
1111 
Every 16th 
Buffer Status bit, is valid only when BUFM = „1‟ 1: Buffer 8-F is being filled, can access Buffer 0-7 0: Buffer 0-7 is being filled, can access Buffer 8-F 
Buffer Mode Select bit 1: Buffer configured as two 8-words buffers 0: Buffer configured as one 16-words buffers 
Sample alternatively MUX-A & MUX-B
Page 48 
Configurando el Registro AD1CON3 
SAMC4:SAMC0 
Sampling Time 
00000 
0 TAD 
00001 
1 TAD 
.... 
…. 
11110 
30 TAD 
11111 
31 TAD 
ADRC 
-- 
-- 
SAMC4 
SAMC3 
SAMC2 
SAMC1 
SAMC0 
ADCS7 
ADCS6 
ADCS5 
ADCS4 
ADCS3 
ADCS2 
ADCS1 
ADCS0 
ADCS7:ADCS0 
Conversion Clock 
00000000 
TCY ( FCY ) 
00000001 
2*TCY ( FCY / 2 ) 
.... 
…. 
11111110 
255*TCY ( FCY / 255 ) 
11111111 
256*TCY ( FCY / 256 ) 
Bit:8 
Bit:15 
A/D conversion Clock Source 
1: ADRC is used 
0: System clock is used 
Bit:0 
Bit:7 
A/D Sample Time Selection bits 
A/D Conversion Clock Selection bits 
ADCS = (TAD/TCY) - 1
Page 49 
Configurando el Registro AD1CHS 
CH0SB3:CH0SB0 
CH0 Positive Input for MUX B 
0000 
AN0 
0001 
AN1 
.... 
…. 
1110 
AN14 
1111 
AN15 
CH0NB 
-- 
-- 
-- 
CH0SB3 
CH0SB2 
CH0SB1 
CH0SB0 
Bit:8 
Bit:15 
CH0 Negative input for MUX A 1: AN1 0: VR- 
CH0NA 
-- 
-- 
-- 
CH0SA3 
CH0SA2 
CH0SA1 
CH0SA0 
Bit:0 
Bit:7 
CH0SA3:CH0SA0 
CH0 Positive Input for MUX A 
0000 
AN0 
0001 
AN1 
.... 
…. 
1110 
AN14 
1111 
AN15 
CH0 Negative input for MUX B 1: AN1 0: VR- 
VREF- 
AN15 
AN0 
ANxx 
+B 
- B 
+ A 
- A 
AN15 
AN0 
ANxx 
VREF- 
AN1 
+ 
- 
CH 0 
AN1 
CH0SB3:CH0SB0 
CH0SA3:CH0SA0 
CH0NB 
CH0NA
Page 50 
Configurando el AD1PCFG: Registro de Configuración de Puertos 
PCFG15 
PCFG14 
PCFG13 
PCFG12 
PCFG11 
PCFG10 
PCFG9 
PCFG8 
Bit:8 
Bit:15 
Bit:0 
Bit:7 
PCFG7 
PCFG6 
PCFG5 
PCFG4 
PCFG3 
PCFG2 
PCFG1 
PCFG0 
Analog Input Pin Configuration Control bits 0 to 15 1: Pin for corresponding analog channel (ANxx) is in digital mode 0: Pin for corresponding analog channel (ANxx) is in analog mode 
AD1CSSL : A/D Input Scan Select Regsiter 
CSSL15 
CSSL14 
CSSL13 
CSSL12 
CSSL11 
CSSL10 
CSSL9 
CSSL8 
Bit:8 
Bit:15 
Bit:0 
Bit:7 
CSSL7 
CSSL6 
CSSL5 
CSSL4 
CSSL3 
CSSL2 
CSSL1 
CSSL0 
A/D Input Channel Scan Selection bits 0 to 15 
1: Corresponding analog channel (ANxx) is selected for sequential scanning 
0: Corresponding analog channel (ANxx) is ignored for sequential scanning
Page 51 
Resultado Esperado 
•El valor del POT es promediado cada 16 muestras en 1 ms. 
•El valor del POT es mostrado en los LEDs como un valor binario desde 0 hasta 255 
•El Pin RB2 cambia de valor cada 16 muestras (con una frecuencia de 500 Hz)
Page 52 
Agenda 
•Base del Conocimiento 
–Diagramas de Bode 
–Diseño de Filtros Analógicos 
–Diseño de un Electrocardiograma 
–Microcontrolador PIC con Labview 
•Motor de Inferencia 
–Técnicas de Diagnóstico de un ECG 
•Medios de Comunicación 
–Prototipo de un ECG 
USB
Page 53 
Acerca del ECG-UDH
Page 54 
Interfaces USB 
USB 
• Creado por Intel en el año 1994, versión 1.0. 
• En el año 1998 se lanza la versión 1.1 con una velocidad de 
transferencia baja de 1.5 Mbps y a full capacidad de 12 Mbps. 
• En el año 2000, se lanza la versión 2.0 de alta capacidad con 480 Mbps.
Page 55 
USB: Bus Serial Universal 
• Auto détección & configuraóion (Plug&Play) 
• Energía en el Bus 
• 3 velocidades: Low- 1.5 Mbps, Full- 12 Mbps, 
High- 480 Megabits/second 
RS232 
Paralelo 
PS/2 
Tipos de 
Aplicación 
Extend the functionality of 
your computer! 
Data Analysis, 
Data Logging, 
Firmware Updates, 
Diagnostics, 
Embedded Applications!
Page 56 
Características del USB 
NRZI Data Encoding 
Half duplex – data transmission can go in only one direction at a time 
Bus Power to each device: 
4.40 - 5.25 V 
Guaranteed 100 mA 
500 mA maximum through negotiation 
~ 5.0 V ~ 3.3 V 
VBUS D+ D- GND 
VBUS D+ D- GND 
4-wire connection 
Differential Signaling
Page 57 
Características del USB 
“mini-B” Plug FS, HS Peripheral 
“B” Plug FS, HS Peripheral 
“A” Plug USB Host
Page 58 
Características del USB 
Guaranteed Latency Guaranteed Data 
Integrity 
Interrupt 
Bulk 
Isochronous 
PIC18F4550 family supports all these transfer types.
Page 59 
USB Pipes 
HOST PC 
Big USB Pipe 
12Mb/s 
Small Pipe to each USB 
device (up to 127) 
Tiny Pipes (endpoints)
Page 60 
Client Software <-> Function 
Client 
Software 
Interface 
USB Device 
Host 
Endpoints 
Data Flows 
Buffers 
Pipes
Page 61 
El Dispositivo Lógico 
Device 
(Manufacturer: Microchip Technology) 
(Product: Mouse in a Circle Demo) 
Configuration 
Interface 
IN (Endpoint 0) 
USB System Software 
(default control pipes) 
USB Device-Specific Pipe(s) 
(Human Interface Device) 
HID TX/RX Functions 
(MCHPFSUSB FW) 
Analog/Digital I/O 
OUT (Endpoint 0) 
IN (Endpoint x) 
OUT (Endpoint x) 
These settings are 
represented by a 
Device Descriptor 
Table, stored in 
firmware.
Page 62 
Trama USB 
BULK 
BULK 
BULK 
BULK 
BULK 
BULK 
BULK 
BULK 
Tx Voice 
Tx Line 
Interrupt, 
Control, 
Low Speed 
Trame = 1ms 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Stereo Audio 
Rx Voice 
Rx Line 
Slot 
SOF 
Low Speed 
Low Speed 
BULK 
BULK 
Scanner
Page 63 
Periféricos USB 
63 
Joystick 
Mouse 
SD Card 
Reader 
MCHP 
RS-232 
Data 
UPS Logger 
Keyboar 
d 
Generic 
Human Interface Device 
Class (HID) 
Mass Storage 
Device Class (MSD) 
Communication 
Device Class (CDC) 
Digitizer 
LibUSB WinUSB 
Custom Class 
(Vendor Class) 
Audio 
Class 
MIDI 
Speaker
Page 64 
El Proceso de Enumeración 
DETACHED 
POWERED 
Power (self/bus) 
DEFAULT 
Bus reset 
ADDRESS 
Get Device Descriptor 
CONFIGURED 
Get Descriptors 
ATTACHED 
Cable Connected 
SUSPENDED
Page 65 
Auto Detección: Full Velocidad 
+5V 
D+ 
D-GND 
Transceiver 
USB 
Connector 
Peripheral Device 
VUSB 3.3 V 
Full Speed Identification 
D+ line pull-up 
1.5 k±5% 
USB PIC® MCU
Page 66 
Auto Detección: Baja Velocidad 
+5V 
D+ 
D-GND 
Transceiver 
USB 
Connector 
Peripheral Device 
VUSB 3.3 V 
Low Speed Identification 
D- line pull-up 
1.5 k±5% 
USB PIC® MCU
Page 67 
On-chip Pull-up Resistors 
+5V 
D+ 
D-GND 
Transceiver 
USB 
Connector 
Peripheral Device 
VUSB 3.3 V 
On-chip pull-up resistors 
available! 
USB PIC® MCU
Page 68 
Address and Configuration: EP0 
 See Chapter 9 in USB 2.0 Spec for more info. 
Other Endpoints 
Endpoint 0 IN 
(Control Data) 
Endpoint 0 OUT 
(Control Data) 
Dual Port/Access RAM 
Descriptors 
Control Transfers 
USB PIC® MCU
Page 69 
Descriptores 
Device 
Configuration 1 
Interface 0 
Endpoint 
Interface 1 
Endpoint 
Endpoint 
Endpoint 
To other Configurations if any 
To other Interfaces if any 
String 0 
String 1 
String N 
Descriptors are typically stored in non-volatile/Flash memory
Page 70 
Ejemplo de Descriptores 
PICDEM™ USB 
Microchip 
Device 
Configuration 1 
Interface 0 
Endpoint 
Manu. String 
Prod. String 
USB 2.0, VID = 0x04D8, 
PID = 0x0007, Num. Configurations, Strings? 
Configuration #1: Bus-Powered, 
Remote Wakeup, 500mA, Num. Interfaces 
Interface #0: HID Class, Num. Endpoints 
Endpoint 1 IN, Interrupt Transfer Type, 64-byte buffer, Poll every 3 ms 
Unicode Characters 
Go USB! 
Other String
Page 71 
MCHPFSUSB Software Framework - Device Descriptor Table - 
usb_descriptors.c 
Descriptors 
VID & PID 
Class Specific 
/* Device Descriptor */ 
ROM USB_DEVICE_DESCRIPTOR device_dsc= 
{ 0x12, // Size of this descriptor in bytes 
USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type 
0x0200, // USB Spec Release Number 
CDC_DEVICE, // Class Code 
0x00, // Subclass code 
0x00, // Protocol code 
EP0_BUFF_SIZE, // Max packet size for EP0, 
0x04D8, // Microchip Vendor ID 
0x000C, // Product ID ID 
…
Page 72 
CDC – RS-232 Emulation 
PC Computer 
PIC® Microcontroller 
USB Cable 
Hyper Terminal 
CDC 
INF File Required 
(Supplied in MCHPSUSB) 
Standard Windows Drivers 
Design Considerations: 
•~80 KB/s max 
•Bulk Transfers 
•PC applications can access the device as though it is connected to a serial COM port
Page 73 
MCHPFSUSB Framework - Polled Program Flow - 
Reset 
main() 
InitializeSystem() 
while(1) 
Your application code 
USBDeviceTasks() 
ProcessIO() 
USB Stack 
Cooperative Multitasking!! 
No blocking functions. 
Use state machine. 
You edit UserInit() 
Function Services 
CDCTxService() MSDTasks() Re-arm OUT Endpoint (HID & Generic)
Page 74 
MCHPFSUSB Framework - Interrupt Program Flow - 
Reset 
main() 
InitializeSystem() 
while(1) 
Your application code 
ProcessIO() 
You edit UserInit() 
USB Interrupt Context 
USBDeviceTasks() 
USBDeviceAttach() 
Function Services 
Notifies the stack when the device is attached 
CDCTxService() MSDTasks() Re-arm OUT Endpoint (HID & Generic)
Page 75 
Código de Ejemplo 
#include “Compiler.h” #include “USBusb.h” #include “USBusb_function_cdc.h” #include “HardwareProfile.h” void UserInit(void){ … … } void ProcessIO(void){ if((USBDeviceState < CONFIGURED_STATE)||(USBSuspendControl==1)) return; … … CDCTxService(); } static void InitializeSystem(void){ #if define … #endif UserInit(); USBDeviceInit(); } int main(void){ InitializeSystem(); USBDeviceAttach(); while(1){ ProcessIO(); } } 
Main.c 
Needed (usb_config.h is called by usb.h) 
Put your initialization code here 
Put your application code (state machine) here 
No need to change 
Conditional compiling (no need to change) 
USBDeviceTasks() is executed in an ISR (High Priority PIC18, _USB1Interrupt() PIC24 & PIC32)
Page 76 
Agenda 
•Base del Conocimiento 
–Diagramas de Bode 
–Diseño de Filtros Analógicos 
–Diseño de un Electrocardiograma 
–Microcontrolador PIC con Labview 
•Motor de Inferencia 
–Técnicas de Diagnóstico de un ECG 
•Medios de Comunicación 
–Prototipo de un ECG 
GLCD
Page 77 
Acerca del ECG-UDH
Page 78 
Pantallas Gráficas LCD (GLCD) 
RA0/AN02RA1/AN13RA2/AN2/VREF-/CVREF4RA3/AN3/VREF+ 5RA4/T0CKI/C1OUT/RCV6RA5/AN4/SS/LVDIN/C2OUT7RA6/OSC2/CLKO14OSC1/CLKI13RB0/AN12/INT0/FLT0/SDI/SDA33RB1/AN10/INT1/SCK/SCL34RB2/AN8/INT2/VMO35RB3/AN9/CCP2/VPO36RB4/AN11/KBI0/CSSPP37RB5/KBI1/PGM38RB6/KBI2/PGC39RB7/KBI3/PGD40RC0/T1OSO/T1CKI15RC1/T1OSI/CCP2/UOE16RC2/CCP1/P1A17VUSB18RC4/D-/VM23RC5/D+/VP24RC6/TX/CK25RC7/RX/DT/SDO26RD0/SPP019RD1/SPP120RD2/SPP221RD3/SPP322RD4/SPP427RD5/SPP5/P1B28RD6/SPP6/P1C29RD7/SPP7/P1D30RE0/AN5/CK1SPP8RE1/AN6/CK2SPP9RE2/AN7/OESPP10RE3/MCLR/VPP1U2PIC18F4550X1CRYSTALC122pFC222pF12345ICSP 1-5CONN-SIL5MCLRPGDPGCMCLRPGCPGD1234AN 4-3-ECGCONN-H4 CS11CS22GND3VCC4V05RS6R/W7E8DB09DB110DB211DB312DB413DB514DB615DB716RST17-Vout18 LCD2AMPIRE128X64CS1CS2 CS1CS2 DI DI RWERST RWERST 12 3 RV410k 12345 J2CONN-SIL5U2(RC0/T1OSO/T1CKI) R410k1265Pasa U57809C12100nFC13100nFC14100uF16VC15100uF16VC16100nFC17100nFVI1VO3 U77805 VDD V+ V- V+ VCC1D+ 3D- 2GND4J3USBCONN321 DE ALIMENTACION +/- 9V y 5V326 7481 U1OP07V+ 326 7481 U8OP07V- R310kR1410kSUMADOR
Page 79 
Características de los GLCD
Page 80 
Controladores GLCD para Escribir Byte 0xAB
Page 81 
Instrucciones del Controlador GLCD
Page 82 
Diagrama de Bloque del Controlador GLCD
Page 83 
Código del Proyecto ECG
Page 84 
Agenda: 
UDH Rumbo a la Acreditación Internacional

More Related Content

What's hot

Arm7 document
Arm7  documentArm7  document
Arm7 document
N Harisha
 
Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUs
Premier Farnell
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
Praveen Chary
 
atmega8
atmega8atmega8
ARM COMPLETE DETAIL PART 4
ARM COMPLETE DETAIL PART 4ARM COMPLETE DETAIL PART 4
ARM COMPLETE DETAIL PART 4
NOWAY
 
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetAtmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
sang2792
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
Raghav Shetty
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
Dr.YNM
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
Tanmay Bakshi
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
Pantech ProLabs India Pvt Ltd
 
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Rajan Gautam
 
8051 archi
8051 archi8051 archi
8051 archi
VJ Aiswaryadevi
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
Premier Farnell
 
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based MicrocontrollerBlinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Omkar Rane
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
MAIYO JOSPHAT
 
Avr report
Avr reportAvr report
Avr report
NITISH KUMAR
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM Architecture
Linaro
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
Vinit Vyas
 
MICROPROCESSORS & MICROCONTROLLERS
MICROPROCESSORS & MICROCONTROLLERSMICROPROCESSORS & MICROCONTROLLERS
MICROPROCESSORS & MICROCONTROLLERS
khalil zeineddine
 
ARM7TDM
ARM7TDMARM7TDM
ARM7TDM
Ramasubbu .P
 

What's hot (20)

Arm7 document
Arm7  documentArm7  document
Arm7 document
 
Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUs
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
 
atmega8
atmega8atmega8
atmega8
 
ARM COMPLETE DETAIL PART 4
ARM COMPLETE DETAIL PART 4ARM COMPLETE DETAIL PART 4
ARM COMPLETE DETAIL PART 4
 
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetAtmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
 
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
 
8051 archi
8051 archi8051 archi
8051 archi
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
 
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based MicrocontrollerBlinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
 
Avr report
Avr reportAvr report
Avr report
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM Architecture
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
 
MICROPROCESSORS & MICROCONTROLLERS
MICROPROCESSORS & MICROCONTROLLERSMICROPROCESSORS & MICROCONTROLLERS
MICROPROCESSORS & MICROCONTROLLERS
 
ARM7TDM
ARM7TDMARM7TDM
ARM7TDM
 

Similar to 2014 ii c08t-sbc pic para ecg

Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
mkazree
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.ppt
AakashRawat35
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
Sayan Chakraborty
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
Siva Kumar
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
Vivek Venugopal
 
Atmega16
Atmega16Atmega16
Atmega16
Thrived Kumar
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
818Farida
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03
Premier Farnell
 
Pic16 c7x
Pic16 c7xPic16 c7x
Pic16 c7x
sharmeejeyam
 
pic_1.pdf
pic_1.pdfpic_1.pdf
pic_1.pdf
ZatinGupta2
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
Anbuselvi Mathivanan
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
RAMPRAKASHT1
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
gauravholani
 
dsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCsdsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCs
Premier Farnell
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
AlexTronciu
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
GauravRaikar3
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
arlabstech
 
datasheet.pdf
datasheet.pdfdatasheet.pdf
datasheet.pdf
nesrinetaamallah
 
Atmega 8
Atmega 8Atmega 8
Atmega 8
Amri Yusron
 

Similar to 2014 ii c08t-sbc pic para ecg (20)

Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.ppt
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
Atmega16
Atmega16Atmega16
Atmega16
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03
 
Pic16 c7x
Pic16 c7xPic16 c7x
Pic16 c7x
 
pic_1.pdf
pic_1.pdfpic_1.pdf
pic_1.pdf
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
 
dsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCsdsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCs
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 
datasheet.pdf
datasheet.pdfdatasheet.pdf
datasheet.pdf
 
Atmega 8
Atmega 8Atmega 8
Atmega 8
 

More from Aland Bravo Vecorena

Trabajo n` 1 primera especie partitura completa
Trabajo n` 1 primera especie   partitura completaTrabajo n` 1 primera especie   partitura completa
Trabajo n` 1 primera especie partitura completa
Aland Bravo Vecorena
 
01.1 sistemasdeinformacion erp_odoo
01.1 sistemasdeinformacion erp_odoo01.1 sistemasdeinformacion erp_odoo
01.1 sistemasdeinformacion erp_odoo
Aland Bravo Vecorena
 
Seminario de tesis 01_introduccion
Seminario de tesis 01_introduccionSeminario de tesis 01_introduccion
Seminario de tesis 01_introduccion
Aland Bravo Vecorena
 
Clase cim n07-Robotica
Clase cim n07-RoboticaClase cim n07-Robotica
Clase cim n07-Robotica
Aland Bravo Vecorena
 
fiis-unheval-resolución comité de inversiones unheval
fiis-unheval-resolución comité de inversiones unhevalfiis-unheval-resolución comité de inversiones unheval
fiis-unheval-resolución comité de inversiones unheval
Aland Bravo Vecorena
 
fiis-unheval-mou techno scientific industrial park unheval - huánuco
fiis-unheval-mou techno scientific industrial park unheval - huánucofiis-unheval-mou techno scientific industrial park unheval - huánuco
fiis-unheval-mou techno scientific industrial park unheval - huánuco
Aland Bravo Vecorena
 
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánucofiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
Aland Bravo Vecorena
 
Plan Campus Tecnológico
Plan Campus TecnológicoPlan Campus Tecnológico
Plan Campus Tecnológico
Aland Bravo Vecorena
 
Informe Campus Cientifico
Informe Campus Cientifico Informe Campus Cientifico
Informe Campus Cientifico
Aland Bravo Vecorena
 
Plan Campus Industrial
Plan Campus IndustrialPlan Campus Industrial
Plan Campus Industrial
Aland Bravo Vecorena
 
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
Aland Bravo Vecorena
 
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
Aland Bravo Vecorena
 
Exposicion 2017 ptci-gorehco-UNHEVAL
Exposicion 2017 ptci-gorehco-UNHEVALExposicion 2017 ptci-gorehco-UNHEVAL
Exposicion 2017 ptci-gorehco-UNHEVAL
Aland Bravo Vecorena
 
Exposicion 2017 ptci-gorehco
Exposicion 2017 ptci-gorehcoExposicion 2017 ptci-gorehco
Exposicion 2017 ptci-gorehco
Aland Bravo Vecorena
 
Productos Agricolas de Exportacion en la Region Huanuco
Productos Agricolas de Exportacion en la Region HuanucoProductos Agricolas de Exportacion en la Region Huanuco
Productos Agricolas de Exportacion en la Region Huanuco
Aland Bravo Vecorena
 
Diagnostico Productivo de la Region Huánuco
Diagnostico Productivo de la Region HuánucoDiagnostico Productivo de la Region Huánuco
Diagnostico Productivo de la Region Huánuco
Aland Bravo Vecorena
 
Diagnostico Macro Economico de la Region Huanuco
Diagnostico Macro Economico de la Region HuanucoDiagnostico Macro Economico de la Region Huanuco
Diagnostico Macro Economico de la Region Huanuco
Aland Bravo Vecorena
 
Exposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVALExposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVAL
Aland Bravo Vecorena
 
Exposicion 2016 ptci-unheval
Exposicion 2016 ptci-unhevalExposicion 2016 ptci-unheval
Exposicion 2016 ptci-unheval
Aland Bravo Vecorena
 
Exposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVALExposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVAL
Aland Bravo Vecorena
 

More from Aland Bravo Vecorena (20)

Trabajo n` 1 primera especie partitura completa
Trabajo n` 1 primera especie   partitura completaTrabajo n` 1 primera especie   partitura completa
Trabajo n` 1 primera especie partitura completa
 
01.1 sistemasdeinformacion erp_odoo
01.1 sistemasdeinformacion erp_odoo01.1 sistemasdeinformacion erp_odoo
01.1 sistemasdeinformacion erp_odoo
 
Seminario de tesis 01_introduccion
Seminario de tesis 01_introduccionSeminario de tesis 01_introduccion
Seminario de tesis 01_introduccion
 
Clase cim n07-Robotica
Clase cim n07-RoboticaClase cim n07-Robotica
Clase cim n07-Robotica
 
fiis-unheval-resolución comité de inversiones unheval
fiis-unheval-resolución comité de inversiones unhevalfiis-unheval-resolución comité de inversiones unheval
fiis-unheval-resolución comité de inversiones unheval
 
fiis-unheval-mou techno scientific industrial park unheval - huánuco
fiis-unheval-mou techno scientific industrial park unheval - huánucofiis-unheval-mou techno scientific industrial park unheval - huánuco
fiis-unheval-mou techno scientific industrial park unheval - huánuco
 
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánucofiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
fiis-unheval-mou proyecto parque tecno cientifico industrial unheval - huánuco
 
Plan Campus Tecnológico
Plan Campus TecnológicoPlan Campus Tecnológico
Plan Campus Tecnológico
 
Informe Campus Cientifico
Informe Campus Cientifico Informe Campus Cientifico
Informe Campus Cientifico
 
Plan Campus Industrial
Plan Campus IndustrialPlan Campus Industrial
Plan Campus Industrial
 
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
Ante Proyecto del Campus Tecnológico del Parque Científico - Tecnológico - In...
 
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
Ante Proyecto del Campus Científico del Parque Científico - Tecnológico - Ind...
 
Exposicion 2017 ptci-gorehco-UNHEVAL
Exposicion 2017 ptci-gorehco-UNHEVALExposicion 2017 ptci-gorehco-UNHEVAL
Exposicion 2017 ptci-gorehco-UNHEVAL
 
Exposicion 2017 ptci-gorehco
Exposicion 2017 ptci-gorehcoExposicion 2017 ptci-gorehco
Exposicion 2017 ptci-gorehco
 
Productos Agricolas de Exportacion en la Region Huanuco
Productos Agricolas de Exportacion en la Region HuanucoProductos Agricolas de Exportacion en la Region Huanuco
Productos Agricolas de Exportacion en la Region Huanuco
 
Diagnostico Productivo de la Region Huánuco
Diagnostico Productivo de la Region HuánucoDiagnostico Productivo de la Region Huánuco
Diagnostico Productivo de la Region Huánuco
 
Diagnostico Macro Economico de la Region Huanuco
Diagnostico Macro Economico de la Region HuanucoDiagnostico Macro Economico de la Region Huanuco
Diagnostico Macro Economico de la Region Huanuco
 
Exposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVALExposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVAL
 
Exposicion 2016 ptci-unheval
Exposicion 2016 ptci-unhevalExposicion 2016 ptci-unheval
Exposicion 2016 ptci-unheval
 
Exposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVALExposicion 2016 PTCI-UNHEVAL
Exposicion 2016 PTCI-UNHEVAL
 

Recently uploaded

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 

Recently uploaded (20)

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 

2014 ii c08t-sbc pic para ecg

  • 1. Page 1 Universidad de Huánuco Facultad de Ingeniería de Sistemas e Informática
  • 2. Page 2 Agenda •Base del Conocimiento –Diagramas de Bode –Diseño de Filtros Analógicos –Diseño de un Electrocardiograma –Microcontrolador PIC con Labview •Motor de Inferencia –Técnicas de Diagnóstico de un ECG •Medios de Comunicación –Prototipo de un ECG
  • 3. Page 3 Acerca del ECG-UDH
  • 4. Page 4 Modelando un PIC PIC Procesador Memoria Temporizador ADC USB GLCD Oscilador
  • 5. Page 5 Modelando un PIC Input Variables Output (User Interface) Variables (Link to other Systems) Embedded Computer Software Hardware Signal Conditioning Data Conversion Output Drive (display, keypad etc.)
  • 6. Page 6 Microcontrolador PIC •Como sabemos los micro controladores de 8 bits de Microchip se dividen en 3 gamas: –PIC10 y PIC12: Gama baja –PIC16: Gama media –PIC18: Gama alta
  • 7. Page 7 Estructura Interna de un PIC
  • 8. Page 8 Estructura Externa de un PIC
  • 9. Page 9 Organización de las Memorias de un PIC a) Enfoque de Von Neumann b) Enfoque de Harvard Data Memory Program Memory Address Data Central Processing Unit (CPU) Input/ Output Central Processing Unit (CPU) Data Memory Input/ Output Program Memory Address Data Address Data Address Data
  • 10. Page 10 Arquitectura RISC-PIC A CISC machine is generally recognised by: • Many instructions (say over one hundred), some with considerable sophistication; • Instruction words are of different length; • Instructions take different lengths of time to execute. A RISC machine is generally recognised by: • Few instructions (say well below one hundred), • Each performs a very simple action; • All instructions are single word; • All, or almost all instructions take the same length of time to execute. Digital Program I/0 Microprocessor Data Memory Memory Core Analog I/0 & Timers Counters Reset Power Clock Address Buses Internal Data & Further Peripheral Further Peripheral Interrupt(s) A microcontroller = microprocessor core + memory + peripherals
  • 11. Page 11 Diagrama de Bloques del PIC The CPU Address for Program Memory Data from Program Memory, carrying instruction word Address for Data Memory Data bus for Data Memory and peripherals Program Memory Data Memory Extra “non- volatile” Data Memory Counter/Timer Peripheral Digital Input/ Output Ports It is easy to see the Program memory, which uses Flash memory technology. Alongside this comes the Stack, which we meet later. Microchip call the main data memory “File Registers”. There is another section of data memory which uses EEPROM technology.
  • 12. Page 12 Registro de Estado de un PIC Condition Code Flags
  • 13. Page 13 Memoria de Programa y Stack Program Counter 16 Series instructions which invoke the Stack Unimplemented memory space, still addressable by the 13-bit 16F84A program address bus. Program Counter points to locations in program memory The program must start here The Interrupt Service Routine must start here
  • 14. Page 14 Mapa de Memoria de Datos y (SFR) Registro de Funciones Especiales msb is “bank select bit” (Status register). These are the Special Function Registers, which allow the CPU to interact with the peripherals General purpose memory
  • 15. Page 15 Interface con Periféricos vía el Registro de Funciones Especiales Control SFR(s) Peripheral Data Transfer SFR(s) Microcontroller Core "Outside World" Interrupt(s) Microcontroller Interaction with its Peripherals, via Special Function Register (SFR) and Interrupt  microcontroller peripherals can be configured in software to operate in a number of different modes, to do this certain control data must be sent to them to set them up in the desired way  once in use, there will be data flow between core and peripheral,  there may still be need for further control data,  these needs are commonly met by means of dedicated, memory - mapped registers, sometimes called Special Function Registers,  this approach gives the microcontroller manufacturer great flexibility to extend a microcontroller family – SFRs for new peripherals can easily be located in gaps in the memory map.
  • 16. Page 16 Configuraciones Globales del PIC The configuration word determines certain operating features of the microcontroller. It is in program memory, but cannot be accessed in normal operation. It is written to during the programming process. You set its value either by response to a dialogue box in MPLAB, or by use of Assembler Directives, at the head of your programme. The 16F84A Configuration Word
  • 17. Page 17 Tipos de Memorias de un PIC
  • 18. Page 18 Características de los Osciladores Oscilador Primario Oscilador Secundario Oscilador Interno Frecuencias de Oscilación Altas (XT, HS) Frecuencias de Oscilación Medias (LP) Frecuencias de Oscilación Bajas (RC) Con PLL Sin PLL Con Pre Escala Sin Pre Escala Con Pre Escala Sin Pre Escala Multiplica Frecuencia de Oscilación Divide Frecuencia de Oscilación Divide Frecuencia de Oscilación
  • 19. Page 19 Modos del Oscilador The 16F84A can be configured to operate in four different oscillator modes, using R-C, crystal or ceramic oscillators. It can also accept an external clock source. The user selects which mode is to be used by setting bits in the Configuration Word. XT – Crystal The standard crystal configuration, intended for crystals or ceramics in the range 1MHz to 4MHz. HS – High Speed A higher drive version of the XT configuration, for higher frequency crystals and ceramic resonators. Intended for frequencies in the region of 4MHz or greater. It leads to the highest current consumption of all the oscillator modes. LP – Low Power Intended for low frequency crystal applications, and gives the lowest power consumption possible. Will however operate at any frequency below around 200kHz. RC - Resistor-Capacitor Requires connection of an external resistor and capacitor. The lowest cost way of getting an oscillator, but should not be used when any timing accuracy is required.
  • 20. Page 20 Modos del Oscilador b) Resistor-Capacitor c) Externally Supplied Clock a) Crystal or Ceramic, HS, XT, or LP RA2 RA3 RA4/T0CKI MCLR V RB0/INT RB1 RB2 RB3 RB4 RB5 RB6 RB7 RA1 RA0 OSC1/CLKIN OSC2/CLKOUT SS VDD Supply voltage Oscillator connections Port A, Bit 0 Port A, Bit 2 Port A, Bit 1 Port A, Bit 3 *Port A, Bit 4 Ground **Port B, Bit 0 Port B, Bit 1 Port B, Bit 2 Port B, Bit 3 Port B, Bit 7 Port B, Bit 6 Port B, Bit 5 Port B, Bit 4 *also Counter/Timer clock input **also external Interrupt input Reset 1 9 10 18 The Oscillator Pins
  • 21. Page 21 Diagramas de un Oscilador Primario
  • 22. Page 22 Acerca del Conversor Analógico a Digital ADC del PIC
  • 23. Page 23 Acerca del ADC del PIC
  • 24. Page 24 Agenda •Base del Conocimiento –Diagramas de Bode –Diseño de Filtros Analógicos –Diseño de un Electrocardiograma –Microcontrolador PIC con Labview •Motor de Inferencia –Técnicas de Diagnóstico de un ECG •Medios de Comunicación –Prototipo de un ECG ADC
  • 25. Page 25 Acerca del ECG-UDH
  • 26. Page 26 Características ADC del DSPIC •Conversión vía aproximación sucesiva SAR. •Velocidad de conversión de hasta 500 ksps. •Hasta 16 pines de entrada analógica. •Pines de referencia de Voltaje Externo. •Modo Automático de Escaneo de Canal . •Fuente seleccionable de activación de conversión. •Buffer de resultado de conversión de 16 word •Modos seleccionables de llenado de Buffers. •Cuatro opciones de alineamiento de resultado. •Modos de operación durante el estado Sleep e Idle.
  • 27. Page 27 Acerca del ADC del PIC
  • 28. Page 28 Flujo grama de operación del ADC
  • 29. Page 29 Estructura Módulo A/D del PIC24F VREF+ VREF- A/D converter Conversion Control Bus Interface Data Format Sample Sequence Control AN0 AN1 S/H AN15 CH0 8/16 Level Results Buffer VR+ VR- VR Select AVDD AVSS
  • 30. Page 30 Eje y: Tiempo de Conversión A/D = Tiempo de Adquisición más Conversión Tiempo de Adquisición Tiempo de Conversión Inicio del Tiempo de Adquisición Fin de Conversión Entrada Analógica Tiempo de Conversión A/D Clock A/D TAD
  • 31. Page 31 Registro de Control ADC
  • 32. Page 32 Eje x: Tiempo de Muestreo AD1CON3<ADCS7:ADCS0> TCY to 256*TCY RCAD FCY = FOSC/2 TAD AD1CON3<ADRC> 1 0 AD Clock Postscaler † by 1 to 256
  • 33. Page 33 Proceso de Operación del ADC
  • 34. Page 34 Configuración del Clock del ADC
  • 35. Page 35 Aspectos de Precisión Digital
  • 36. Page 36 Diagrama de Bloques del ADC 10bits AVDD AVSS VREF+ VREF- VR+ VR- VR Select AD1CON2<VCFG2:VCFG0> AVSS AVDD 1xx VREF- VREF+ 011 VREF- AVDD 010 AVSS VREF+ 001 AVSS AVDD 000 VR- VR+ VCFG2:VCFG0 AD1CON2 Register bit15 CSSL13=0 CSSL14=0 CSSL15=0 BUFM bit0 ALTS CSNA VCFG2 VCFG1 VCFG0 bit8 SMPI1 SMPI 0 SMPI3 SMPI2 BUFS bit7 --- --- --- --- ---
  • 37. Page 37 Diagrama de Bloques del ADC 10bits AN0 AN1 AN15 Mux A VR- AN1 AD1CHS<CH0SA3:CH0SA0> AD1CHS<CH0NA> VINH VINL (0) (1) AD1PCFG Register bit15 CSSL10=0 CSSL13=0 CSSL14=0 CSSL8=0 PCFG1 bit0 PCFG0 PCFG2 PCFG15 PCFG14 PCFG13 ………… bit8 AD1CON2 Register bit15 CSSL13=0 CSSL14=0 BUFM bit0 ALTS CSNA VCFG2 VCFG1 VCFG0 SMPI1 SMPI 0 SMPI3 SMPI2 BUFS bit7 --- --- --- --- --- bit8 AD1CHS Register bit15 CH0SA1 bit0 CH0SA0 CH0SA2 CH0NA bit7 CH0SA3 CH0SB1 CH0SB0 CH0SB2 CH0NB CH0SB3 --- --- --- --- --- --- AD1CSSL Register bit15 CSSL13=0 CSSL14=0 CSSL1 bit0 CSSL0 CSSL2 CSSL15 CSSL14 CSSL13 …………
  • 38. Page 38 Escaneo de Canales del ADC ADCBUF Buffer + - CH 0 AN15 AN14 …. AN5 AN4 AN3 AN2 AN1 AN0 +B - B +A - A VREF- AN1 AN0 AN2 AN13 AN14 INT ADCBUF0 AD1CSSL Register bit15 CSSL13=0 CSSL14=0 CSSL1 bit0 CSSL0 CSSL2 CSSL15 CSSL14 CSSL13 AN13 ………… bit8 AD1CON2 Register bit15 CSSL13=0 CSSL14=0 BUFM bit0 ALTS CSNA VCFG2 VCFG1 VCFG0 SMPI1 SMPI 0 SMPI3 SMPI2 BUFS bit7 --- --- --- --- ---
  • 39. Page 39 Diagrama de Bloques del ADC 10 bits VINH VINL S/H Mux A Mux B AD1CON1<ASAM> AD1CON1<SAMP> Señal de Conversion completa 0 1 bit8 AD1CON2 Register bit15 CSSL13=0 BUFM bit0 ALTS CSNA VCFG2 VCFG1 VCFG0 SMPI1 SMPI 0 SMPI3 SMPI2 BUFS bit7 --- --- --- --- ---
  • 40. Page 40 Diagrama de Bloques del ADC 10 bits VINH VINL S/ H AD1CON1<ASAM> AD1CON1<SAMP> Conversion complete Signal ADC1BUF0 : ADC1BUF15 RESULT VR+ VR- AD1CON1<DONE> AD1CON3<SAMC4:SAMC0> (7) 0 TAD to 31 TAD AD1CON1 <SSRC2:SSRC0> Clearing AD1CON1<SAMP> (0) Active Transition on INT0 pin (1) Timer4 Compare ends (2) Evitar 0 TAD A/D converter VR- VR+
  • 41. Page 41 Diagrama de Bloques del ADC 10 bits 0000 00dd dddd dddd ssss sssd dddd dddd dddd dddd dd00 0000 sddd dddd dd00 0000 RESULT FORMAT AD1CON1<FORM1:FORM0> AD1CON2<BUFM> = „0‟ AD1CON2<BUFS> AD1CON2<SMPI3:SMPI0> ADC1BUF0 : : : : : : ADC1BUF15 AD1CON2<BUFM> = „1‟ ADC1BUF0 : : ADC1BUF7 ADC1BUF8 : : ADC1BUF15 0 1
  • 42. Page 42 Ejercicio N1: Digitalizar la Señal Analógica ECG •Tareas a realizar: –Programar el PIC con MPLAB en C18. –Realizar la conversión digital de una señal analógica en Proteus con PIC usando Potenciómetro. •Resultado esperado: –Digitalización de una señal analógica y su visualización usando LCD.
  • 43. Page 43 Objetivos del Laboratorio •Configurar el ADC •Configurar los puertos de E/S •Leer el ADC y mostrarlos en LEDs VDD Vss PIC24 AN5 POT R6 RA7-RA0 LEDs D10-D3
  • 44. Page 44 Pasos a Realizar •Open the project –C:RTC203_PRCLab5Lab5.mcp •Open the file –C:RTC203_PRCLab5Lab5.c •Look for ADCInit() function and configure ADC by initializing the registers AD1CON1, AD1CON2, and AD1CON3 looking into the Register details on the next few pages. –STEP 1: AD1CON1 •Select Integer Format Result •Auto Conversion Start •Sample after conversion –STEP 2: AD1CON2 •Select AVDD and AVSS as references •Disable Scan mode •Interrupt at 16th sample/Convert sequence •16*1 level buffer •Always use Mux A –STEP 3: AD1CON3 •Select Sample Time = 13TAD •Conversion Time is always 12TAD •Select AD Clock Source such that you get 16 samples in around 1 mSec (16 ksps) •Assume 1TCY =.25 uS (FCY = 4 MHz)
  • 45. Page 45 Pasos a Realizar •Continue to configure ADC by initializing the registers AD1CHS, AD1PCFG, and AD1CSSL looking into the Register details on the next few pages. STEP 4: AD1CHS Set the positive sample input channel for MUX A to use AN5 Set the negative input channel for MUX A to use VR- STEP 5: AD1PCFG Set AD1PCFG so that the only pin using analog functionality is AN5 STEP 6: AD1CSSL Channel scanning is not enabled, so no input channels should be selected for scanning •Build the project and program the device •Procedure to Test –Vary the POT and observe LEDs
  • 46. Page 46 Configurando el Registro ADC AD1CON1: A/D CONTROL REGISTER 1 ADON -- ADSIL -- -- -- FORM1 FORM0 Bit:8 Bit:15 ADC Module enable bit ADC Module enable/disable in IDLE mode Result Format 00: Intiger (0000 00dd dddd dddd) 01: Signed Intiger (ssss sssd dddd dddd) 10: Fractional (dddd dddd dd00 0000) 11: Signed Fractional (sddd dddd dd00 0000) SSRC2 SSRC1 SSRC0 -- -- ASAM SAMP DONE Start Sampling, If ASAM is „0‟ Conversion Status bit Bit:0 Bit:7 Conversion Trigger Source Selection Bits 000: Manual Conversion Trigger 001: Active transition on INT0 pin triggers conversion 010: Timer3 compare triggers conversion 111: Auto conversion Auto Sample Selection bit 1: Sample immediately after completion of last conversion. 0: Sample on setting of „SAMP‟
  • 47. Page 47 Configurando el Registro AD1CON2 VCFG2:VCFG0 VR+ VR- 000 AVDD AVSS 001 VREF+ AVSS 010 AVDD VREF- 011 VREF+ VREF- 1xx AVDD AVSS VCFG2 VCFG2 VCFG0 -- -- CSCNA -- -- BUFS -- SMPI3 SMPI2 SMPI1 SMPI0 BUFM ALTS VR Select AVDD AVSS VREF+ VREF- VR+ VR- VCFG2:VCFG0 Bit:8 Bit:15 Scan CH0 Mux A Input Bit:0 Bit:7 SMPI3:SMPI0 Interrupt Event (Sample/convert sequence) 0000 each 0001 alternate .... …. 1110 Every 15th 1111 Every 16th Buffer Status bit, is valid only when BUFM = „1‟ 1: Buffer 8-F is being filled, can access Buffer 0-7 0: Buffer 0-7 is being filled, can access Buffer 8-F Buffer Mode Select bit 1: Buffer configured as two 8-words buffers 0: Buffer configured as one 16-words buffers Sample alternatively MUX-A & MUX-B
  • 48. Page 48 Configurando el Registro AD1CON3 SAMC4:SAMC0 Sampling Time 00000 0 TAD 00001 1 TAD .... …. 11110 30 TAD 11111 31 TAD ADRC -- -- SAMC4 SAMC3 SAMC2 SAMC1 SAMC0 ADCS7 ADCS6 ADCS5 ADCS4 ADCS3 ADCS2 ADCS1 ADCS0 ADCS7:ADCS0 Conversion Clock 00000000 TCY ( FCY ) 00000001 2*TCY ( FCY / 2 ) .... …. 11111110 255*TCY ( FCY / 255 ) 11111111 256*TCY ( FCY / 256 ) Bit:8 Bit:15 A/D conversion Clock Source 1: ADRC is used 0: System clock is used Bit:0 Bit:7 A/D Sample Time Selection bits A/D Conversion Clock Selection bits ADCS = (TAD/TCY) - 1
  • 49. Page 49 Configurando el Registro AD1CHS CH0SB3:CH0SB0 CH0 Positive Input for MUX B 0000 AN0 0001 AN1 .... …. 1110 AN14 1111 AN15 CH0NB -- -- -- CH0SB3 CH0SB2 CH0SB1 CH0SB0 Bit:8 Bit:15 CH0 Negative input for MUX A 1: AN1 0: VR- CH0NA -- -- -- CH0SA3 CH0SA2 CH0SA1 CH0SA0 Bit:0 Bit:7 CH0SA3:CH0SA0 CH0 Positive Input for MUX A 0000 AN0 0001 AN1 .... …. 1110 AN14 1111 AN15 CH0 Negative input for MUX B 1: AN1 0: VR- VREF- AN15 AN0 ANxx +B - B + A - A AN15 AN0 ANxx VREF- AN1 + - CH 0 AN1 CH0SB3:CH0SB0 CH0SA3:CH0SA0 CH0NB CH0NA
  • 50. Page 50 Configurando el AD1PCFG: Registro de Configuración de Puertos PCFG15 PCFG14 PCFG13 PCFG12 PCFG11 PCFG10 PCFG9 PCFG8 Bit:8 Bit:15 Bit:0 Bit:7 PCFG7 PCFG6 PCFG5 PCFG4 PCFG3 PCFG2 PCFG1 PCFG0 Analog Input Pin Configuration Control bits 0 to 15 1: Pin for corresponding analog channel (ANxx) is in digital mode 0: Pin for corresponding analog channel (ANxx) is in analog mode AD1CSSL : A/D Input Scan Select Regsiter CSSL15 CSSL14 CSSL13 CSSL12 CSSL11 CSSL10 CSSL9 CSSL8 Bit:8 Bit:15 Bit:0 Bit:7 CSSL7 CSSL6 CSSL5 CSSL4 CSSL3 CSSL2 CSSL1 CSSL0 A/D Input Channel Scan Selection bits 0 to 15 1: Corresponding analog channel (ANxx) is selected for sequential scanning 0: Corresponding analog channel (ANxx) is ignored for sequential scanning
  • 51. Page 51 Resultado Esperado •El valor del POT es promediado cada 16 muestras en 1 ms. •El valor del POT es mostrado en los LEDs como un valor binario desde 0 hasta 255 •El Pin RB2 cambia de valor cada 16 muestras (con una frecuencia de 500 Hz)
  • 52. Page 52 Agenda •Base del Conocimiento –Diagramas de Bode –Diseño de Filtros Analógicos –Diseño de un Electrocardiograma –Microcontrolador PIC con Labview •Motor de Inferencia –Técnicas de Diagnóstico de un ECG •Medios de Comunicación –Prototipo de un ECG USB
  • 53. Page 53 Acerca del ECG-UDH
  • 54. Page 54 Interfaces USB USB • Creado por Intel en el año 1994, versión 1.0. • En el año 1998 se lanza la versión 1.1 con una velocidad de transferencia baja de 1.5 Mbps y a full capacidad de 12 Mbps. • En el año 2000, se lanza la versión 2.0 de alta capacidad con 480 Mbps.
  • 55. Page 55 USB: Bus Serial Universal • Auto détección & configuraóion (Plug&Play) • Energía en el Bus • 3 velocidades: Low- 1.5 Mbps, Full- 12 Mbps, High- 480 Megabits/second RS232 Paralelo PS/2 Tipos de Aplicación Extend the functionality of your computer! Data Analysis, Data Logging, Firmware Updates, Diagnostics, Embedded Applications!
  • 56. Page 56 Características del USB NRZI Data Encoding Half duplex – data transmission can go in only one direction at a time Bus Power to each device: 4.40 - 5.25 V Guaranteed 100 mA 500 mA maximum through negotiation ~ 5.0 V ~ 3.3 V VBUS D+ D- GND VBUS D+ D- GND 4-wire connection Differential Signaling
  • 57. Page 57 Características del USB “mini-B” Plug FS, HS Peripheral “B” Plug FS, HS Peripheral “A” Plug USB Host
  • 58. Page 58 Características del USB Guaranteed Latency Guaranteed Data Integrity Interrupt Bulk Isochronous PIC18F4550 family supports all these transfer types.
  • 59. Page 59 USB Pipes HOST PC Big USB Pipe 12Mb/s Small Pipe to each USB device (up to 127) Tiny Pipes (endpoints)
  • 60. Page 60 Client Software <-> Function Client Software Interface USB Device Host Endpoints Data Flows Buffers Pipes
  • 61. Page 61 El Dispositivo Lógico Device (Manufacturer: Microchip Technology) (Product: Mouse in a Circle Demo) Configuration Interface IN (Endpoint 0) USB System Software (default control pipes) USB Device-Specific Pipe(s) (Human Interface Device) HID TX/RX Functions (MCHPFSUSB FW) Analog/Digital I/O OUT (Endpoint 0) IN (Endpoint x) OUT (Endpoint x) These settings are represented by a Device Descriptor Table, stored in firmware.
  • 62. Page 62 Trama USB BULK BULK BULK BULK BULK BULK BULK BULK Tx Voice Tx Line Interrupt, Control, Low Speed Trame = 1ms Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Stereo Audio Rx Voice Rx Line Slot SOF Low Speed Low Speed BULK BULK Scanner
  • 63. Page 63 Periféricos USB 63 Joystick Mouse SD Card Reader MCHP RS-232 Data UPS Logger Keyboar d Generic Human Interface Device Class (HID) Mass Storage Device Class (MSD) Communication Device Class (CDC) Digitizer LibUSB WinUSB Custom Class (Vendor Class) Audio Class MIDI Speaker
  • 64. Page 64 El Proceso de Enumeración DETACHED POWERED Power (self/bus) DEFAULT Bus reset ADDRESS Get Device Descriptor CONFIGURED Get Descriptors ATTACHED Cable Connected SUSPENDED
  • 65. Page 65 Auto Detección: Full Velocidad +5V D+ D-GND Transceiver USB Connector Peripheral Device VUSB 3.3 V Full Speed Identification D+ line pull-up 1.5 k±5% USB PIC® MCU
  • 66. Page 66 Auto Detección: Baja Velocidad +5V D+ D-GND Transceiver USB Connector Peripheral Device VUSB 3.3 V Low Speed Identification D- line pull-up 1.5 k±5% USB PIC® MCU
  • 67. Page 67 On-chip Pull-up Resistors +5V D+ D-GND Transceiver USB Connector Peripheral Device VUSB 3.3 V On-chip pull-up resistors available! USB PIC® MCU
  • 68. Page 68 Address and Configuration: EP0  See Chapter 9 in USB 2.0 Spec for more info. Other Endpoints Endpoint 0 IN (Control Data) Endpoint 0 OUT (Control Data) Dual Port/Access RAM Descriptors Control Transfers USB PIC® MCU
  • 69. Page 69 Descriptores Device Configuration 1 Interface 0 Endpoint Interface 1 Endpoint Endpoint Endpoint To other Configurations if any To other Interfaces if any String 0 String 1 String N Descriptors are typically stored in non-volatile/Flash memory
  • 70. Page 70 Ejemplo de Descriptores PICDEM™ USB Microchip Device Configuration 1 Interface 0 Endpoint Manu. String Prod. String USB 2.0, VID = 0x04D8, PID = 0x0007, Num. Configurations, Strings? Configuration #1: Bus-Powered, Remote Wakeup, 500mA, Num. Interfaces Interface #0: HID Class, Num. Endpoints Endpoint 1 IN, Interrupt Transfer Type, 64-byte buffer, Poll every 3 ms Unicode Characters Go USB! Other String
  • 71. Page 71 MCHPFSUSB Software Framework - Device Descriptor Table - usb_descriptors.c Descriptors VID & PID Class Specific /* Device Descriptor */ ROM USB_DEVICE_DESCRIPTOR device_dsc= { 0x12, // Size of this descriptor in bytes USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type 0x0200, // USB Spec Release Number CDC_DEVICE, // Class Code 0x00, // Subclass code 0x00, // Protocol code EP0_BUFF_SIZE, // Max packet size for EP0, 0x04D8, // Microchip Vendor ID 0x000C, // Product ID ID …
  • 72. Page 72 CDC – RS-232 Emulation PC Computer PIC® Microcontroller USB Cable Hyper Terminal CDC INF File Required (Supplied in MCHPSUSB) Standard Windows Drivers Design Considerations: •~80 KB/s max •Bulk Transfers •PC applications can access the device as though it is connected to a serial COM port
  • 73. Page 73 MCHPFSUSB Framework - Polled Program Flow - Reset main() InitializeSystem() while(1) Your application code USBDeviceTasks() ProcessIO() USB Stack Cooperative Multitasking!! No blocking functions. Use state machine. You edit UserInit() Function Services CDCTxService() MSDTasks() Re-arm OUT Endpoint (HID & Generic)
  • 74. Page 74 MCHPFSUSB Framework - Interrupt Program Flow - Reset main() InitializeSystem() while(1) Your application code ProcessIO() You edit UserInit() USB Interrupt Context USBDeviceTasks() USBDeviceAttach() Function Services Notifies the stack when the device is attached CDCTxService() MSDTasks() Re-arm OUT Endpoint (HID & Generic)
  • 75. Page 75 Código de Ejemplo #include “Compiler.h” #include “USBusb.h” #include “USBusb_function_cdc.h” #include “HardwareProfile.h” void UserInit(void){ … … } void ProcessIO(void){ if((USBDeviceState < CONFIGURED_STATE)||(USBSuspendControl==1)) return; … … CDCTxService(); } static void InitializeSystem(void){ #if define … #endif UserInit(); USBDeviceInit(); } int main(void){ InitializeSystem(); USBDeviceAttach(); while(1){ ProcessIO(); } } Main.c Needed (usb_config.h is called by usb.h) Put your initialization code here Put your application code (state machine) here No need to change Conditional compiling (no need to change) USBDeviceTasks() is executed in an ISR (High Priority PIC18, _USB1Interrupt() PIC24 & PIC32)
  • 76. Page 76 Agenda •Base del Conocimiento –Diagramas de Bode –Diseño de Filtros Analógicos –Diseño de un Electrocardiograma –Microcontrolador PIC con Labview •Motor de Inferencia –Técnicas de Diagnóstico de un ECG •Medios de Comunicación –Prototipo de un ECG GLCD
  • 77. Page 77 Acerca del ECG-UDH
  • 78. Page 78 Pantallas Gráficas LCD (GLCD) RA0/AN02RA1/AN13RA2/AN2/VREF-/CVREF4RA3/AN3/VREF+ 5RA4/T0CKI/C1OUT/RCV6RA5/AN4/SS/LVDIN/C2OUT7RA6/OSC2/CLKO14OSC1/CLKI13RB0/AN12/INT0/FLT0/SDI/SDA33RB1/AN10/INT1/SCK/SCL34RB2/AN8/INT2/VMO35RB3/AN9/CCP2/VPO36RB4/AN11/KBI0/CSSPP37RB5/KBI1/PGM38RB6/KBI2/PGC39RB7/KBI3/PGD40RC0/T1OSO/T1CKI15RC1/T1OSI/CCP2/UOE16RC2/CCP1/P1A17VUSB18RC4/D-/VM23RC5/D+/VP24RC6/TX/CK25RC7/RX/DT/SDO26RD0/SPP019RD1/SPP120RD2/SPP221RD3/SPP322RD4/SPP427RD5/SPP5/P1B28RD6/SPP6/P1C29RD7/SPP7/P1D30RE0/AN5/CK1SPP8RE1/AN6/CK2SPP9RE2/AN7/OESPP10RE3/MCLR/VPP1U2PIC18F4550X1CRYSTALC122pFC222pF12345ICSP 1-5CONN-SIL5MCLRPGDPGCMCLRPGCPGD1234AN 4-3-ECGCONN-H4 CS11CS22GND3VCC4V05RS6R/W7E8DB09DB110DB211DB312DB413DB514DB615DB716RST17-Vout18 LCD2AMPIRE128X64CS1CS2 CS1CS2 DI DI RWERST RWERST 12 3 RV410k 12345 J2CONN-SIL5U2(RC0/T1OSO/T1CKI) R410k1265Pasa U57809C12100nFC13100nFC14100uF16VC15100uF16VC16100nFC17100nFVI1VO3 U77805 VDD V+ V- V+ VCC1D+ 3D- 2GND4J3USBCONN321 DE ALIMENTACION +/- 9V y 5V326 7481 U1OP07V+ 326 7481 U8OP07V- R310kR1410kSUMADOR
  • 80. Page 80 Controladores GLCD para Escribir Byte 0xAB
  • 81. Page 81 Instrucciones del Controlador GLCD
  • 82. Page 82 Diagrama de Bloque del Controlador GLCD
  • 83. Page 83 Código del Proyecto ECG
  • 84. Page 84 Agenda: UDH Rumbo a la Acreditación Internacional