TODOPIC
Otros Microcontroladores / Dispositivos programables => Microcontroladores 8 bits => Mensaje iniciado por: EDUEK en 22 de Mayo de 2023, 13:36:10
-
No me simula, estoy usando los ejemplos del libro Microcontroladores PIC Desarrollo de Proyectos, en el mplab x con el nuevo compilador para asembler. (Figura 6-3 ,pagina 70). Gracias de antemano
; PIC16F84A Configuration Bit Settings
; Assembly source line config statements
; CONFIG
CONFIG FOSC = XT ; Oscillator Selection bits (XT oscillator)
CONFIG WDTE = OFF ; Watchdog Timer (WDT disabled)
CONFIG PWRTE = ON ; Power-up Timer Enable bit (Power-up Timer is enabled)
CONFIG CP = OFF ; Code Protection bit (Code protection disabled)
// config statements should precede project file includes.
#include <xc.inc>
//ORG 0
bsf STATUS,5 //Acceso al banco 1
clrf TRISB //Las Lineas del Puerto B se configura como salidas
movlw 0x1F
movwf TRISA
bcf STATUS,5
PRINCIPAL:
movf PORTA,w
movwf PORTB
goto PRINCIPAL
END
-
Una preguntas.
1. ¿Compila sin errores?
2. ¿Puedes simular en MPLAB X?
3. ¿Estás cargando el archivo hex o coff en el microcontrolador en Proteus?
4. ¿Qué errores te indican o aparecen?