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 13th September 2003, 05:41 PM   (permalink)
Default Arrrggggg!!!

I posted a message a couple days ago about programming a pic16f84a.
I tried what was suggested but to no avail. To simplify my circuit a bit (until I get this thing figured out) I am now using a 16f627 which has the same locations for registers and memory, but also has an internal rc. In other words it's simple. Know I programmed it with the same code as the f84a, and with the internal rc w/ clockout enabled. I connected a led to the clockout pin and I get a signal that turns the LED on. My program still will not work. When I use MPASM to assemble the code I get the following message:

Message[302] Register in operand not in bank 0. Ensure that bank bits are correct.

It looks like the chip will not switch to bank 1

Do these things ever work right?

Sorry for the long post but this is frustrating me.

Geek
__________________
\"Genius is 1% inspiration and 99% perspiration.\"

Thomas Alva Edison
ElectroGeek_87 is offline  
Old 19th September 2003, 01:45 AM   (permalink)
Default Re: Arrrggggg!!!

Quote:
Originally Posted by ElectroGeek_87
Message[302] Register in operand not in bank 0. Ensure that bank bits are correct.
Geek
You get this message every time with MPASM, even when your code is correct. Add

ERRORLEVEL -302

to the top of your code to hide these messages.
Exo is offline  
Old 20th October 2003, 08:21 AM   (permalink)
Default

Thanks,

that is just what I need to know, I was thinking that I had the good code but MPLAB still gif a 302 message.

Cya
Camping is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 08:37 PM.


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

eXTReMe Tracker