PDA

View Full Version : newbee also wants to know about cmcon=7



lecoind
- 24th May 2009, 03:02
I just started with PICbasic pro and trying to put the cmcon=7 but when I compile it, an error says (undefined symbol cmcon). I'm using the 16f877a chip.

mackrackit
- 24th May 2009, 03:27
I just started with PICbasic pro and trying to put the cmcon=7 but when I compile it, an error says (undefined symbol cmcon). I'm using the 16f877a chip.
Are you sure you have selected the 16F877A and not the 16F877

lecoind
- 24th May 2009, 03:38
THE ONLY CHOICES I HAVE IS THE 16F877 IN MICROCODE STUDIO. I HAVE HAD THE PROGRAM FOR ABOUT 4 YEARS NOW. IT MIGHT BE OUT DATED BECAUSE IT DOES NOT LIST THE 877A. HOW WOULD i UPDATE?

mackrackit
- 24th May 2009, 03:59
If it was new four years ago it should have it.

What version of MCS and PBP do you have?

Go here for update info
http://www.melabs.com/products/pbp.htm

lecoind
- 24th May 2009, 04:28
I have version mcs 2.43 I'm trying to fine out what version pbp is.

mackrackit
- 24th May 2009, 04:39
PBP 2.42 started support for the 877A.

You can download the free version of MCS here
http://www.melabs.com/resources/win_ide.htm
but I am not sure if it works with the old versions of PBP, it should.
If you still have you receipt for PBP or remember the company you purchased it from and they still have records from that far back, the upgrade is only $25.00 US.

The new version of PBP has come a long way from 2.43. Would be worth the upgrade.

BigWumpus
- 24th May 2009, 09:28
THE ONLY CHOICES I HAVE IS THE 16F877 IN MICROCODE STUDIO. I HAVE HAD THE PROGRAM FOR ABOUT 4 YEARS NOW. IT MIGHT BE OUT DATED BECAUSE IT DOES NOT LIST THE 877A. HOW WOULD i UPDATE?

Why are you screaming so loud here ?????

The 877a has options and registers not know by the 877 (without a).
So, switch to the right compiler-option or read the datasheet so declare the register on your own.