Problems in running a simple program in metrowerks codewarrior and M68HC12B32

Started by mortisgr January 18, 2006
Hello all and thanks in advance for the help,

I am using metrowerks codewarrior v3.1 and i have the M68HC12B32 EVB.
I try to flash a simple program in the evb. No problem compiling or
downloading(I use mini IDE for this reason via serial port). But the
program won't work, it is a simple port out( program Iattach it below).

I managed to produce a .lst file(thanks John) and I notice that the
code is placed in memory area 0000 and on. In the Prm file I
explicitly say(at least I think so) to be entered in the area 8000 and
on. I attach all files please have a look:

The main:
#define COPCTL 0x16

#define IO_BASE 0
#define PORTA *(volatile unsigned char *)(IO_BASE + 0x00)
#define PORTB *(volatile unsigned char *)(IO_BASE + 0x01)
#define DDRA *(volatile unsigned char *)(IO_BASE + 0x02)
#define DDRB *(volatile unsigned char *)(IO_BASE + 0x03)

#define OUT 0xAA
void main(void)
{
unsigned char count=1;
asm (" clr 0x16");
DDRB=OUT;
PORTB=OUT;
while(1)
;

}
The PRM file:
NAMES END

SECTIONS
MY_RAM = READ_WRITE 0x0800 TO 0x09FF;
MY_ROM = READ_ONLY 0x8000 TO 0xF7C0;
MY_STCK = READ_WRITE 0x0A00 TO 0x0BFF;

PLACEMENT
DEFAULT_ROM INTO MY_ROM;
DEFAULT_RAM INTO MY_RAM;
SSTACK INTO MY_STCK;
END

STACKSIZE 0x1FF

VECTOR ADDRESS 0XF7FE _Startup /* set reset vector on _Startup */

And the .lst file of main:

ANSI-C/cC++ Compiler for HC12 V-5.0.24 Build 4047, Feb 17 2004

1: extern volatile char ports[];
2: #define COPCTL 0x16
3:
4: #define IO_BASE 0
5: #define PORTA *(volatile unsigned char *)(IO_BASE + 0x00)
6: #define PORTB *(volatile unsigned char *)(IO_BASE + 0x01)
7: #define DDRA *(volatile unsigned char *)(IO_BASE + 0x02)
8: #define DDRB *(volatile unsigned char *)(IO_BASE + 0x03)
9:
10: #define OUT 0xAA
11: void main(void)
12: {

Function: main
Source : C:\Documents and Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\sources\main.c
Options : -Env"GENPATH=C:\Documents and Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b;C:\Documents and
Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\bin;C:\Documents and
Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\cmd;C:\Documents and
Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\prm;C:\Documents and
Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\sources;C:\Program
Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\LIB;C:\Program
Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\SRC;C:\Program
Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\INCLUDE"
-Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior
CW12_V3.1\lib\HC12c\INCLUDE" -Env"OBJPATH=C:\Documents and
Settings\Bard\My Documents\metrowerkscode\eleven_1_2006b\bin"
-Env"TEXTPATH=C:\Documents and Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\bin" -Lasm=%n.lst
-ObjN="C:\Documents and Settings\Bard\My
Documents\metrowerkscode\eleven_1_2006b\eleven_1_2006b_Data\Generic\ObjectCode\main.c.o"

13: unsigned char count=1;
0000 c601 LDAB #1
0002 37 PSHB
14: asm (" clr 0x16");
0003 790016 CLR 22
15: //asm("movb 0xff,0x01");
16: //asm("movb 0xff,0x03");
17: DDRB=OUT;
0006 86aa LDAA #170
0008 5a03 STAA 3
18: PORTB=OUT;
000a 5a01 STAA 1
19: while(1)
000c 20fe BRA *+0 ;abs = 000c
20: ;
21:
22: }

Regards,
Tassos


I don't know in the case of the HC12B32, but in most
cases, for S12 microcontroller, 0x8000 flash block is
located in paged memory. You would have to specify the
page in prm file.

In this case, try checking your MCU's memory strucure
to see where is the non paged memory location. Hope
this helps.

REgards,
Wandson

--- mortisgr <mortisgr@mort...> wrote:

> Hello all and thanks in advance for the help,
>
> I am using metrowerks codewarrior v3.1 and i have
> the M68HC12B32 EVB.
> I try to flash a simple program in the evb. No
> problem compiling or
> downloading(I use mini IDE for this reason via
> serial port). But the
> program won't work, it is a simple port out( program
> Iattach it below).
>
> I managed to produce a .lst file(thanks John) and I
> notice that the
> code is placed in memory area 0000 and on. In the
> Prm file I
> explicitly say(at least I think so) to be entered in
> the area 8000 and
> on. I attach all files please have a look:
>
> The main:
> #define COPCTL 0x16
>
> #define IO_BASE 0
> #define PORTA *(volatile unsigned char *)(IO_BASE +
> 0x00)
> #define PORTB *(volatile unsigned char *)(IO_BASE +
> 0x01)
> #define DDRA *(volatile unsigned char *)(IO_BASE
> + 0x02)
> #define DDRB *(volatile unsigned char *)(IO_BASE +
> 0x03)
>
> #define OUT 0xAA
> void main(void)
> {
> unsigned char count=1;
> asm (" clr 0x16");
> DDRB=OUT;
> PORTB=OUT;
> while(1)
> ;
>
> }
> The PRM file:
> NAMES END
>
> SECTIONS
> MY_RAM = READ_WRITE 0x0800 TO 0x09FF;
> MY_ROM = READ_ONLY 0x8000 TO 0xF7C0;
> MY_STCK = READ_WRITE 0x0A00 TO 0x0BFF;
>
> PLACEMENT
> DEFAULT_ROM INTO MY_ROM;
> DEFAULT_RAM INTO MY_RAM;
> SSTACK INTO MY_STCK;
> END
>
> STACKSIZE 0x1FF
>
> VECTOR ADDRESS 0XF7FE _Startup /* set reset vector
> on _Startup */
>
> And the .lst file of main:
>
> ANSI-C/cC++ Compiler for HC12 V-5.0.24 Build 4047,
> Feb 17 2004
>
> 1: extern volatile char ports[];
> 2: #define COPCTL 0x16
> 3:
> 4: #define IO_BASE 0
> 5: #define PORTA *(volatile unsigned char
> *)(IO_BASE + 0x00)
> 6: #define PORTB *(volatile unsigned char
> *)(IO_BASE + 0x01)
> 7: #define DDRA *(volatile unsigned char
> *)(IO_BASE + 0x02)
> 8: #define DDRB *(volatile unsigned char
> *)(IO_BASE + 0x03)
> 9:
> 10: #define OUT 0xAA
> 11: void main(void)
> 12: {
>
> Function: main
> Source : C:\Documents and Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\sources\main.c
> Options : -Env"GENPATH=C:\Documents and
> Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\bin;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\cmd;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\prm;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\sources;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\LIB;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\SRC;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\INCLUDE"
> -Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\INCLUDE"
> -Env"OBJPATH=C:\Documents and
> Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b\bin"
> -Env"TEXTPATH=C:\Documents and Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b\bin"
> -Lasm=%n.lst
> -ObjN="C:\Documents and Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\eleven_1_2006b_Data\Generic\ObjectCode\main.c.o"
>
> 13: unsigned char count=1;
> 0000 c601 LDAB #1
> 0002 37 PSHB
> 14: asm (" clr 0x16");
> 0003 790016 CLR 22
> 15: //asm("movb 0xff,0x01");
> 16: //asm("movb 0xff,0x03");
> 17: DDRB=OUT;
> 0006 86aa LDAA #170
> 0008 5a03 STAA 3
> 18: PORTB=OUT;
> 000a 5a01 STAA 1
> 19: while(1)
> 000c 20fe BRA *+0 ;abs = 000c
> 20: ;
> 21:
> 22: }
>
> Regards,
> Tassos


__________________________________________________




Tassos:

The best way to start debugging is check the actual .s19 file.
Since the .prm file looks correct you should see something like on the
second line of your .s19 file.

S1238000FEC040FDC03E270E3.........xx

where, xx is that checksum for the line
S1 mean a line with 2 bytes of address
23 is the number of bytes of data in the line (in hex)
8000 is the first data address (hex)

Check to see if this line looks similar to the one above. If it
does, then it has to do with how you are downloading it. I am not very
familar with Mini IDE, so since I believe the EVB has a bootloader
resident I would try to use it instead along with something like
Hyperterminal or Procomm. Hope this helps.

Regards,

John Honnold
Freescale Semiconductor
Technical Information Center
MCU 16/32 Bit Applications Engineer
----------------------
This email has been classified:
(x) Freescale General Business
( ) Freescale Confidential Proprietary
( ) Freescale Internal Use Only
( ) Public -----Original Message-----
From: 68HC12@68HC... [mailto:68HC12@68HC...] On
Behalf Of Wandson Santana
Sent: Wednesday, January 18, 2006 5:04 PM
To: 68HC12@68HC...
Subject: Re: [68HC12] Problems in running a simple program in
metrowerks codewarrior and M68HC12B32 I don't know in the case of the HC12B32, but in most
cases, for S12 microcontroller, 0x8000 flash block is
located in paged memory. You would have to specify the
page in prm file.

In this case, try checking your MCU's memory strucure
to see where is the non paged memory location. Hope
this helps.

REgards,
Wandson

--- mortisgr <mortisgr@mort...> wrote:

> Hello all and thanks in advance for the help,
>
> I am using metrowerks codewarrior v3.1 and i have
> the M68HC12B32 EVB.
> I try to flash a simple program in the evb. No
> problem compiling or
> downloading(I use mini IDE for this reason via
> serial port). But the
> program won't work, it is a simple port out( program
> Iattach it below).
>
> I managed to produce a .lst file(thanks John) and I
> notice that the
> code is placed in memory area 0000 and on. In the
> Prm file I
> explicitly say(at least I think so) to be entered in
> the area 8000 and
> on. I attach all files please have a look:
>
> The main:
> #define COPCTL 0x16
>
> #define IO_BASE 0
> #define PORTA *(volatile unsigned char *)(IO_BASE +
> 0x00)
> #define PORTB *(volatile unsigned char *)(IO_BASE +
> 0x01)
> #define DDRA *(volatile unsigned char *)(IO_BASE
> + 0x02)
> #define DDRB *(volatile unsigned char *)(IO_BASE +
> 0x03)
>
> #define OUT 0xAA
> void main(void)
> {
> unsigned char count=1;
> asm (" clr 0x16");
> DDRB=OUT;
> PORTB=OUT;
> while(1)
> ;
>
> }
> The PRM file:
> NAMES END
>
> SECTIONS
> MY_RAM = READ_WRITE 0x0800 TO 0x09FF;
> MY_ROM = READ_ONLY 0x8000 TO 0xF7C0;
> MY_STCK = READ_WRITE 0x0A00 TO 0x0BFF;
>
> PLACEMENT
> DEFAULT_ROM INTO MY_ROM;
> DEFAULT_RAM INTO MY_RAM;
> SSTACK INTO MY_STCK;
> END
>
> STACKSIZE 0x1FF
>
> VECTOR ADDRESS 0XF7FE _Startup /* set reset vector
> on _Startup */
>
> And the .lst file of main:
>
> ANSI-C/cC++ Compiler for HC12 V-5.0.24 Build 4047,
> Feb 17 2004
>
> 1: extern volatile char ports[];
> 2: #define COPCTL 0x16
> 3:
> 4: #define IO_BASE 0
> 5: #define PORTA *(volatile unsigned char
> *)(IO_BASE + 0x00)
> 6: #define PORTB *(volatile unsigned char
> *)(IO_BASE + 0x01)
> 7: #define DDRA *(volatile unsigned char
> *)(IO_BASE + 0x02)
> 8: #define DDRB *(volatile unsigned char
> *)(IO_BASE + 0x03)
> 9:
> 10: #define OUT 0xAA
> 11: void main(void)
> 12: {
>
> Function: main
> Source : C:\Documents and Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\sources\main.c
> Options : -Env"GENPATH=C:\Documents and
> Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\bin;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\cmd;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\prm;C:\Documents
> and
> Settings\Bard\My
>
Documents\metrowerkscode\eleven_1_2006b\sources;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\LIB;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\SRC;C:\Program
> Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\INCLUDE"
> -Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior
> CW12_V3.1\lib\HC12c\INCLUDE"
> -Env"OBJPATH=C:\Documents and
> Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b\bin"
> -Env"TEXTPATH=C:\Documents and Settings\Bard\My
> Documents\metrowerkscode\eleven_1_2006b\bin"
> -Lasm=%n.lst
> -ObjN="C:\Documents and Settings\Bard\My
>

Documents\metrowerkscode\eleven_1_2006b\eleven_1_2006b_Data\Generic\Obje
ctCode\main.c.o"
>
> 13: unsigned char count=1;
> 0000 c601 LDAB #1
> 0002 37 PSHB
> 14: asm (" clr 0x16");
> 0003 790016 CLR 22
> 15: //asm("movb 0xff,0x01");
> 16: //asm("movb 0xff,0x03");
> 17: DDRB=OUT;
> 0006 86aa LDAA #170
> 0008 5a03 STAA 3
> 18: PORTB=OUT;
> 000a 5a01 STAA 1
> 19: while(1)
> 000c 20fe BRA *+0 ;abs = 000c
> 20: ;
> 21:
> 22: }
>
> Regards,
> Tassos


__________________________________________________

SPONSORED LINKS
Freescale semiconductor inc
<http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Free
scale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8
051+microprocessor&c=4&s6&.sig=K2HGv-zFlv5OYUv_QxIq_Q>
Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semic
onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+micropr
ocessor&c=4&s6&.sig=SYHwNJjjGQXRvtt_GybT4g> Pic
microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+s
emiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+mic
roprocessor&c=4&s6&.sig=umVbbnUwsPzEzKKD_pQfUw>
8051 microprocessor
<http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Freescale+se
miconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+micr
oprocessor&c=4&s6&.sig=NO-nSKjHoAlh9XtZ8LB1_A>

________________________________

> .


________________________________



Hi again:
Checked, and everything seems to be alright with the .s19 file(I
attach it below) also the mapping in .prm file seems to be ok too.

The mini IDE has a simple terminal(alike Hyperterminal) and I use the
resident bootloader. Still nothing(No problems in simulation).
The "start12.c" file is necessery? I am still wondering why in the
.lst file the instructions seem to be in 0000 and on section when on
the other hand the .s19 places them in 8000 and on?

Oh And a question about codewarrior real time simulator why can't I
fill the memory(in target simulation) or when the program changes a
value in a register this memory place remains unchanged,i.e I select
"fill" in memory menu for address 0x0000(PORTA) and nothing
happens(Until now I used the sim68hc12 tool for my simulations)?

THE .S19 FILE
S05D0000433A5C446F63756D656E747320616E642053657474696E67735C426172645C4D7920446F63756D656E74735C6D6574726F7765726B73636F64655C656C6576656E5F315F32303036625C62696E5C4347656E657269632E616273F7
S1238000FE8040FD803E270E35ED31EC3169700434FB310326F2FE8042EC31270BED3118A1
S12380200A30700434F920F13D1E80390203FF803C07CD15FB000320F00080560BFE0000A6
S123804080508064000080500000805200008052FFFF00000000C6013779001686AA5A03DC
S10980605A0120FE00009D
S105F7FE80295C
S9030000FC

Thanks again for the time you spent to read my e-mail and for your
answers,

Tassos
--- In 68HC12@68HC..., "Honnold John-r37277"
<john.honnold@f...> wrote:
>
> Tassos:
>
> The best way to start debugging is check the actual .s19 file.
> Since the .prm file looks correct you should see something like on the
> second line of your .s19 file.
>
> S1238000FEC040FDC03E270E3.........xx
>
> where, xx is that checksum for the line
> S1 mean a line with 2 bytes of address
> 23 is the number of bytes of data in the line (in hex)
> 8000 is the first data address (hex)
>
> Check to see if this line looks similar to the one above. If it
> does, then it has to do with how you are downloading it. I am not very
> familar with Mini IDE, so since I believe the EVB has a bootloader
> resident I would try to use it instead along with something like
> Hyperterminal or Procomm. Hope this helps.
>
> Regards,
>
> John Honnold
> Freescale Semiconductor
> Technical Information Center
> MCU 16/32 Bit Applications Engineer
> ----------------------
> This email has been classified:
> (x) Freescale General Business
> ( ) Freescale Confidential Proprietary
> ( ) Freescale Internal Use Only
> ( ) Public > -----Original Message-----
> From: 68HC12@68HC... [mailto:68HC12@68HC...] On
> Behalf Of Wandson Santana
> Sent: Wednesday, January 18, 2006 5:04 PM
> To: 68HC12@68HC...
> Subject: Re: [68HC12] Problems in running a simple program in
> metrowerks codewarrior and M68HC12B32 > I don't know in the case of the HC12B32, but in most
> cases, for S12 microcontroller, 0x8000 flash block is
> located in paged memory. You would have to specify the
> page in prm file.
>
> In this case, try checking your MCU's memory strucure
> to see where is the non paged memory location. Hope
> this helps.
>
> REgards,
> Wandson
>
> --- mortisgr <mortisgr@y...> wrote:
>
> > Hello all and thanks in advance for the help,
> >
> > I am using metrowerks codewarrior v3.1 and i have
> > the M68HC12B32 EVB.
> > I try to flash a simple program in the evb. No
> > problem compiling or
> > downloading(I use mini IDE for this reason via
> > serial port). But the
> > program won't work, it is a simple port out( program
> > Iattach it below).
> >
> > I managed to produce a .lst file(thanks John) and I
> > notice that the
> > code is placed in memory area 0000 and on. In the
> > Prm file I
> > explicitly say(at least I think so) to be entered in
> > the area 8000 and
> > on. I attach all files please have a look:
> >
> > The main:
> > #define COPCTL 0x16
> >
> > #define IO_BASE 0
> > #define PORTA *(volatile unsigned char *)(IO_BASE +
> > 0x00)
> > #define PORTB *(volatile unsigned char *)(IO_BASE +
> > 0x01)
> > #define DDRA *(volatile unsigned char *)(IO_BASE
> > + 0x02)
> > #define DDRB *(volatile unsigned char *)(IO_BASE +
> > 0x03)
> >
> > #define OUT 0xAA
> > void main(void)
> > {
> > unsigned char count=1;
> > asm (" clr 0x16");
> > DDRB=OUT;
> > PORTB=OUT;
> > while(1)
> > ;
> >
> > }
> > The PRM file:
> > NAMES END
> >
> > SECTIONS
> > MY_RAM = READ_WRITE 0x0800 TO 0x09FF;
> > MY_ROM = READ_ONLY 0x8000 TO 0xF7C0;
> > MY_STCK = READ_WRITE 0x0A00 TO 0x0BFF;
> >
> > PLACEMENT
> > DEFAULT_ROM INTO MY_ROM;
> > DEFAULT_RAM INTO MY_RAM;
> > SSTACK INTO MY_STCK;
> > END
> >
> > STACKSIZE 0x1FF
> >
> > VECTOR ADDRESS 0XF7FE _Startup /* set reset vector
> > on _Startup */
> >
> > And the .lst file of main:
> >
> > ANSI-C/cC++ Compiler for HC12 V-5.0.24 Build 4047,
> > Feb 17 2004
> >
> > 1: extern volatile char ports[];
> > 2: #define COPCTL 0x16
> > 3:
> > 4: #define IO_BASE 0
> > 5: #define PORTA *(volatile unsigned char
> > *)(IO_BASE + 0x00)
> > 6: #define PORTB *(volatile unsigned char
> > *)(IO_BASE + 0x01)
> > 7: #define DDRA *(volatile unsigned char
> > *)(IO_BASE + 0x02)
> > 8: #define DDRB *(volatile unsigned char
> > *)(IO_BASE + 0x03)
> > 9:
> > 10: #define OUT 0xAA
> > 11: void main(void)
> > 12: {
> >
> > Function: main
> > Source : C:\Documents and Settings\Bard\My
> >
> Documents\metrowerkscode\eleven_1_2006b\sources\main.c
> > Options : -Env"GENPATH=C:\Documents and
> > Settings\Bard\My
> > Documents\metrowerkscode\eleven_1_2006b;C:\Documents
> > and
> > Settings\Bard\My
> >
> Documents\metrowerkscode\eleven_1_2006b\bin;C:\Documents
> > and
> > Settings\Bard\My
> >
> Documents\metrowerkscode\eleven_1_2006b\cmd;C:\Documents
> > and
> > Settings\Bard\My
> >
> Documents\metrowerkscode\eleven_1_2006b\prm;C:\Documents
> > and
> > Settings\Bard\My
> >
> Documents\metrowerkscode\eleven_1_2006b\sources;C:\Program
> > Files\Metrowerks\CodeWarrior
> > CW12_V3.1\lib\HC12c\LIB;C:\Program
> > Files\Metrowerks\CodeWarrior
> > CW12_V3.1\lib\HC12c\SRC;C:\Program
> > Files\Metrowerks\CodeWarrior
> > CW12_V3.1\lib\HC12c\INCLUDE"
> > -Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior
> > CW12_V3.1\lib\HC12c\INCLUDE"
> > -Env"OBJPATH=C:\Documents and
> > Settings\Bard\My
> > Documents\metrowerkscode\eleven_1_2006b\bin"
> > -Env"TEXTPATH=C:\Documents and Settings\Bard\My
> > Documents\metrowerkscode\eleven_1_2006b\bin"
> > -Lasm=%n.lst
> > -ObjN="C:\Documents and Settings\Bard\My
> >
>
> Documents\metrowerkscode\eleven_1_2006b\eleven_1_2006b_Data\Generic\Obje
> ctCode\main.c.o"
> >
> > 13: unsigned char count=1;
> > 0000 c601 LDAB #1
> > 0002 37 PSHB
> > 14: asm (" clr 0x16");
> > 0003 790016 CLR 22
> > 15: //asm("movb 0xff,0x01");
> > 16: //asm("movb 0xff,0x03");
> > 17: DDRB=OUT;
> > 0006 86aa LDAA #170
> > 0008 5a03 STAA 3
> > 18: PORTB=OUT;
> > 000a 5a01 STAA 1
> > 19: while(1)
> > 000c 20fe BRA *+0 ;abs = 000c
> > 20: ;
> > 21:
> > 22: }
> >
> > Regards,
> > Tassos
> >
> >
> >
> >
> > __________________________________________________
> >
> SPONSORED LINKS
> Freescale semiconductor inc
> <http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Free
> scale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8
> 051+microprocessor&c=4&s6&.sig=K2HGv-zFlv5OYUv_QxIq_Q>
> Microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semic
> onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+micropr
> ocessor&c=4&s6&.sig=SYHwNJjjGQXRvtt_GybT4g> Pic
> microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+s
> emiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+mic
> roprocessor&c=4&s6&.sig=umVbbnUwsPzEzKKD_pQfUw>
> 8051 microprocessor
> <http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Freescale+se
> miconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+micr
> oprocessor&c=4&s6&.sig=NO-nSKjHoAlh9XtZ8LB1_A>
>
> ________________________________
>
> > . > ________________________________ >