Sign in

username:

password:



Not a member?

Search m68hc11



Search tips

Subscribe to m68hc11



m68hc11 by Keywords

27c256 | 4K81H | 68HC11A1 | 68HC11P1 | 68hc24 | 68HC711E9 | 68HC811 | 8255 | A2D | ADC | ADC12138 | Am85C30 | BRCLR | Buffalo | CMOS | EEPROM | EPROM | Ethernet | EVB | EVBU | HC11E1 | HC11E9 | HC711E9 | Horray | ImageCraft | IRQ | Keypad | LCD | MC68HC11D0FN | MC68HC11E1CFU3 | MC68HC11F1 | MC68HC711E9 | MC68HC711E9CFN2 | Microcore11 | Microstamp11 | Minikit | NVRAM | PSD | PSD8xx | PSD9xx | PT1000 | RS232 | RTS | RXD | SPI | SRAM | TXD | Watchdogs | XIRQ

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | | BRCLR problem

BRCLR problem - Qu Ziguang - Jan 22 14:24:00 2005


I am writing some code for measurement of a pulse width. I used this
line:

POLLRISE: brclr TFLG1, X $04 POLLRISE

here TFLG1 is set to $23, X is set to $1000

The idea is loop around until the 4th bit of TFLG1 is cleared.
However, when I tried to compile the code using AS11, it says:

106: Symbol undefined on pass 2
106: branch out of range

and when I used the ASM command in Buffalo to debug, this line is
displayed as:

2092 BRCL $23,X $00 $2092

It seems that "$04" is never interpreted by the assembler. How do I
fix this problem?





(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )


Re: BRCLR problem - Tony Papadimitriou - Jan 22 17:19:00 2005

Remove spaces between the , (comma) and X. (Not sure if the mask needs a
comma also). Anyway, play around with and without commas until you get it.
----- Original Message -----
From: "Qu Ziguang" <>
To: < > POLLRISE: brclr TFLG1, X $04 POLLRISE

> However, when I tried to compile the code using AS11, it says:
>
> 106: Symbol undefined on pass 2
> 106: branch out of range

> It seems that "$04" is never interpreted by the assembler. How do I
> fix this problem?




(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )