![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I'm having a problem getting started with programming. I'm just getting the basics down of assembly. Code: Processor 12F629 #include "p12f629.inc" LIST p=12f629 __config 0x3194 bsf STATUS, RP0 movlw b'00111100' movwf TRISIO bcf STATUS, RP0 "Message[302] C:\PIC\GENERIC BOARD.ASM 14 : Register in operand not in bank 0. Ensure that bank bits are correct." Can someone please tell me what I'm doing wrong? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Are you sure? I have the "Special Function Registers" window open in MPLAB. TRISIO doesn't change when I simulate the program. | |
| |
| | (permalink) |
| It should work. TRISIO is at adress 0x85, if it doesn't change check to see something else receives the value... | |
| |