Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 11th August 2004, 04:48 AM   (permalink)
Default Changing banks

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
And the message I get:
"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?
Thorpydo is offline  
Old 11th August 2004, 07:10 AM   (permalink)
Default Re: Changing banks

Quote:
Originally Posted by Thorpydo
"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?
You're doing nothing wrong, it's not an error, just a warning, if you want you can turn it off using the 'Errorlevel' directive, consult the MPASM helpfile, or check my later tutorials where I do this.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 11th August 2004, 05:41 PM   (permalink)
Default

Are you sure? I have the "Special Function Registers" window open in MPLAB. TRISIO doesn't change when I simulate the program.
Thorpydo is offline  
Old 11th August 2004, 05:49 PM   (permalink)
Default

It should work. TRISIO is at adress 0x85, if it doesn't change check to see something else receives the value...
Exo is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 10:17 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker