list P=16f54
#include <p16f54.inc>
; CONFIG
; __config 0xFFFB
__CONFIG _OSC_RC & _WDT_OFF & _CP_OFF
org 1FFH
GOTO Start ; go to beginning of program
org 0
Init clrf PORTA ;reset ports
clrf PORTB
movlw b'00000000' ;set port-a I/O
movwf TRISA
movlw b'00000000' ;set port-b I/O
movwf TRISB
retlw 0
Start
call Init
Main
bsf PORTA, 0
GOTO Main ; loop forever
End
Symbol not previously defined (TRISA)
49 Views Asked by Michael Walker At
1
There are 1 best solutions below
Related Questions in ASSEMBLY
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- How to call a C language function from x86 assembly code?
- Binary Bomb Phase 2 - Decoding Assembly
- AVR Assembly Clock Cycle
- Understanding the differences between mov and lea instructions in x86 assembly
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Why would %rbp not be equal to the value of %rsp, which is 0x28?
- Move immediate 8-bit value into RSI, RDI, RSP or RBP
- Unable to run get .exe file from assembly NASM
- DOSbox automatically freezes and crashes without any prompt warnings
- Load function written in amd64 assembly into memory and call it
- link.exe unresolved external symbol _mainCRTStartup
- x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
- running an imf file using dosbox in parallel to a game
Related Questions in PIC
- What is the difference between these 2 programs, one in C and the other in PIC assembly?
- Can't call second function (PIC XC16)
- I2C LCD1602 interfacing with PIC16F877A
- What is wrong with my SPI configuration/programming?
- Symbol not previously defined (TRISA)
- How to Enable UART Interrupt For PIC32MX?
- problem when separating an integer and displaying it on a 7-segment display
- No source code lines were found at current PC 0xc7. Use Program memory view to see instruction code disassembly
- Problem when implementing a scoreboard for a stadium, how can I fix this code
- PIC18F2550 assembly code for turning led on with a switch isn't working
- DHT11 code from pic18f4550 does not work with pic18f57Q84
- PIC18F4580 isn't turning the LED on in Proteus
- Using an ADC with PIC24 and storing the data in an SD card
- link PIC24 with SDcard
- Can connect and write hex files from MPLAB X IPE but can not debug from MPLAB X IDE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Check the datasheet of your target device:
PIC16F54 | Microchip Technology
According to this datasheet, PIC16F54 doesn't have TRIS registers in the register file.
Instead of general instructions like
MOVWF, you should use the specialTRISinstruction to setTRISregisters in PIC16F54.