Documente Academic
Documente Profesional
Documente Cultură
MICROPROCESADOR, CPU
Circuito de reloj.
Temporizadores y contadores.
Conversores AD
Comparadores
Modulador de ancho de pulsos (PWM)
Puerto serie
Otros puertos de comunicación (USB, CAN)
Sistema de protección.
Estado de reposo
MICROPROCESADOR Recursos
MEMORIA PERIFERICOS Auxiliares
Lenguaje de bajo nivel
Lenguaje de máquina
1110011 11001001 11001010 10110010 11111100
Lenguaje Assembler
Movlw 1
Movwf PP1H
Movlw 244
F@Call dly@w
F1_000046 equ $ ; in [NUEVOAD.BAS] TRISA = %11111111
Bsf STATUS,5
ram_bank = 1
Movlw 255
Movwf TRISA
F1_000047 equ $ ; in [NUEVOAD.BAS] TRISB = %11110001
Movlw 241
Movwf TRISB
Lenguaje de nivel Medio
Lenguaje C
while(1) {
byte_read = Soft_UART_Read(&error
if (error) PORTB = error;
else
Soft_UART_Write(byte_read);
}
Lenguaje de Alto Nivel
Lenguaje Basic
Main:
Variables[0] = 0
Cls
DelayMS 10
Print At 1,1, "hola"
DelayMS 500
leer:
For i = 1 To 500
If PIR1.5 = 1 Then
Variables[0] = RCREG ' If receive flag then get
character
Cls
DelayMS 10
Print At 1,2,Variables[0]
DelayMS 3000
Cls
GoTo leer
End If
DelayMS 1
Next,1
GoTo leer