| ??? 04/07/03 09:07 Read: times |
#43006 - RE: Bit Addresable Port 1 problem...URGENT Responding to: ???'s previous message |
MJK Wrote:
------------------------------------ If you wanted to do this for the some other SFR that was not directly bit addressable then change the code in the tables to look like this at each entry... mov A,non_bit_SFR setb ACC.x mov non_bit_SFR,A ret ----------------------------------- ----------------------------------- AND modify this: clr_p1_bit: anl A,#07H ;mask to 3 bits mov DPL,A add A,DPL add A,DPL ;table entries are 3 bytes mov DPTR,#clr_p1_table jmp @A+DPTR ---------------- TO THIS: clr_p1_bit: anl a,#07h ;table entry are 7 bytes mov b,#07h mul ab mov dpl,a mov dptr,#clr_p1_table jmp @a+dptr clr_p1_table: mov a,xy clr acc.0 mov xy,a ret . . Similar code for setting bit also. Pranav |
| Topic | Author | Date |
| Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
| RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
| RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
| RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
| RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
| RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 | |
RE: Bit Addresable Port 1 problem...URGENT | 01/01/70 00:00 |



