??? 12/17/04 03:42 Read: times |
#83287 - Two DPTR registers Responding to: ???'s previous message |
Kuldeep said:
hi friend in one of my project 89c52 working fine but 89s52 do not,89s52 goes crazy and do wrong things,why so any help? Hallo friend, AT89S52 has two DPTR registers, AT89C52 only one. If you use DPTR register with AT89S52 you must define actual DPTR register in AUXR1 register first. And this everytime you address the DPTR, equally whether you switch between both DPTRs or not. So, a code which works for AT89C52 will very probably not work with AT89S52, if you use DPTR register!! Kai |