2010-02-09 08:44 PM
Hi
Can BSET and BRES instructions be used on an IO-PORT like BSET PADR,&sharp1 to turn an output on or do you have to do LD A,PADR OR A,&sharp1 LD PADR,A TIA #ioport #ioport #ioport2010-02-11 03:21 AM
Yes. BSET and BRES are simplest.
2010-02-11 05:45 AM
2010-02-11 05:49 AM
BSET PADR,#0
-with- LD A,PADR OR A,#1 LD PADR,A Regards, WoRo
2010-02-17 09:48 AM
Be careful though. At least on the F324, check the datasheet section 9.2.1 Note 3: Do not use read/modify/write instructions (BSET or BRES) to modify the DR register as this might corrupt the DR content for I/Os configured as input.